data/full_repos/permissive/153775588/verilator/hdl/MF8A18_SoC.v
1: b"%Error: data/full_repos/permissive/153775588/verilator/hdl/MF8A18_SoC.v:34: Cannot find file containing module: 'MF8A18'\n MF8A18 cpu (\n ^~~~~~\n        ... Looked in:\n             data/full_repos/permissive/153775588/verilator/hdl,data/full_repos/permissive/153775588/MF8A18\n             data/full_repos/permissive/153775588/verilator/hdl,data/full_repos/permissive/153775588/MF8A18.v\n             data/full_repos/permissive/153775588/verilator/hdl,data/full_repos/permissive/153775588/MF8A18.sv\n             MF8A18\n             MF8A18.v\n             MF8A18.sv\n             obj_dir/MF8A18\n             obj_dir/MF8A18.v\n             obj_dir/MF8A18.sv\n%Error: data/full_repos/permissive/153775588/verilator/hdl/MF8A18_SoC.v:51: Cannot find file containing module: 'ROM1K16'\n ROM1K16 rom (\n ^~~~~~~\n%Error: data/full_repos/permissive/153775588/verilator/hdl/MF8A18_SoC.v:57: Cannot find file containing module: 'RAM32K'\n RAM32K ram (\n ^~~~~~\n%Error: Exiting due to 3 error(s)\n"
module MF8A18_SoC (
	clk,
	resetn,
	FLASH_SCK,
	FLASH_CS,
	FLASH_MISO,
	FLASH_MOSI,
	UART_TXD
	);

	output FLASH_SCK;
	output FLASH_CS;
	input FLASH_MISO;
	output FLASH_MOSI;

	input clk;
	input resetn;	
	output UART_TXD;

	wire [9:0] rom_addr;
	wire [15:0] rom_data;
	
	wire [15:0] maddr;
	wire [7:0]  mwdata;
	wire [7:0]  mrdata;
	wire        mwrite;

	MF8A18 cpu (
		.CLK		(clk),
        	.RSTn		(resetn),
	        .SPI_CS		(FLASH_CS),
	        .SPI_MISO	(FLASH_MISO),
	        .SPI_MOSI	(FLASH_MOSI),
	        .SPI_SCK	(FLASH_SCK),
	        .UART_TXD	(UART_TXD),
	        .maddr		(maddr),
	        .mread		(),
	        .mwdata		(mwdata),
	        .mwrite		(mwrite),
	        .ramdata	(mrdata),
	        .rom_addr	(rom_addr),
	        .rom_data	(rom_data)
	);

	ROM1K16 rom (
		.addr		(rom_addr),
	        .clk		(clk),
        	.dout		(rom_data)
	);

	RAM32K ram (
		.addr		(maddr[14:0]),
	        .clk		(clk),
        	.din		(mwdata),
	        .dout		(mrdata),
	        .we		(mwrite)
	);

endmodule
module MF8A18_SoC (
	clk,
	resetn,
	FLASH_SCK,
	FLASH_CS,
	FLASH_MISO,
	FLASH_MOSI,
	UART_TXD
	);


	output FLASH_SCK;
	output FLASH_CS;
	input FLASH_MISO;
	output FLASH_MOSI;

	input clk;
	input resetn;	
	output UART_TXD;

	wire [9:0] rom_addr;
	wire [15:0] rom_data;
	
	wire [15:0] maddr;
	wire [7:0]  mwdata;
	wire [7:0]  mrdata;
	wire        mwrite;

	MF8A18 cpu (
		.CLK		(clk),
        	.RSTn		(resetn),
	        .SPI_CS		(FLASH_CS),
	        .SPI_MISO	(FLASH_MISO),
	        .SPI_MOSI	(FLASH_MOSI),
	        .SPI_SCK	(FLASH_SCK),
	        .UART_TXD	(UART_TXD),
	        .maddr		(maddr),
	        .mread		(),
	        .mwdata		(mwdata),
	        .mwrite		(mwrite),
	        .ramdata	(mrdata),
	        .rom_addr	(rom_addr),
	        .rom_data	(rom_data)
	);

	ROM1K16 rom (
		.addr		(rom_addr),
	        .clk		(clk),
        	.dout		(rom_data)
	);

	RAM32K ram (
		.addr		(maddr[14:0]),
	        .clk		(clk),
        	.din		(mwdata),
	        .dout		(mrdata),
	        .we		(mwrite)
	);

endmodule