Skip to content

Commit 6e5e589

Browse files
committed
PoC: Add --continue_on_fail parameter
1 parent 6ab0926 commit 6e5e589

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

TinyFPGA-Bootloader.core

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ targets:
138138
address_device_test: &tc
139139
default_tool : icarus
140140
filesets : [common, test_common, address_device_test]
141+
parameters : [continue_on_fail]
141142
tools:
142143
modelsim:
143144
vlog_options : [-sv]
@@ -234,3 +235,9 @@ targets:
234235
win10_enumeration_test:
235236
<<: *tc
236237
filesets : [common, test_common, win10_enumeration_test]
238+
239+
parameters:
240+
continue_on_fail:
241+
datatype : bool
242+
description : Continue instead of exit on failed assertions
243+
paramtype : vlogdefine

tests/top_tb_header.vh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
`timescale 1ps / 1ps
22

3-
`ifdef __ICARUS__
4-
`define finish_and_return(code) $finish_and_return(code)
3+
`ifdef continue_on_fail
4+
`define finish_and_return(code) #0
55
`else
6-
`define finish_and_return(code) $finish
6+
`ifdef __ICARUS__
7+
`define finish_and_return(code) $finish_and_return(code)
8+
`else
9+
`define finish_and_return(code) $finish
10+
`endif
711
`endif
812

913
`define assert(msg, signal, value) \

0 commit comments

Comments
 (0)