Sign in
foss-eda-tools
/
third_party
/
shuttle
/
sky130
/
mpw-007
/
slot-032
/
a159c1765e0b345e4ad0209785dca40de8059aca
/
.
/
verilog
/
rtl_sram_out_cache
/
hehe
/
src
/
cache
/
cacheblock
/
std_dffe.v
blob: 9271aaafbd742f80ffc48842fa23c38b93671acc [
file
] [
log
] [
blame
]
module
std_dffe
#(
parameter WIDTH
=
8
)
(
input clk
,
input en
,
input
[
WIDTH
-
1
:
0
]
d
,
output
[
WIDTH
-
1
:
0
]
q
);
reg
[
WIDTH
-
1
:
0
]
dff_q
;
always
@(
posedge clk
)
begin
if
(
en
|
~
en
)
begin
dff_q
<=
d
;
end
end
assign q
=
en
?
dff_q
:
'0;
endmodule