File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
testbenches/ip/scoreboard/tests Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -86,26 +86,31 @@ program test_program();
8686
8787 scoreboard = new (" Scoreboard" );
8888
89+ // configure the sequencers
8990 adc_src_axis_agent.master_sequencer.set_data_gen_mode (DATA_GEN_MODE_AUTO_INCR );
9091 adc_src_axis_agent.master_sequencer.add_xfer_descriptor_byte_count (32'h100 , 1 , 0 );
9192
9293 dac_dst_axis_agent.slave_sequencer.set_mode (XIL_AXI4STREAM_READY_GEN_NO_BACKPRESSURE );
9394
95+ // start the environment
9496 base_env.start ();
9597 adc_src_axis_agent.start_master ();
9698 dac_dst_axis_agent.start_slave ();
9799 base_env.sys_reset ();
98100
101+ // subscribe and start the scoreboard
99102 adc_src_axis_agent.monitor.publisher.subscribe (scoreboard.subscriber_source);
100103 dac_dst_axis_agent.monitor.publisher.subscribe (scoreboard.subscriber_sink);
101104
102105 scoreboard.run ();
103106
107+ // generate data
104108 adc_src_axis_agent.master_sequencer.start ();
105109 dac_dst_axis_agent.slave_sequencer.start ();
106110
107111 # 1us ;
108112
113+ // wait for scoreboard to be empty on both sides
109114 scoreboard.wait_until_complete ();
110115
111116 base_env.stop ();
You can’t perform that action at this time.
0 commit comments