data/full_repos/permissive/193530477/source codes/FETCH_MUSIC.v
1: b'%Error: Cannot find file containing module: codes,data/full_repos/permissive/193530477\n        ... Looked in:\n             data/full_repos/permissive/193530477/source/codes,data/full_repos/permissive/193530477\n             data/full_repos/permissive/193530477/source/codes,data/full_repos/permissive/193530477.v\n             data/full_repos/permissive/193530477/source/codes,data/full_repos/permissive/193530477.sv\n             codes,data/full_repos/permissive/193530477\n             codes,data/full_repos/permissive/193530477.v\n             codes,data/full_repos/permissive/193530477.sv\n             obj_dir/codes,data/full_repos/permissive/193530477\n             obj_dir/codes,data/full_repos/permissive/193530477.v\n             obj_dir/codes,data/full_repos/permissive/193530477.sv\n%Error: Cannot find file containing module: data/full_repos/permissive/193530477/source\n%Error: Cannot find file containing module: codes/FETCH_MUSIC.v\n%Error: Exiting due to 3 error(s)\n'
module FETCH_MUSIC(
	input ext_clk_25m,
	input ext_rst_n,

	input[9:0] end_addr,
	input[9:0] start_addr,
	output clk_1m,
	output[3:0] rom_code

);


wire clk_2k;
wire clk_4;
wire[3:0] code;
wire[9:0] rom_addr;
wire[3:0] state;


PLL25	PLL25_inst (
	.areset ( !ext_rst_n ),
	.inclk0 ( ext_clk_25m ),
	.c0 ( clk_1m ),
	.c1 ( clk_2k )
	);


FDIV FDIV_inst (
	.CLK ( clk_2k ),
	.PM ( clk_4 )
	);



CNT138T CNT138T_inst (
	.CLK ( clk_4 ),
	.STATE( state ),
	.end_addr( end_addr ),
	.start_addr( start_addr ),
	.CNT8 ( rom_addr )
	);	
	

MUSIC	MUSIC_inst (
	.address ( rom_addr ),
	.clock ( clk_4 ),
	.q ( rom_code )
	);
	

endmodule
module FETCH_MUSIC(
	input ext_clk_25m,
	input ext_rst_n,

	input[9:0] end_addr,
	input[9:0] start_addr,
	output clk_1m,
	output[3:0] rom_code

);



wire clk_2k;
wire clk_4;
wire[3:0] code;
wire[9:0] rom_addr;
wire[3:0] state;


PLL25	PLL25_inst (
	.areset ( !ext_rst_n ),
	.inclk0 ( ext_clk_25m ),
	.c0 ( clk_1m ),
	.c1 ( clk_2k )
	);


FDIV FDIV_inst (
	.CLK ( clk_2k ),
	.PM ( clk_4 )
	);



CNT138T CNT138T_inst (
	.CLK ( clk_4 ),
	.STATE( state ),
	.end_addr( end_addr ),
	.start_addr( start_addr ),
	.CNT8 ( rom_addr )
	);	
	

MUSIC	MUSIC_inst (
	.address ( rom_addr ),
	.clock ( clk_4 ),
	.q ( rom_code )
	);
	

endmodule