From 1f58f48c054636a4db4a53f5b63200758cd15607 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Fri, 23 Dec 2022 13:12:21 -0500 Subject: [PATCH] Tests: Rename test of last commit --- test_regress/t/{t_0.pl => t_func_sel.pl} | 0 test_regress/t/{t_0.v => t_func_sel.v} | 3 +++ 2 files changed, 3 insertions(+) rename test_regress/t/{t_0.pl => t_func_sel.pl} (100%) rename test_regress/t/{t_0.v => t_func_sel.v} (95%) diff --git a/test_regress/t/t_0.pl b/test_regress/t/t_func_sel.pl similarity index 100% rename from test_regress/t/t_0.pl rename to test_regress/t/t_func_sel.pl diff --git a/test_regress/t/t_0.v b/test_regress/t/t_func_sel.v similarity index 95% rename from test_regress/t/t_0.v rename to test_regress/t/t_func_sel.v index 176367d64..53ab12b1f 100644 --- a/test_regress/t/t_0.v +++ b/test_regress/t/t_func_sel.v @@ -32,8 +32,10 @@ module t(/*AUTOARG*/ // Test loop always @ (posedge clk) begin +`ifdef TEST_VERBOSE $write("[%0t] cyc==%0d crc=%x result=%x in=%x out=%x\n", $time, cyc, crc, result, in, out); +`endif cyc <= cyc + 1; crc <= {crc[62:0], crc[63] ^ crc[2] ^ crc[0]}; sum <= {sum[127:1], 1'b0} + result; @@ -54,6 +56,7 @@ module t(/*AUTOARG*/ function [W-1:0] reverse(input [W-1:0] val); integer i; + // Bug workaround: reverse = '0; for (i = 0; i < W; i = i + 1) reverse[W-1-i] = val[i]; endfunction