data/full_repos/permissive/428611613/cores/shift_register_v1_0/shift_register.v
data/verilator_xmls/61bac8ed-51f0-4b3c-a9ed-5da896eb148a.xml
module shift_register #
(
  parameter integer DATA_WIDTH = 8
)
(
  input  wire                  aclk,

  input  wire [DATA_WIDTH-1:0] din,

  output wire [DATA_WIDTH-1:0] dout
);

  reg [DATA_WIDTH-1:0] int_data_reg [1:0];

  always @(posedge aclk)
  begin
    int_data_reg[0] <= din;
    int_data_reg[1] <= int_data_reg[0];
  end

  assign dout = int_data_reg[1];

endmodule
module shift_register #
(
  parameter integer DATA_WIDTH = 8
)
(
  input  wire                  aclk,

  input  wire [DATA_WIDTH-1:0] din,

  output wire [DATA_WIDTH-1:0] dout
);


  reg [DATA_WIDTH-1:0] int_data_reg [1:0];

  always @(posedge aclk)
  begin
    int_data_reg[0] <= din;
    int_data_reg[1] <= int_data_reg[0];
  end

  assign dout = int_data_reg[1];

endmodule