English
Language : 

COREMP7 Datasheet, PDF (17/30 Pages) Actel Corporation – CoreMP7
CoreMP7
read
This command causes the BFM to perform a read of a
specified offset, within the memory map range of a
specified system resource.
Syntax
read width resource_name byte_offset;
width
This takes on the enumerated values of W, H, or B, for
word, halfword, or byte.
resource_name
This is a string containing the user-friendly instance
name of the resource being accessed, as defined by the
user in the memory map (when input to CoreConsole).
byte_offset
This is the offset from the base of the resource, in bytes.
It is specified as a hexadecimal value.
Example
read W videoCodec 20;
readcheck
This command causes the BFM to perform a read of a
specified offset, within the memory map range of a
specified system resource, and to compare the read value
with the expected value provided.
Syntax
readcheck width resource_name byte_offset data;
width
This takes on the enumerated values of W, H, or B, for
word, halfword, or byte.
resource_name
This is a string containing the user-friendly instance
name of the resource being accessed, as defined by the
user in the memory map (when input to CoreConsole).
byte_offset
This is the offset from the base of the resource, in bytes.
It is specified as a hexadecimal value.
data
This is the expected read data. It is specified as a
hexadecimal value.
Example
readcheck W videoCodec 20 11223344;
poll
This command continuously reads a specified location
until a requested value is obtained. This command allows
one or more bits of the read data to be masked out. This
allows, for example, poll waiting for a ready bit to be set,
while ignoring the values of the other bits in the location
being read.
Syntax
poll width resource_name byte_offset data_bitmask;
width
This takes on the enumerated values of W, H, or B, for
word, halfword, or byte.
resource_name
This is a string containing the user-friendly instance
name of the resource being accessed.
byte_offset
This is the offset from the base of the resource, in bytes.
It is specified as a hexadecimal value.
bitmask
The bitmask is ANDed with the read data and the result
is then compared to the bitmask itself. If equal, then all
the bits of interest are at their required value and the
poll command is complete. If not equal, then the polling
continues.
wait
This command causes the BFM script to stall for a
specified number of clock periods.
Syntax
wait num_clock_ticks;
num_clock_ticks
This is the number of CoreMP7 clock periods, during
which the BFM stalls (doesn't initiate any bus
transactions).
waitfiq
This command causes the BFM to wait until an interrupt
event (high to low transition) is seen on the nFIQ pin
before proceeding with the execution of the remainder
of the script.
Syntax
waitfiq;
waitirq
This command causes the BFM to wait until an interrupt
event (high to low transition) is seen on the nIRQ pin
before proceeding with the execution of the remainder
of the script.
Syntax
waitirq;
Supported Simulation Tools
BFM is delivered to the user as both a Verilog and VHDL
model.
v2.6
17