data/full_repos/permissive/215874117/src/ninjakun_adec.v
1: b'%Warning-MULTITOP: data/full_repos/permissive/215874117/src/ninjakun_adec.v:23: Multiple top level modules\n                                                                              : ... Suggest see manual; fix the duplicates, or use --top-module to select top.\n                   ... Use "/* verilator lint_off MULTITOP */" and lint_on around source to disable this message.\n                                                                              : ... Top module \'NINJAKUN_SADEC\'\nmodule NINJAKUN_SADEC\n       ^~~~~~~~~~~~~~\n                                                                              : ... Top module \'NINJAKUN_ADEC\'\nmodule NINJAKUN_ADEC\n       ^~~~~~~~~~~~~\n%Error: Exiting due to 1 warning(s)\n'
module NINJAKUN_ADEC
(
	input [15:0] CP0AD,
	input			 CP0WR,

	input [15:0] CP1AD,
	input			 CP1WR,

	output		 CS_IN0,
	output		 CS_IN1,

	output		 CS_SH0,
	output		 CS_SH1,

	output		 SYNWR0,
	output		 SYNWR1
);

assign CS_IN0 = (CP0AD[15:2] == 14'b1010_0000_0000_00); 
assign CS_IN1 = (CP1AD[15:2] == 14'b1010_0000_0000_00); 

assign CS_SH0 = (CP0AD[15:11] == 5'b1110_0); 
assign CS_SH1 = (CP1AD[15:11] == 5'b1110_0); 

assign SYNWR0 = CS_IN0 & (CP0AD[1:0]==2) & CP0WR;
assign SYNWR1 = CS_IN1 & (CP1AD[1:0]==2) & CP1WR;

endmodule
module NINJAKUN_ADEC
(
	input [15:0] CP0AD,
	input			 CP0WR,

	input [15:0] CP1AD,
	input			 CP1WR,

	output		 CS_IN0,
	output		 CS_IN1,

	output		 CS_SH0,
	output		 CS_SH1,

	output		 SYNWR0,
	output		 SYNWR1
);


assign CS_IN0 = (CP0AD[15:2] == 14'b1010_0000_0000_00); 
assign CS_IN1 = (CP1AD[15:2] == 14'b1010_0000_0000_00); 

assign CS_SH0 = (CP0AD[15:11] == 5'b1110_0); 
assign CS_SH1 = (CP1AD[15:11] == 5'b1110_0); 

assign SYNWR0 = CS_IN0 & (CP0AD[1:0]==2) & CP0WR;
assign SYNWR1 = CS_IN1 & (CP1AD[1:0]==2) & CP1WR;

endmodule