Sign in
foss-eda-tools
/
third_party
/
shuttle
/
sky130
/
mpw-006
/
slot-033
/
6607f9ee4e8c9e9a24331d6f5ce8ad7b19e9b324
/
.
/
verilog
/
dv-test
/
dff.v
blob: 159f16ec777c6b50716be4261ab3888f9d5e6b04 [
file
] [
log
] [
blame
]
// dff
module
dff
(
input wire d
,
input wire rst
,
input wire clk
,
output reg q
,
output wire qn
);
initial
begin
q
<=
0
;
end
always
@
(
posedge clk
or
posedge rst
)
if
(
rst
)
q
<=
0
;
else
q
<=
d
;
assign qn
=
~
q
;
endmodule