data/full_repos/permissive/169738435/Audio/ym_timers.v
1: b"%Error: data/full_repos/permissive/169738435/Audio/ym_timers.v:34: Cannot find file containing module: 'ym_timer'\n ym_timer #(.mult_width(1), .cnt_width(10)) timer_A (\n ^~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/169738435/Audio,data/full_repos/permissive/169738435/ym_timer\n             data/full_repos/permissive/169738435/Audio,data/full_repos/permissive/169738435/ym_timer.v\n             data/full_repos/permissive/169738435/Audio,data/full_repos/permissive/169738435/ym_timer.sv\n             ym_timer\n             ym_timer.v\n             ym_timer.sv\n             obj_dir/ym_timer\n             obj_dir/ym_timer.v\n             obj_dir/ym_timer.sv\n%Error: data/full_repos/permissive/169738435/Audio/ym_timers.v:47: Cannot find file containing module: 'ym_timer'\n ym_timer #(.mult_width(4), .cnt_width(8)) timer_B (\n ^~~~~~~~\n%Error: Exiting due to 2 error(s)\n"
module ym_timers(
	input CLK,
	input TICK_144,
	input nRESET,
	input [9:0] YMTIMER_TA_LOAD,
	input [7:0] YMTIMER_TB_LOAD,
	input [5:0] YMTIMER_CONFIG,
	input clr_run_A, set_run_A, clr_run_B, set_run_B,
	output FLAG_A, FLAG_B,
	output nIRQ
);
	

	assign nIRQ = ~((FLAG_A & YMTIMER_CONFIG[2]) | (FLAG_B & YMTIMER_CONFIG[3]));
	
	ym_timer	#(.mult_width(1), .cnt_width(10)) timer_A (
		.CLK			( CLK ),
		.TICK_144	( TICK_144 ),
		.nRESET		( nRESET ),
		.LOAD_VALUE	( YMTIMER_TA_LOAD	),	
		.LOAD			( YMTIMER_CONFIG[0] ),
		.CLR_FLAG   ( YMTIMER_CONFIG[4] ),
		.SET_RUN		( set_run_A	),
		.CLR_RUN		( clr_run_A ),
		.OVF_FLAG	( FLAG_A	),
		.OVF			(  )
	);

	ym_timer #(.mult_width(4), .cnt_width(8)) timer_B (
		.CLK			( CLK ),
		.TICK_144	( TICK_144 ),
		.nRESET		( nRESET ),
		.LOAD_VALUE	( YMTIMER_TB_LOAD	),
		.LOAD			( YMTIMER_CONFIG[1] ),
		.CLR_FLAG   ( YMTIMER_CONFIG[5] ),
		.SET_RUN		( set_run_B	),
		.CLR_RUN		( clr_run_B ),
		.OVF_FLAG	( FLAG_B	),
		.OVF			(	)
	);
	
endmodule
module ym_timers(
	input CLK,
	input TICK_144,
	input nRESET,
	input [9:0] YMTIMER_TA_LOAD,
	input [7:0] YMTIMER_TB_LOAD,
	input [5:0] YMTIMER_CONFIG,
	input clr_run_A, set_run_A, clr_run_B, set_run_B,
	output FLAG_A, FLAG_B,
	output nIRQ
);

	

	assign nIRQ = ~((FLAG_A & YMTIMER_CONFIG[2]) | (FLAG_B & YMTIMER_CONFIG[3]));
	
	ym_timer	#(.mult_width(1), .cnt_width(10)) timer_A (
		.CLK			( CLK ),
		.TICK_144	( TICK_144 ),
		.nRESET		( nRESET ),
		.LOAD_VALUE	( YMTIMER_TA_LOAD	),	
		.LOAD			( YMTIMER_CONFIG[0] ),
		.CLR_FLAG   ( YMTIMER_CONFIG[4] ),
		.SET_RUN		( set_run_A	),
		.CLR_RUN		( clr_run_A ),
		.OVF_FLAG	( FLAG_A	),
		.OVF			(  )
	);

	ym_timer #(.mult_width(4), .cnt_width(8)) timer_B (
		.CLK			( CLK ),
		.TICK_144	( TICK_144 ),
		.nRESET		( nRESET ),
		.LOAD_VALUE	( YMTIMER_TB_LOAD	),
		.LOAD			( YMTIMER_CONFIG[1] ),
		.CLR_FLAG   ( YMTIMER_CONFIG[5] ),
		.SET_RUN		( set_run_B	),
		.CLR_RUN		( clr_run_B ),
		.OVF_FLAG	( FLAG_B	),
		.OVF			(	)
	);
	
endmodule