Sign in
foss-fpga-tools
/
third_party
/
Surelog
/
4a79a47b7dd03dd4b2776ee40322b0149935d234
/
.
/
src
/
Testcases
/
Google
/
chapter-13
/
13.4--function.sv
blob: 1be8ce93d4b751dc6be50e9fc5dd05a226f08481 [
file
] [
log
] [
blame
]
/*
:name: function
:description: function test
:should_fail: 0
:tags: 13.4
:type: simulation parsing
*/
module
top
();
function
int
test
(
int
val
);
return
val
+
1
;
endfunction
initial
$display
(
":assert: (%d == 2)"
,
test
(
1
));
endmodule