MFB Agent
This agent is responsible for the communication through the MFB interface. This is a low level agent which generates only simple MFB words. For advanced control use the byte_array_mfb.
The environment is configured by five parameters: For more information see mfb documentation.
Parameter |
|
|---|---|
REGIONS |
|
REGIONS_SIZE |
|
BLOCK_SIZE |
|
ITEM_WIDTH |
|
META_WIDTH |
sequence_item
This package containst two agents. RX agents send data to DUT. Sequence run in RX agent generate ITEMS, META, SOF_POS, EOF_POS, EOF, SOF, SRC_RDY variables in sequence_item. Driver after clock cycle set DST_RDY variable in sequence_item as response. TX agent is reciving data from DUT. There is required to generate DST_RDY and driver after clock cycle set ITEMS, META, SOF_POS, EOF_POS, EOF, SOF, SRC_RDY as response.
Following table shows variables in sequence_items class. The meaning of signals is the same as in mfb documentation.
Name |
|
|---|---|
logic [REGION_SIZE * BLOCK_SIZE * ITEM_WIDTH] data[REGIONS] |
|
logic [META_WIDTH] meta[REGIONS] |
|
logic [$clog2(REGION_SIZE)] sof_pos[REGIONS] |
|
logic [$clog2(REGION_SIZE * BLOCK_SIZE)] eof_pos[REGIONS] |
|
logic [REGIONS] sof |
|
logic [REGIONS] eof |
|
logic src_rdy |
|
logic dst_rdy |
This is low level protocol if you generate data in sequence please be carefull if you dont breaking mfb protocols rules.
SRC_RDY rule
When the word is not accepted (DST_RDY is low), the RX sequences of logic_vector_array_mfb
either hold the word or drop SRC_RDY to zero and send the word again later. The behaviour is selected by
src_rdy_rule in the sequence configuration of the logic_vector_array_mfb environment.
There are asserts to check correct settings and functionality of interface (module mfb_property).
By default SRC_RDY can fall while DST_RDY is low. Set parameter SRC_RDY_STRICT to 1 to check
that SRC_RDY stays high until DST_RDY is high. Use it on interfaces where the component (the producer of
SRC_RDY) must keep the strict rule.
mfb_property #(
.REGIONS (REGIONS ),
.REGION_SIZE (REGION_SIZE),
.BLOCK_SIZE (BLOCK_SIZE ),
.ITEM_WIDTH (ITEM_WIDTH ),
.META_WIDTH (META_WIDTH ),
.SRC_RDY_STRICT (1'b1 )
) mfb_tx_prop (
.RESET (RESET ),
.vif (mfb_tx)
);