asdffen.v
351 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)
begin
if(reset == 1'b0)
out <= {width{reset_value}};
else if(en)
out <= in;
end
endmodule