data/full_repos/permissive/511902453/riscv_top.v
1: b"%Error: data/full_repos/permissive/511902453/riscv_top.v:16: Cannot find file containing module: 'instr_memory'\n instr_memory instr_memory_inst (\n ^~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/511902453,data/full_repos/permissive/511902453/instr_memory\n             data/full_repos/permissive/511902453,data/full_repos/permissive/511902453/instr_memory.v\n             data/full_repos/permissive/511902453,data/full_repos/permissive/511902453/instr_memory.sv\n             instr_memory\n             instr_memory.v\n             instr_memory.sv\n             obj_dir/instr_memory\n             obj_dir/instr_memory.v\n             obj_dir/instr_memory.sv\n%Error: data/full_repos/permissive/511902453/riscv_top.v:21: Cannot find file containing module: 'riscv'\n riscv riscv_inst (\n ^~~~~\n%Error: data/full_repos/permissive/511902453/riscv_top.v:37: Cannot find file containing module: 'data_memory'\n data_memory data_memory_inst (\n ^~~~~~~~~~~\n%Error: Exiting due to 3 error(s)\n"
module riscv_top(
	input clk,
	input rst_n,
	output [7:0]rom_addr
    );


	wire [31:0]ram_addr;
	wire [31:0]instr;
	wire [31:0]rd_mem_data;
	wire [31:0]wr_mem_data;
	wire w_en;
	wire r_en;
	wire [2:0]rw_type;
	
	instr_memory instr_memory_inst (
    .addr(rom_addr), 
    .instr(instr)
    );

	riscv riscv_inst (
    .clk(clk), 
    .rst_n(rst_n), 
    .instr(instr), 
    .rd_mem_data(rd_mem_data), 
    .rom_addr(rom_addr), 
    .wr_mem_data(wr_mem_data), 
    .w_en(w_en), 
    .r_en(r_en), 
    .ram_addr(ram_addr), 
    .rw_type(rw_type)
    );

	
	
	
	data_memory data_memory_inst (
    .clk(clk), 
    .rst_n(rst_n), 
    .w_en(w_en), 
    .r_en(r_en), 
    .addr(ram_addr), 
    .rw_type(rw_type), 
    .din(wr_mem_data), 
    .dout(rd_mem_data)
    );	

endmodule
module riscv_top(
	input clk,
	input rst_n,
	output [7:0]rom_addr
    );



	wire [31:0]ram_addr;
	wire [31:0]instr;
	wire [31:0]rd_mem_data;
	wire [31:0]wr_mem_data;
	wire w_en;
	wire r_en;
	wire [2:0]rw_type;
	
	instr_memory instr_memory_inst (
    .addr(rom_addr), 
    .instr(instr)
    );

	riscv riscv_inst (
    .clk(clk), 
    .rst_n(rst_n), 
    .instr(instr), 
    .rd_mem_data(rd_mem_data), 
    .rom_addr(rom_addr), 
    .wr_mem_data(wr_mem_data), 
    .w_en(w_en), 
    .r_en(r_en), 
    .ram_addr(ram_addr), 
    .rw_type(rw_type)
    );

	
	
	
	data_memory data_memory_inst (
    .clk(clk), 
    .rst_n(rst_n), 
    .w_en(w_en), 
    .r_en(r_en), 
    .addr(ram_addr), 
    .rw_type(rw_type), 
    .din(wr_mem_data), 
    .dout(rd_mem_data)
    );	

endmodule