Chapter 7

DMA

A concrete modeling example

Following the introduction to modeling, Chapter 7 provides a tutorial-style example on how to develop a model of a direct memory access (DMA) controller, properly connect it to a virtual platform using PCIe, and to enable a device driver to interact with it. The example covers a wide range of important modeling concepts, such as handling, PCIe configuration and I/O accesses, interrupts, parsing of data structures, and how to model the passing of time.

Keywords

DML; DMA; testing; PCIe; modelling; driver

Example is the school of mankind, and they will learn at no other.

—Edmund Burke, Letters on a Regicide Peace

Following the introduction to modeling in the previous chapter, this chapter provides a tutorial-style ...

Get Software and System Development using Virtual Platforms now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.