Transaction-Level Modeling Framework for Space Applications
The AHBOUT model is a AHB slave that writes all incoming data to a file. The class inherits from the classes AHBSlave
and CLKDevice
. The model can be seen as a reference implementation for an AHB Slave because of its simplicity. It has no VHDL reference in the GRLIB hardware library. The name of the output file can be specified in the constructor.
This component provides the typical AHB slave generics refactored as constructor parameters of the class AHBOut. An overview about the available parameters is given in table 43.
Parameter | Description |
---|---|
nm | SystemC name of the module |
haddr | The 12bit MSB address at the AHB bus |
hmask | The 12bit address mask for the AHB bus |
ambaLayer | Coding style/abstraction of the model (LT or AT) |
slave_id | The AHB slave bus index. |
outfile | File name of a text file to initialize the memory from |
This example shows how to instantiate the module AHBOUT. In line 900 the constructor is called to create the new object. In line 908 the module is connected to the bus and in the next line the clock is set.