From e0e4dfb55ea1812521aa4c0e79240987653538da Mon Sep 17 00:00:00 2001 From: Zachary Snow Date: Wed, 29 Dec 2021 10:38:55 -0700 Subject: [PATCH] fix iverilog compatibility for new case expr tests --- tests/simple/case_expr_extend.sv | 2 +- tests/simple/case_expr_query.sv | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/simple/case_expr_extend.sv b/tests/simple/case_expr_extend.sv index 61bd14df1..d4ca2aa9b 100644 --- a/tests/simple/case_expr_extend.sv +++ b/tests/simple/case_expr_extend.sv @@ -1,7 +1,7 @@ module top( output logic [5:0] out ); -always_comb begin +initial begin out = '0; case (1'b1 << 1) 2'b10: out = '1; diff --git a/tests/simple/case_expr_query.sv b/tests/simple/case_expr_query.sv index 63a0a8b7a..844dfb713 100644 --- a/tests/simple/case_expr_query.sv +++ b/tests/simple/case_expr_query.sv @@ -1,7 +1,7 @@ module top( output logic [5:0] out ); -always_comb begin +initial begin out = '0; case ($bits (out)) 6: case ($size (out)) 6: -- 2.30.2