data/full_repos/permissive/160156109/mips-work/dm.v
[Errno 2] No such file or directory: 'preprocess.output'
data/verilator_xmls/26c3f9c4-cd37-4b7b-91b2-6cbdcd69cd65.xml
module dm(clk, reset, Addr, din, dout, WrEn);
  input [31:0] Addr;
  input [31:0] din;
  input WrEn, clk, reset;
  output reg [31:0] dout;
  
  reg [31:0] dm[1023:0];
  
  always @(posedge clk, posedge reset)
    begin
      if(WrEn)
        dm[Addr[9:0]][31:0] <= din[31:0];
    end

  always @(*)
    dout[31:0] <= dm[Addr[9:0]][31:0];

endmodule
module dm(clk, reset, Addr, din, dout, WrEn);

  input [31:0] Addr;
  input [31:0] din;
  input WrEn, clk, reset;
  output reg [31:0] dout;
  
  reg [31:0] dm[1023:0];
  
  always @(posedge clk, posedge reset)
    begin
      if(WrEn)
        dm[Addr[9:0]][31:0] <= din[31:0];
    end

  always @(*)
    dout[31:0] <= dm[Addr[9:0]][31:0];

endmodule