Sign in
foss-fpga-tools
/
third_party
/
Surelog
/
4a79a47b7dd03dd4b2776ee40322b0149935d234
/
.
/
src
/
Testcases
/
Google
/
chapter-21
/
21.3--sscanf.sv
blob: 480af47e48bf8f2e4aade9085ff959c06e970a76 [
file
] [
log
] [
blame
]
/*
:name: sscanf_task
:description: $sscanf test
:should_fail: 0
:tags: 21.3
:type: simulation parsing
*/
module
top
();
string
str
=
"1234"
;
int
c
;
initial
begin
$sscanf
(
str
,
"%d"
,
c
);
$display
(
":assert: (%d == %s)"
,
c
,
str
);
end
endmodule