data/full_repos/permissive/212394344/DataMemoryBlock.v
1: b"%Error: data/full_repos/permissive/212394344/DataMemoryBlock.v:40: Cannot find file containing module: 'DataMemory'\nDataMemory DM (\n^~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/212394344,data/full_repos/permissive/212394344/DataMemory\n             data/full_repos/permissive/212394344,data/full_repos/permissive/212394344/DataMemory.v\n             data/full_repos/permissive/212394344,data/full_repos/permissive/212394344/DataMemory.sv\n             DataMemory\n             DataMemory.v\n             DataMemory.sv\n             obj_dir/DataMemory\n             obj_dir/DataMemory.v\n             obj_dir/DataMemory.sv\n%Error: Exiting due to 1 error(s)\n"
module DataMemoryBlock(ans_dm, ans_ex, DM_data, mem_rw_ex, mem_en_ex, mem_mux_sel_dm, reset, clk );

input [7 : 0]  ans_ex;
input [7 : 0]  DM_data;
input mem_rw_ex, mem_en_ex, mem_mux_sel_dm, reset, clk;
output wire[7 : 0] ans_dm;
reg [7 : 0] Ex_out; 
wire [7 : 0] DM_out;
wire [7:0] temp;

assign temp=(reset==0)? 8'b00000000 : ans_ex;

always @(posedge clk)
begin
	Ex_out = temp;
end

assign ans_dm = (mem_mux_sel_dm==1) ? DM_out : Ex_out;

DataMemory DM (
  .clka(clk),
  .ena(mem_en_ex),
  .wea(mem_rw_ex),
  .addra(ans_ex),
  .dina(DM_data),
  .douta(DM_out)
);

endmodule
module DataMemoryBlock(ans_dm, ans_ex, DM_data, mem_rw_ex, mem_en_ex, mem_mux_sel_dm, reset, clk );


input [7 : 0]  ans_ex;
input [7 : 0]  DM_data;
input mem_rw_ex, mem_en_ex, mem_mux_sel_dm, reset, clk;
output wire[7 : 0] ans_dm;
reg [7 : 0] Ex_out; 
wire [7 : 0] DM_out;
wire [7:0] temp;

assign temp=(reset==0)? 8'b00000000 : ans_ex;

always @(posedge clk)
begin
	Ex_out = temp;
end

assign ans_dm = (mem_mux_sel_dm==1) ? DM_out : Ex_out;

DataMemory DM (
  .clka(clk),
  .ena(mem_en_ex),
  .wea(mem_rw_ex),
  .addra(ans_ex),
  .dina(DM_data),
  .douta(DM_out)
);

endmodule