From 470a3da703d0b481207bec29fb930cf4875db3f7 Mon Sep 17 00:00:00 2001 From: Ethan Sifferman Date: Sun, 30 Jul 2023 22:44:19 -0700 Subject: [PATCH] removed wire and assign from test --- ivtest/ivltests/sv_argumentless_func.v | 37 +++++++++++++++----------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/ivtest/ivltests/sv_argumentless_func.v b/ivtest/ivltests/sv_argumentless_func.v index 6ca061900..cd32b3299 100644 --- a/ivtest/ivltests/sv_argumentless_func.v +++ b/ivtest/ivltests/sv_argumentless_func.v @@ -5,40 +5,47 @@ function automatic [7:0] test_func; test_func = 8'h1; endfunction +parameter test_parameter = test_func(); + logic [7:0] test_alwayscomb; always_comb test_alwayscomb = test_func(); +// logic [7:0] test_assign; +// assign test_assign = test_func(); + +// wire [7:0] test_wire = test_func(); + logic [7:0] test_alwaysff; logic clk; always_ff @(posedge clk) test_alwaysff <= test_func(); -logic [7:0] test_assign; -assign test_assign = test_func(); - -wire [7:0] test_wire = test_func(); - initial begin - #1; - if (test_func() !== 8'h1) begin $display("FAILED -- test_func()=%h, expect %h", test_func(), 8'h1); $finish; end + if (test_parameter !== test_func()) begin + $display("FAILED -- test_parameter=%h, expect %h", test_parameter, test_func()); + $finish; + end + + #1; + if (test_alwayscomb !== test_func()) begin $display("FAILED -- test_alwayscomb=%h, expect %h", test_alwayscomb, test_func()); $finish; end - if (test_assign !== test_func()) begin - $display("FAILED -- test_assign=%h, expect %h", test_assign, test_func()); - $finish; - end + // if (test_assign !== test_func()) begin + // $display("FAILED -- test_assign=%h, expect %h", test_assign, test_func()); + // $finish; + // end - if (test_wire !== test_func()) begin - $display("FAILED -- test_wire=%h, expect %h", test_wire, test_func()); - $finish; - end + // if (test_wire !== test_func()) begin + // $display("FAILED -- test_wire=%h, expect %h", test_wire, test_func()); + // $finish; + // end clk = 0; #1;