09.03.2013 Views

Processor Local Bus Functional Model Toolkit User's Manual

Processor Local Bus Functional Model Toolkit User's Manual

Processor Local Bus Functional Model Toolkit User's Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

configure(SLAVE3_ADDR_HI_0=000FFFFF)<br />

• ssize = [2 bit]<br />

• msize = [2 bit]<br />

6.5.2 Read / Write() Commands<br />

The following set of parameters can be used to create expect values for transactions that occur on<br />

the bus. If a value is specified, but mismatches when checked against the actual transaction that<br />

occurred on the bus, then the monitor will generate an error message.<br />

• addr = [4/8 byte]<br />

Specifies the expected address value for a bus transaction.<br />

• be = [4/8/16 bit]<br />

Specifies the expected byte enable value for a bus transaction.<br />

• size = [4 bit]<br />

Specifies the expected size value for a bus transaction.<br />

• aack_delay = [integer]<br />

Specifies the expected aack_delay value for a bus transaction.<br />

• abort_delay = [integer]<br />

Specifies the expected abort_delay value for a bus transaction.<br />

• dack_delay = [integer]<br />

Specifies the expected dack_delay for a bus transaction.<br />

6.5.2.1 Sample Monitor Read/Write BFL<br />

The following example shows bfl for a master, slave, and monitor device. The master will perform four<br />

writes followed by four reads. The slave will respond to each with the specified aack and dack delays.<br />

The monitor will check that each transaction completes with the expected values that are provided by<br />

the monitor bfl.<br />

• PLB Master 0<br />

set_device (path=/plb_complex/m0,device_type=plb_master)<br />

configure(msize=00)<br />

mem_init(addr=00021000,data=00112233)<br />

mem_init(addr=00021004,data=44556677)<br />

mem_init(addr=00021008,data=AABBCCDD)<br />

mem_init(addr=0002100C,data=AABBCCDD)<br />

write(addr=00021000,size=0000,be=1111)<br />

write(addr=00021004,size=0000,be=1111)<br />

write(addr=00021008,size=0000,be=1111)<br />

50 <strong>Processor</strong> <strong>Local</strong> <strong>Bus</strong> <strong>Functional</strong> <strong>Model</strong> <strong>Toolkit</strong> Version 4.9.2

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!