data/full_repos/permissive/118800618/DataMem.v
'utf-8' codec can't decode byte 0xd3 in position 797: invalid continuation byte
data/verilator_xmls/025378a1-b65c-406d-9a71-4883e0a0f5b9.xml
module DataMem( addr, datain, dataout, clk, rst

    );
	 input clk;
	 input rst;
	 
	 input[31:0] addr;
	 input[31:0] datain;
	 output reg[31:0] dataout;
	 
	 reg [7:0] memory [0:63];
	 initial 
	 begin;
	  dataout = 0;
	 end
	 
	 always@(negedge clk) 
	 begin
	 
	 if(rst)
	 begin
	  memory[addr+3] = datain[31:24];
          memory[addr+2] = datain[23:16];
          memory[addr+1] = datain[15:8];
          memory[addr] = datain[7:0];
      end 
		else 
			begin
          dataout[31:24] = memory[addr+3];
          dataout[23:16] = memory[addr+2];
          dataout[15:8] = memory[addr+1];
          dataout[7:0] = memory[addr];
      end
    end
	 
	 
	 

endmodule
module DataMem( addr, datain, dataout, clk, rst

    );

	 input clk;
	 input rst;
	 
	 input[31:0] addr;
	 input[31:0] datain;
	 output reg[31:0] dataout;
	 
	 reg [7:0] memory [0:63];
	 initial 
	 begin;
	  dataout = 0;
	 end
	 
	 always@(negedge clk) 
	 begin
	 
	 if(rst)
	 begin
	  memory[addr+3] = datain[31:24];
          memory[addr+2] = datain[23:16];
          memory[addr+1] = datain[15:8];
          memory[addr] = datain[7:0];
      end 
		else 
			begin
          dataout[31:24] = memory[addr+3];
          dataout[23:16] = memory[addr+2];
          dataout[15:8] = memory[addr+1];
          dataout[7:0] = memory[addr];
      end
    end
	 
	 
	 

endmodule