Sign in
foss-eda-tools
/
skywater-pdk
/
libs
/
sky130_osu_sc
/
701e93b125a5d83c61ce1b113e1b9c6f4ee7d0e5
/
.
/
flow
/
synth_snpsRISCV
/
hdl
/
flopens.sv
blob: afa7adc0f96de84653c0b5b3913df19ab7a2a85a [
file
] [
log
] [
blame
]
`timescale 1ns/1ns
module flopens #(parameter WIDTH = 8)
(input clk, set,
input en,
input [WIDTH-1:0] d,
output reg [WIDTH-1:0] q);
always @(posedge clk, posedge set)
if (set) q <= #1 1;
else if (en) q <= #1 d;
endmodule // flopens