blob: 20caa1b424533c1ffabcf5741e8c45250973bee7 [file] [log] [blame]
`define ASSERT_EQUALS(x,y) \
repeat(1)\
begin\
if( (x) != (y) ) \
// A Macro comment \
begin\
$write( "assert failed %d != %d\n", (x), (y) );\
$finish;\
end\
end
// test the assert( should fail)
`ASSERT_EQUALS(t_data_in,16'hfffe)
`define ASSERT_EQUALS2(x,y) \
repeat(1)