Commit 1ca03bbf authored by Jan Pospisil's avatar Jan Pospisil

added AD9512 synchronization pulse to the simulation

parent 28f3b2fe
......@@ -552,7 +552,17 @@ package TestbenchPackage;
int SetMemBaseAddress = (Channel == 1) ? `GET_WB_FFPG_ADDR(`BASE_FFPG_CH1_SET_MEM) : `GET_WB_FFPG_ADDR(`BASE_FFPG_CH2_SET_MEM);
int ResMemBaseAddress = (Channel == 1) ? `GET_WB_FFPG_ADDR(`BASE_FFPG_CH1_RES_MEM) : `GET_WB_FFPG_ADDR(`BASE_FFPG_CH2_RES_MEM);
int OverflowInWords = getOverflowInWords();
// sync AD9512
tx = td_wb_tx::type_id::create("tx");
start_item(tx);
assert(tx.randomize());
tx.direction_e = WB_B3_DIR_WRITE;
tx.address = `GET_WB_FFPG_ADDR(`ADDR_FFPG_CONTROL);
tx.data = 1 << `FFPG_CONTROL_AD9512_SYNC_OFFSET;
finish_item(tx);
assert(tx.response_e == WB_B3_RESPONSE_ACK_OK);
// configure overflow
tx = td_wb_tx::type_id::create("tx");
start_item(tx);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment