Skip to content

Commit

Permalink
working on cleaning up and fixing testbenches for sample buffers
Browse files Browse the repository at this point in the history
  • Loading branch information
reed-foster committed Nov 28, 2023
1 parent 5b2f79f commit 30d86dc
Show file tree
Hide file tree
Showing 5 changed files with 288 additions and 230 deletions.
338 changes: 171 additions & 167 deletions buffer_bank_test_behav.wcfg
Original file line number Diff line number Diff line change
Expand Up @@ -11,181 +11,185 @@
</db_ref>
</db_ref_list>
<zoom_setting>
<ZoomStartTime time="14,256.833 ns"></ZoomStartTime>
<ZoomEndTime time="14,518.634 ns"></ZoomEndTime>
<Cursor1Time time="14,455.000 ns"></Cursor1Time>
<ZoomStartTime time="0.000 ns"></ZoomStartTime>
<ZoomEndTime time="341.018 ns"></ZoomEndTime>
<Cursor1Time time="0.000 ns"></Cursor1Time>
</zoom_setting>
<column_width_setting>
<NameColumnWidth column_width="208"></NameColumnWidth>
<ValueColumnWidth column_width="96"></ValueColumnWidth>
<ValueColumnWidth column_width="92"></ValueColumnWidth>
</column_width_setting>
<WVObjectSize size="40" />
<wvobject type="logic" fp_name="/buffer_bank_test/clk">
<obj_property name="ElementShortName">clk</obj_property>
<obj_property name="ObjectShortName">clk</obj_property>
</wvobject>
<wvobject type="logic" fp_name="/buffer_bank_test/reset">
<obj_property name="ElementShortName">reset</obj_property>
<obj_property name="ObjectShortName">reset</obj_property>
</wvobject>
<wvobject type="logic" fp_name="/buffer_bank_test/start">
<obj_property name="ElementShortName">start</obj_property>
<obj_property name="ObjectShortName">start</obj_property>
</wvobject>
<wvobject type="logic" fp_name="/buffer_bank_test/stop">
<obj_property name="ElementShortName">stop</obj_property>
<obj_property name="ObjectShortName">stop</obj_property>
</wvobject>
<wvobject type="logic" fp_name="/buffer_bank_test/full">
<obj_property name="ElementShortName">full</obj_property>
<obj_property name="ObjectShortName">full</obj_property>
</wvobject>
<wvobject type="array" fp_name="/buffer_bank_test/sample_count">
<obj_property name="ElementShortName">sample_count[31:0]</obj_property>
<obj_property name="ObjectShortName">sample_count[31:0]</obj_property>
</wvobject>
<wvobject type="array" fp_name="/buffer_bank_test/CLK_RATE_HZ">
<obj_property name="ElementShortName">CLK_RATE_HZ[31:0]</obj_property>
<obj_property name="ObjectShortName">CLK_RATE_HZ[31:0]</obj_property>
</wvobject>
<wvobject fp_name="divider298" type="divider">
<obj_property name="label">dut</obj_property>
<WVObjectSize size="4" />
<wvobject type="group" fp_name="group1564">
<obj_property name="label">test</obj_property>
<obj_property name="DisplayName">label</obj_property>
</wvobject>
<wvobject type="logic" fp_name="/buffer_bank_test/dut_i/clk">
<obj_property name="ElementShortName">clk</obj_property>
<obj_property name="ObjectShortName">clk</obj_property>
</wvobject>
<wvobject type="logic" fp_name="/buffer_bank_test/dut_i/reset">
<obj_property name="ElementShortName">reset</obj_property>
<obj_property name="ObjectShortName">reset</obj_property>
</wvobject>
<wvobject type="logic" fp_name="/buffer_bank_test/dut_i/start">
<obj_property name="ElementShortName">start</obj_property>
<obj_property name="ObjectShortName">start</obj_property>
</wvobject>
<wvobject type="logic" fp_name="/buffer_bank_test/dut_i/stop">
<obj_property name="ElementShortName">stop</obj_property>
<obj_property name="ObjectShortName">stop</obj_property>
</wvobject>
<wvobject type="logic" fp_name="/buffer_bank_test/dut_i/full">
<obj_property name="ElementShortName">full</obj_property>
<obj_property name="ObjectShortName">full</obj_property>
</wvobject>
<wvobject type="array" fp_name="/buffer_bank_test/dut_i/state">
<obj_property name="ElementShortName">state[31:0]</obj_property>
<obj_property name="ObjectShortName">state[31:0]</obj_property>
</wvobject>
<wvobject type="array" fp_name="/buffer_bank_test/dut_i/buffer">
<obj_property name="ElementShortName">buffer[0:1023][31:0]</obj_property>
<obj_property name="ObjectShortName">buffer[0:1023][31:0]</obj_property>
</wvobject>
<wvobject type="array" fp_name="/buffer_bank_test/dut_i/write_addr">
<obj_property name="ElementShortName">write_addr[9:0]</obj_property>
<obj_property name="ObjectShortName">write_addr[9:0]</obj_property>
</wvobject>
<wvobject type="array" fp_name="/buffer_bank_test/dut_i/read_addr">
<obj_property name="ElementShortName">read_addr[9:0]</obj_property>
<obj_property name="ObjectShortName">read_addr[9:0]</obj_property>
</wvobject>
<wvobject type="array" fp_name="/buffer_bank_test/dut_i/read_stop_addr">
<obj_property name="ElementShortName">read_stop_addr[9:0]</obj_property>
<obj_property name="ObjectShortName">read_stop_addr[9:0]</obj_property>
</wvobject>
<wvobject type="array" fp_name="/buffer_bank_test/dut_i/read_addr_d">
<obj_property name="ElementShortName">read_addr_d[2:0][9:0]</obj_property>
<obj_property name="ObjectShortName">read_addr_d[2:0][9:0]</obj_property>
<obj_property name="isExpanded"></obj_property>
</wvobject>
<wvobject type="array" fp_name="/buffer_bank_test/dut_i/data_out_d">
<obj_property name="ElementShortName">data_out_d[3:0][31:0]</obj_property>
<obj_property name="ObjectShortName">data_out_d[3:0][31:0]</obj_property>
<obj_property name="isExpanded"></obj_property>
</wvobject>
<wvobject type="array" fp_name="/buffer_bank_test/dut_i/data_out_valid">
<obj_property name="ElementShortName">data_out_valid[3:0]</obj_property>
<obj_property name="ObjectShortName">data_out_valid[3:0]</obj_property>
</wvobject>
<wvobject type="logic" fp_name="/buffer_bank_test/dut_i/buffer_has_data">
<obj_property name="ElementShortName">buffer_has_data</obj_property>
<obj_property name="ObjectShortName">buffer_has_data</obj_property>
</wvobject>
<wvobject type="logic" fp_name="/buffer_bank_test/dut_i/data_out_last">
<obj_property name="ElementShortName">data_out_last</obj_property>
<obj_property name="ObjectShortName">data_out_last</obj_property>
</wvobject>
<wvobject type="array" fp_name="/buffer_bank_test/dut_i/BUFFER_DEPTH">
<obj_property name="ElementShortName">BUFFER_DEPTH[31:0]</obj_property>
<obj_property name="ObjectShortName">BUFFER_DEPTH[31:0]</obj_property>
</wvobject>
<wvobject type="array" fp_name="/buffer_bank_test/dut_i/PARALLEL_SAMPLES">
<obj_property name="ElementShortName">PARALLEL_SAMPLES[31:0]</obj_property>
<obj_property name="ObjectShortName">PARALLEL_SAMPLES[31:0]</obj_property>
</wvobject>
<wvobject type="array" fp_name="/buffer_bank_test/dut_i/SAMPLE_WIDTH">
<obj_property name="ElementShortName">SAMPLE_WIDTH[31:0]</obj_property>
<obj_property name="ObjectShortName">SAMPLE_WIDTH[31:0]</obj_property>
</wvobject>
<wvobject fp_name="divider317" type="divider">
<wvobject type="logic" fp_name="/buffer_bank_test/clk">
<obj_property name="ElementShortName">clk</obj_property>
<obj_property name="ObjectShortName">clk</obj_property>
</wvobject>
<wvobject type="logic" fp_name="/buffer_bank_test/reset">
<obj_property name="ElementShortName">reset</obj_property>
<obj_property name="ObjectShortName">reset</obj_property>
</wvobject>
<wvobject type="array" fp_name="/buffer_bank_test/error_count">
<obj_property name="ElementShortName">error_count[31:0]</obj_property>
<obj_property name="ObjectShortName">error_count[31:0]</obj_property>
</wvobject>
<wvobject type="logic" fp_name="/buffer_bank_test/start">
<obj_property name="ElementShortName">start</obj_property>
<obj_property name="ObjectShortName">start</obj_property>
</wvobject>
<wvobject type="logic" fp_name="/buffer_bank_test/stop">
<obj_property name="ElementShortName">stop</obj_property>
<obj_property name="ObjectShortName">stop</obj_property>
</wvobject>
<wvobject type="logic" fp_name="/buffer_bank_test/full">
<obj_property name="ElementShortName">full</obj_property>
<obj_property name="ObjectShortName">full</obj_property>
</wvobject>
<wvobject type="array" fp_name="/buffer_bank_test/sample_count">
<obj_property name="ElementShortName">sample_count[31:0]</obj_property>
<obj_property name="ObjectShortName">sample_count[31:0]</obj_property>
</wvobject>
<wvobject type="array" fp_name="/buffer_bank_test/CLK_RATE_HZ">
<obj_property name="ElementShortName">CLK_RATE_HZ[31:0]</obj_property>
<obj_property name="ObjectShortName">CLK_RATE_HZ[31:0]</obj_property>
</wvobject>
</wvobject>
<wvobject type="group" fp_name="group1573">
<obj_property name="label">data_in</obj_property>
<obj_property name="DisplayName">label</obj_property>
</wvobject>
<wvobject type="array" fp_name="/buffer_bank_test/data_in/data">
<obj_property name="ElementShortName">data[0:0][15:0]</obj_property>
<obj_property name="ObjectShortName">data[0:0][15:0]</obj_property>
</wvobject>
<wvobject type="array" fp_name="/buffer_bank_test/data_in/ready">
<obj_property name="ElementShortName">ready[0:0]</obj_property>
<obj_property name="ObjectShortName">ready[0:0]</obj_property>
<obj_property name="isExpanded"></obj_property>
</wvobject>
<wvobject type="array" fp_name="/buffer_bank_test/data_in/valid">
<obj_property name="ElementShortName">valid[0:0]</obj_property>
<obj_property name="ObjectShortName">valid[0:0]</obj_property>
<obj_property name="isExpanded"></obj_property>
</wvobject>
<wvobject type="array" fp_name="/buffer_bank_test/data_in/last">
<obj_property name="ElementShortName">last[0:0]</obj_property>
<obj_property name="ObjectShortName">last[0:0]</obj_property>
</wvobject>
<wvobject type="array" fp_name="/buffer_bank_test/data_in/DWIDTH">
<obj_property name="ElementShortName">DWIDTH[31:0]</obj_property>
<obj_property name="ObjectShortName">DWIDTH[31:0]</obj_property>
</wvobject>
<wvobject type="array" fp_name="/buffer_bank_test/data_in/PARALLEL_CHANNELS">
<obj_property name="ElementShortName">PARALLEL_CHANNELS[31:0]</obj_property>
<obj_property name="ObjectShortName">PARALLEL_CHANNELS[31:0]</obj_property>
</wvobject>
<wvobject fp_name="divider324" type="divider">
<wvobject type="array" fp_name="/buffer_bank_test/data_in/data">
<obj_property name="ElementShortName">data[15:0]</obj_property>
<obj_property name="ObjectShortName">data[15:0]</obj_property>
</wvobject>
<wvobject type="logic" fp_name="/buffer_bank_test/data_in/ready">
<obj_property name="ElementShortName">ready</obj_property>
<obj_property name="ObjectShortName">ready</obj_property>
</wvobject>
<wvobject type="logic" fp_name="/buffer_bank_test/data_in/valid">
<obj_property name="ElementShortName">valid</obj_property>
<obj_property name="ObjectShortName">valid</obj_property>
</wvobject>
<wvobject type="logic" fp_name="/buffer_bank_test/data_in/last">
<obj_property name="ElementShortName">last</obj_property>
<obj_property name="ObjectShortName">last</obj_property>
</wvobject>
<wvobject type="logic" fp_name="/buffer_bank_test/data_in/ok">
<obj_property name="ElementShortName">ok</obj_property>
<obj_property name="ObjectShortName">ok</obj_property>
</wvobject>
<wvobject type="array" fp_name="/buffer_bank_test/data_in/DWIDTH">
<obj_property name="ElementShortName">DWIDTH[31:0]</obj_property>
<obj_property name="ObjectShortName">DWIDTH[31:0]</obj_property>
</wvobject>
</wvobject>
<wvobject type="group" fp_name="group1580">
<obj_property name="label">data_out</obj_property>
<obj_property name="DisplayName">label</obj_property>
</wvobject>
<wvobject type="array" fp_name="/buffer_bank_test/data_out/data">
<obj_property name="ElementShortName">data[0:0][15:0]</obj_property>
<obj_property name="ObjectShortName">data[0:0][15:0]</obj_property>
<obj_property name="isExpanded"></obj_property>
</wvobject>
<wvobject type="array" fp_name="/buffer_bank_test/data_out/ready">
<obj_property name="ElementShortName">ready[0:0]</obj_property>
<obj_property name="ObjectShortName">ready[0:0]</obj_property>
<obj_property name="isExpanded"></obj_property>
</wvobject>
<wvobject type="array" fp_name="/buffer_bank_test/data_out/valid">
<obj_property name="ElementShortName">valid[0:0]</obj_property>
<obj_property name="ObjectShortName">valid[0:0]</obj_property>
<obj_property name="isExpanded"></obj_property>
</wvobject>
<wvobject type="array" fp_name="/buffer_bank_test/data_out/last">
<obj_property name="ElementShortName">last[0:0]</obj_property>
<obj_property name="ObjectShortName">last[0:0]</obj_property>
<obj_property name="isExpanded"></obj_property>
</wvobject>
<wvobject type="array" fp_name="/buffer_bank_test/data_out/DWIDTH">
<obj_property name="ElementShortName">DWIDTH[31:0]</obj_property>
<obj_property name="ObjectShortName">DWIDTH[31:0]</obj_property>
</wvobject>
<wvobject type="array" fp_name="/buffer_bank_test/data_out/PARALLEL_CHANNELS">
<obj_property name="ElementShortName">PARALLEL_CHANNELS[31:0]</obj_property>
<obj_property name="ObjectShortName">PARALLEL_CHANNELS[31:0]</obj_property>
<wvobject type="array" fp_name="/buffer_bank_test/data_out/data">
<obj_property name="ElementShortName">data[15:0]</obj_property>
<obj_property name="ObjectShortName">data[15:0]</obj_property>
</wvobject>
<wvobject type="logic" fp_name="/buffer_bank_test/data_out/ready">
<obj_property name="ElementShortName">ready</obj_property>
<obj_property name="ObjectShortName">ready</obj_property>
</wvobject>
<wvobject type="logic" fp_name="/buffer_bank_test/data_out/valid">
<obj_property name="ElementShortName">valid</obj_property>
<obj_property name="ObjectShortName">valid</obj_property>
</wvobject>
<wvobject type="logic" fp_name="/buffer_bank_test/data_out/last">
<obj_property name="ElementShortName">last</obj_property>
<obj_property name="ObjectShortName">last</obj_property>
</wvobject>
<wvobject type="logic" fp_name="/buffer_bank_test/data_out/ok">
<obj_property name="ElementShortName">ok</obj_property>
<obj_property name="ObjectShortName">ok</obj_property>
</wvobject>
<wvobject type="array" fp_name="/buffer_bank_test/data_out/DWIDTH">
<obj_property name="ElementShortName">DWIDTH[31:0]</obj_property>
<obj_property name="ObjectShortName">DWIDTH[31:0]</obj_property>
</wvobject>
</wvobject>
<wvobject type="group" fp_name="group1587">
<obj_property name="label">dut</obj_property>
<obj_property name="DisplayName">label</obj_property>
<wvobject type="logic" fp_name="/buffer_bank_test/dut_i/clk">
<obj_property name="ElementShortName">clk</obj_property>
<obj_property name="ObjectShortName">clk</obj_property>
</wvobject>
<wvobject type="logic" fp_name="/buffer_bank_test/dut_i/reset">
<obj_property name="ElementShortName">reset</obj_property>
<obj_property name="ObjectShortName">reset</obj_property>
</wvobject>
<wvobject type="logic" fp_name="/buffer_bank_test/dut_i/start">
<obj_property name="ElementShortName">start</obj_property>
<obj_property name="ObjectShortName">start</obj_property>
</wvobject>
<wvobject type="logic" fp_name="/buffer_bank_test/dut_i/stop">
<obj_property name="ElementShortName">stop</obj_property>
<obj_property name="ObjectShortName">stop</obj_property>
</wvobject>
<wvobject type="logic" fp_name="/buffer_bank_test/dut_i/full">
<obj_property name="ElementShortName">full</obj_property>
<obj_property name="ObjectShortName">full</obj_property>
</wvobject>
<wvobject type="logic" fp_name="/buffer_bank_test/dut_i/first">
<obj_property name="ElementShortName">first</obj_property>
<obj_property name="ObjectShortName">first</obj_property>
</wvobject>
<wvobject type="array" fp_name="/buffer_bank_test/dut_i/state">
<obj_property name="ElementShortName">state[31:0]</obj_property>
<obj_property name="ObjectShortName">state[31:0]</obj_property>
</wvobject>
<wvobject type="array" fp_name="/buffer_bank_test/dut_i/buffer">
<obj_property name="ElementShortName">buffer[0:1023][31:0]</obj_property>
<obj_property name="ObjectShortName">buffer[0:1023][31:0]</obj_property>
</wvobject>
<wvobject type="array" fp_name="/buffer_bank_test/dut_i/write_addr">
<obj_property name="ElementShortName">write_addr[9:0]</obj_property>
<obj_property name="ObjectShortName">write_addr[9:0]</obj_property>
</wvobject>
<wvobject type="array" fp_name="/buffer_bank_test/dut_i/read_addr">
<obj_property name="ElementShortName">read_addr[9:0]</obj_property>
<obj_property name="ObjectShortName">read_addr[9:0]</obj_property>
</wvobject>
<wvobject type="array" fp_name="/buffer_bank_test/dut_i/read_addr_d">
<obj_property name="ElementShortName">read_addr_d[1:0][9:0]</obj_property>
<obj_property name="ObjectShortName">read_addr_d[1:0][9:0]</obj_property>
</wvobject>
<wvobject type="array" fp_name="/buffer_bank_test/dut_i/data_out_d">
<obj_property name="ElementShortName">data_out_d[3:0][31:0]</obj_property>
<obj_property name="ObjectShortName">data_out_d[3:0][31:0]</obj_property>
</wvobject>
<wvobject type="array" fp_name="/buffer_bank_test/dut_i/data_out_valid">
<obj_property name="ElementShortName">data_out_valid[3:0]</obj_property>
<obj_property name="ObjectShortName">data_out_valid[3:0]</obj_property>
</wvobject>
<wvobject type="array" fp_name="/buffer_bank_test/dut_i/data_out_last">
<obj_property name="ElementShortName">data_out_last[3:0]</obj_property>
<obj_property name="ObjectShortName">data_out_last[3:0]</obj_property>
</wvobject>
<wvobject type="logic" fp_name="/buffer_bank_test/dut_i/buffer_has_data">
<obj_property name="ElementShortName">buffer_has_data</obj_property>
<obj_property name="ObjectShortName">buffer_has_data</obj_property>
</wvobject>
<wvobject type="logic" fp_name="/buffer_bank_test/dut_i/readout_begun">
<obj_property name="ElementShortName">readout_begun</obj_property>
<obj_property name="ObjectShortName">readout_begun</obj_property>
</wvobject>
<wvobject type="array" fp_name="/buffer_bank_test/dut_i/BUFFER_DEPTH">
<obj_property name="ElementShortName">BUFFER_DEPTH[31:0]</obj_property>
<obj_property name="ObjectShortName">BUFFER_DEPTH[31:0]</obj_property>
</wvobject>
<wvobject type="array" fp_name="/buffer_bank_test/dut_i/PARALLEL_SAMPLES">
<obj_property name="ElementShortName">PARALLEL_SAMPLES[31:0]</obj_property>
<obj_property name="ObjectShortName">PARALLEL_SAMPLES[31:0]</obj_property>
</wvobject>
<wvobject type="array" fp_name="/buffer_bank_test/dut_i/SAMPLE_WIDTH">
<obj_property name="ElementShortName">SAMPLE_WIDTH[31:0]</obj_property>
<obj_property name="ObjectShortName">SAMPLE_WIDTH[31:0]</obj_property>
</wvobject>
</wvobject>
</wave_config>
2 changes: 1 addition & 1 deletion dds_test.srcs/sim_1/new/axis_width_converter_test.sv
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ logic clk = 0;
localparam CLK_RATE_HZ = 100_000_000;
always #(0.5s/CLK_RATE_HZ) clk = ~clk;

int error_count;
int error_count = 0;

localparam int DWIDTH_DOWN_IN = 256;
localparam int DWIDTH_UP_IN = 16;
Expand Down
Loading

0 comments on commit 30d86dc

Please sign in to comment.