asdffen.v
408 Bytes
module asdffen (out, in, en, clk, reset);
//synopsys template
parameter width = 1, reset_value = 0;
output [width-1:0] out;
input [width-1:0] in;
input clk;
input en;
input reset;
reg [width-1:0] out;
always @ (posedge clk or negedge reset)
begin
if (!reset)
out <= {width{reset_value}};
else
out <= en ? in : out;
end
endmodule