Update tests so they can be converted to vlog95

This commit is contained in:
Cary R 2023-05-31 22:35:21 -07:00
parent ef931e2e0d
commit 01c5e502bd
2 changed files with 6 additions and 2 deletions

View File

@ -10,7 +10,9 @@ module test;
assign y = '{'{1'b1, 1 + 1, 3.0, "TEST"}, assign y = '{'{1'b1, 1 + 1, 3.0, "TEST"},
'{5, 6, '{1'b0, 1 * 1, 3, 1.0}, 8}}; '{5, 6, '{1'b0, 1 * 1, 3, 1.0}, 8}};
final begin // Use an inital block with a delay since a final block cannot be converted to vlog95
initial begin
#1;
if (x === 16'h1234 && y == 32'h12345678) begin if (x === 16'h1234 && y == 32'h12345678) begin
$display("PASSED"); $display("PASSED");
end else begin end else begin

View File

@ -20,7 +20,9 @@ module test;
assign x = '{1'b1, 2.0, 2 + 1}; assign x = '{1'b1, 2.0, 2 + 1};
assign y = '{'{1'b1, 2.0, 2 + 1}, '{4, 5, 6}}; assign y = '{'{1'b1, 2.0, 2 + 1}, '{4, 5, 6}};
final begin // Use an inital block with a delay since a final block cannot be converted to vlog95
initial begin
#1;
if (x === 56'h00000001000203 && if (x === 56'h00000001000203 &&
y === 68'h00000001000203456) begin y === 68'h00000001000203456) begin
$display("PASSED"); $display("PASSED");