Initial commit
This commit is contained in:
9
source/assert.vh
Normal file
9
source/assert.vh
Normal file
@@ -0,0 +1,9 @@
|
||||
`ifndef _ASSERT_VH_
|
||||
`define _ASSERT_VH_
|
||||
|
||||
`define assert(assertion) \
|
||||
if (!(assertion)) begin \
|
||||
$error("ERROR: Assertion failed in %m: assertion");\
|
||||
end
|
||||
|
||||
`endif
|
||||
Reference in New Issue
Block a user