Development Tools User’s Guide
273
Transactor States
A
A.1
About States
The Transactor contains internal states that define the overall state of the model. The states
documented in this chapter can be accessed through the Workbench command line interface using
either built-in C functions or transactor access functions.
Hardware states, certain CSRs, and transactor states for QDR and MSF pins are available in this
appendix.
A.1.1
State Definition Format
This section lists the Hardware Transactor states and describes each one. The state definition
contains:
•
The state name
•
A description of the state.
•
Function primitives for functions used with the state.
A.2
Memory Setup
The following setup commands should only be run once, and they should be run before simulation.
It should be noted that these commands are called by the Developers Workbench and should only
be called when running from the command line.
init_sram_from_file(filename)
Use to initialize SRAM content from file. Format is
hex_addr value
pair on each line.
set_sram_channel_size(chip_name, channel number, number of parts per channel, size per
part)
On a per channel basis, used to set the number of parts per sram channel
and the size per part of the SRAM from the command line.
set_sram_size(chip_name, number of parts per channel, size per part)
On a whole chip basis, used to set the number of parts per sram channel
and the size per part of the SRAM from the command line.
get_sram_channel_size(chip_name, channel number)
Returns the total size of sram on a particular sram channel.
set_sram_channel_pipe_delay(chip_name, channel number, delay)
Adds a pipe delay to SRAM channel number on chip_name.
set_dram_size(chip_name, number of channels, size per channel)
Used to set the number of channels and the size per channel of the
DRAM in chip_name from the command line.
get_total_dram_size(chip_name)
Returns the total size of the dram on chip_name.