data/full_repos/permissive/193530477/source codes/MUSIC_PLAY_CIRCUIT.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/MUSIC_PLAY_CIRCUIT.v\n%Error: Exiting due to 3 error(s)\n'
module MUSIC_PLAY_CIRCUIT (
	input ext_clk_25m,
	input ext_rst_n,
	input[3:0] key_v,
	input[3:0] switch,

	output[3:0] dtube_cs_n,
	output[7:0] dtube_data,
	output spk_kk,
	output[3:0] key_h
);


wire[3:0] inx;
wire clk_1m;
wire[3:0] state;
wire[3:0] rom_code;
wire[3:0] keybord_code;
assign inx = (state == 4'b0001)?rom_code:keybord_code;

wire[9:0] end_addr;
wire[9:0] start_addr;



FETCH_MUSIC	FETCH_MUSIC_inst(
	.ext_clk_25m( ext_clk_25m ),
	.ext_rst_n( ext_rst_n ),

	.end_addr( end_addr ),
	.start_addr( start_addr ),
	.clk_1m( clk_1m ),
	.rom_code( rom_code )

);


ELECTRONIC_KEYBOARD	ELECTRONIC_KEYBOARD_inst(
	.ext_clk_25m( ext_clk_25m ),
	.ext_rst_n( ext_rst_n ),
	.key_v( key_v ),
	.key_h( key_h ),
	.keybord_code(keybord_code)
);



PLAYER PLAYER_inst(
	.ext_clk_25m( ext_clk_25m ),
	.ext_rst_n( ext_rst_n ),

	.clk_1m(clk_1m),
	.audio_code(inx),

	.dtube_cs_n( dtube_cs_n ),
	.dtube_data( dtube_data ),
	.beep(spk_kk)
);


STATE_CONTROL STATE_CONTROL_inst(
	.clk(ext_clk_25m),
	.rst_n(ext_rst_n),
	.switch(switch),
	.cstate(state),
	.end_addr( end_addr ),
	.start_addr( start_addr )
);
endmodule
module MUSIC_PLAY_CIRCUIT (
	input ext_clk_25m,
	input ext_rst_n,
	input[3:0] key_v,
	input[3:0] switch,

	output[3:0] dtube_cs_n,
	output[7:0] dtube_data,
	output spk_kk,
	output[3:0] key_h
);



wire[3:0] inx;
wire clk_1m;
wire[3:0] state;
wire[3:0] rom_code;
wire[3:0] keybord_code;
assign inx = (state == 4'b0001)?rom_code:keybord_code;

wire[9:0] end_addr;
wire[9:0] start_addr;



FETCH_MUSIC	FETCH_MUSIC_inst(
	.ext_clk_25m( ext_clk_25m ),
	.ext_rst_n( ext_rst_n ),

	.end_addr( end_addr ),
	.start_addr( start_addr ),
	.clk_1m( clk_1m ),
	.rom_code( rom_code )

);


ELECTRONIC_KEYBOARD	ELECTRONIC_KEYBOARD_inst(
	.ext_clk_25m( ext_clk_25m ),
	.ext_rst_n( ext_rst_n ),
	.key_v( key_v ),
	.key_h( key_h ),
	.keybord_code(keybord_code)
);



PLAYER PLAYER_inst(
	.ext_clk_25m( ext_clk_25m ),
	.ext_rst_n( ext_rst_n ),

	.clk_1m(clk_1m),
	.audio_code(inx),

	.dtube_cs_n( dtube_cs_n ),
	.dtube_data( dtube_data ),
	.beep(spk_kk)
);


STATE_CONTROL STATE_CONTROL_inst(
	.clk(ext_clk_25m),
	.rst_n(ext_rst_n),
	.switch(switch),
	.cstate(state),
	.end_addr( end_addr ),
	.start_addr( start_addr )
);
endmodule