Sign in
foss-fpga-tools
/
python-symbiflow-v2x
/
037d50d09362cdcec5a109e8509a743f787f0e90
/
.
/
tests
/
clocks
/
dff_comb_one_clock
/
dff_comb_one_clock.sim.v
blob: a1e60c214fb279d8cd7e5207ff07a8ac76d4753e [
file
]
/*
* `input wire a` should be detected as a clock because it drives the flip
* flop.
*/
module
BLOCK
(
a
,
b
,
c
,
d
);
input wire a
;
input wire b
;
input wire c
;
output wire d
;
reg r
;
always
@
(
posedge a
)
begin
r
<=
b
|
~
c
;
end
assign d
=
r
;
endmodule