Skip to content

Commit 5361552

Browse files
committed
added sva
1 parent 1017268 commit 5361552

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

fpga/dv/gpu/gpu_tb.sv

+2-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ always @(negedge clk_12_5875) begin : check_pixel
115115
automatic logic [5:0] expected_pixel = gpugold_pixel(gpu.x_d, gpu.y_d);
116116
automatic logic [5:0] received_pixel = {gpu.r_d, gpu.g_d, gpu.b_d};
117117
if (!rst && gpu.drawing) begin
118-
if (expected_pixel !== received_pixel) begin
118+
assert (expected_pixel === received_pixel)
119+
else begin
119120
$display(
120121
"Failed (%0d,%0d) %0t: expected=%b received=%b text_valid=%b foreground_valid=%b ",
121122
gpu.x_d, gpu.y_d, $realtime, expected_pixel, received_pixel, gpu.text_valid, gpu.foreground_valid

fpga/top.core

+2-1
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ targets:
8888
verilator:
8989
verilator_options:
9090
- --binary
91+
- --assert
9192
- -j 0
9293
- --trace-fst
9394
- --trace-structs
@@ -121,7 +122,7 @@ targets:
121122
mode: lint-only
122123
verilator_options:
123124
- -Wall
124-
- --binary
125+
- --timing
125126
- +1364-2005ext+v
126127
- +1800-2012ext+sv
127128

0 commit comments

Comments
 (0)