|
| 1 | +// *************************************************************************** |
| 2 | +// *************************************************************************** |
| 3 | +// Copyright (C) 2024 - 2025 Analog Devices, Inc. All rights reserved. |
| 4 | +// |
| 5 | +// In this HDL repository, there are many different and unique modules, consisting |
| 6 | +// of various HDL (Verilog or VHDL) components. The individual modules are |
| 7 | +// developed independently, and may be accompanied by separate and unique license |
| 8 | +// terms. |
| 9 | +// |
| 10 | +// The user should read each of these license terms, and understand the |
| 11 | +// freedoms and responsabilities that he or she has by using this source/core. |
| 12 | +// |
| 13 | +// This core is distributed in the hope that it will be useful, but WITHOUT ANY |
| 14 | +// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR |
| 15 | +// A PARTICULAR PURPOSE. |
| 16 | +// |
| 17 | +// Redistribution and use of source or resulting binaries, with or without modification |
| 18 | +// of this file, are permitted under one of the following two license terms: |
| 19 | +// |
| 20 | +// 1. The GNU General Public License version 2 as published by the |
| 21 | +// Free Software Foundation, which can be found in the top level directory |
| 22 | +// of this repository (LICENSE_GPL2), and also online at: |
| 23 | +// <https://www.gnu.org/licenses/old-licenses/gpl-2.0.html> |
| 24 | +// |
| 25 | +// OR |
| 26 | +// |
| 27 | +// 2. An ADI specific BSD license, which can be found in the top level directory |
| 28 | +// of this repository (LICENSE_ADIBSD), and also on-line at: |
| 29 | +// https://github.com/analogdevicesinc/hdl/blob/main/LICENSE_ADIBSD |
| 30 | +// This will allow to generate bit files and not release the source code, |
| 31 | +// as long as it attaches to an ADI device. |
| 32 | +// |
| 33 | +// *************************************************************************** |
| 34 | +// *************************************************************************** |
| 35 | + |
1 | 36 | `include "utils.svh" |
2 | 37 |
|
3 | 38 | package scoreboard_pack_pkg; |
@@ -49,50 +84,6 @@ package scoreboard_pack_pkg; |
49 | 84 |
|
50 | 85 | if (this.enabled == 0) |
51 | 86 | return; |
52 | | - |
53 | | - // forever begin : tx_path |
54 | | - // if (this.enabled == 0) |
55 | | - // break; |
56 | | - // if ((this.source_byte_stream_size > 0) && |
57 | | - // (this.sink_byte_stream_size >= this.channels*this.samples*this.width/8)) begin |
58 | | - // byte_streams_empty_sig = 0; |
59 | | - // for (int i=0; i<this.channels*this.samples*this.width/8; i++) begin |
60 | | - // sink_byte_stream_block[i] = this.sink_byte_stream.pop_back(); |
61 | | - // this.sink_byte_stream_size--; |
62 | | - // end |
63 | | - // for (int i=0; i<outer_loop; i++) begin |
64 | | - // for (int j=0; j<inner_loop; j++) begin |
65 | | - // for (int k=0; k<this.width/8; k++) begin |
66 | | - // source_byte = this.source_byte_stream.pop_back(); |
67 | | - // if (this.sink_type == CYCLIC) |
68 | | - // this.source_byte_stream.push_front(source_byte); |
69 | | - // else |
70 | | - // this.source_byte_stream_size--; |
71 | | - // sink_byte = sink_byte_stream_block[(outer_loop*j+i)*this.width/8+k]; |
72 | | - // this.info($sformatf("Scoreboard source-sink data: exp %h - rcv %h", source_byte, sink_byte), 100); |
73 | | - // if (source_byte != sink_byte) begin |
74 | | - // this.error($sformatf("Scoreboard failed at: exp %h - rcv %h", source_byte, sink_byte)); |
75 | | - // end |
76 | | - // end |
77 | | - // end |
78 | | - // end |
79 | | - // end else begin |
80 | | - // if ((this.source_byte_stream_size == 0) && |
81 | | - // (this.sink_byte_stream_size == 0)) begin |
82 | | - // byte_streams_empty_sig = 1; |
83 | | - // ->>byte_streams_empty; |
84 | | - // end |
85 | | - // fork begin |
86 | | - // fork |
87 | | - // @source_transaction_event; |
88 | | - // @sink_transaction_event; |
89 | | - // @stop_scoreboard; |
90 | | - // join_any |
91 | | - // byte_streams_empty_sig = 0; |
92 | | - // disable fork; |
93 | | - // end join |
94 | | - // end |
95 | | - // end |
96 | 87 |
|
97 | 88 | while ((this.subscriber_source.get_size() > 0) && |
98 | 89 | (this.subscriber_sink.get_size() >= this.channels*this.samples*this.width/8)) begin |
|
0 commit comments