Sign in
foss-fpga-tools
/
third_party
/
Surelog
/
36edd2bd845c2e56e36b75d2696ae7a98914e2a8
/
.
/
SVIncCompil
/
Testcases
/
Google
/
chapter-12
/
12.4.2--priority_if.sv
blob: 2b243c7337085e1f33710534ed73d223fdc2bb16 [
file
] [
log
] [
blame
]
/*
:name: priority_if
:description: A module testing priority-if statement
:should_fail: 0
:tags: 12.4.2
*/
module
if_tb
();
wire
[
3
:
0
]
a
=
0
;
reg
[
1
:
0
]
b
=
0
;
always
begin
priority
if
(
a
[
0
]
==
0
)
b
=
1
;
else
if
(
a
[
1
]
==
0
)
b
=
2
;
end
endmodule