File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed
Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -65,9 +65,7 @@ package scoreboard_pkg;
6565 this .byte_stream.push_back (data.pop_front ());
6666 end
6767
68- if (this .scoreboard_ref.get_enabled ()) begin
69- this .scoreboard_ref.compare_transaction ();
70- end
68+ this .scoreboard_ref.compare_transaction ();
7169 endfunction : update
7270
7371 function data_type get_data ();
@@ -121,7 +119,7 @@ package scoreboard_pkg;
121119 // run task
122120 task run ();
123121 this .enabled = 1 ;
124-
122+ this . clear_streams ();
125123 this .info ($sformatf (" Scoreboard enabled" ), ADI_VERBOSITY_MEDIUM );
126124 endtask : run
127125
@@ -132,10 +130,6 @@ package scoreboard_pkg;
132130 this .byte_streams_empty_sig = 1 ;
133131 endtask : stop
134132
135- function bit get_enabled ();
136- return this .enabled;
137- endfunction : get_enabled
138-
139133 // set sink type
140134 function void set_sink_type (input bit sink_type);
141135 if (! this .enabled) begin
@@ -153,7 +147,7 @@ package scoreboard_pkg;
153147 // clear source and sink byte streams
154148 protected function void clear_streams ();
155149 this .subscriber_source.clear_stream ();
156- this .subscriber_source .clear_stream ();
150+ this .subscriber_sink .clear_stream ();
157151 endfunction : clear_streams
158152
159153 // wait until source and sink byte streams are empty, full check
You can’t perform that action at this time.
0 commit comments