module key_reg_cg (/*AUTOARG*/ // Outputs so, // Inputs si, skinnys, sld, clk, rst, enc, se ) ; parameter initial_value = 0; parameter width = 32; output reg [width-1:0] so; input [width-1:0] si, skinnys, sld; input clk, rst, enc, se; wire clki, enci; wire [width-1:0] sr; assign sr = rst ? sld : si; always @ (posedge clk) begin if (enc) begin if (se) so <= sr; else so <= skinnys; end end endmodule // key_reg_cg