data/full_repos/permissive/219228794/src/GreenBeret_MAIN.v
None: at end of input
1: b'%Error: data/full_repos/permissive/219228794/src/GreenBeret_MAIN.v:78: Cannot find include file: HIDDEF.i\n`include "HIDDEF.i" \n         ^~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/219228794/src,data/full_repos/permissive/219228794/HIDDEF.i\n             data/full_repos/permissive/219228794/src,data/full_repos/permissive/219228794/HIDDEF.i.v\n             data/full_repos/permissive/219228794/src,data/full_repos/permissive/219228794/HIDDEF.i.sv\n             HIDDEF.i\n             HIDDEF.i.v\n             HIDDEF.i.sv\n             obj_dir/HIDDEF.i\n             obj_dir/HIDDEF.i.v\n             obj_dir/HIDDEF.i.sv\n%Error: data/full_repos/permissive/219228794/src/GreenBeret_MAIN.v:79: Define or directive not defined: \'`none\'\n                                                                     : ... Suggested alternative: \'`inline\'\nwire [7:0] ISYS = ~{`none,`none,`none,`P2ST,`P1ST,`none,`none,`COIN};\n                    ^~~~~\n%Error: data/full_repos/permissive/219228794/src/GreenBeret_MAIN.v:79: syntax error, unexpected \',\', expecting TYPE-IDENTIFIER\nwire [7:0] ISYS = ~{`none,`none,`none,`P2ST,`P1ST,`none,`none,`COIN};\n                         ^\n%Error: data/full_repos/permissive/219228794/src/GreenBeret_MAIN.v:79: Define or directive not defined: \'`none\'\n                                                                     : ... Suggested alternative: \'`inline\'\nwire [7:0] ISYS = ~{`none,`none,`none,`P2ST,`P1ST,`none,`none,`COIN};\n                          ^~~~~\n%Error: data/full_repos/permissive/219228794/src/GreenBeret_MAIN.v:79: Define or directive not defined: \'`none\'\n                                                                     : ... Suggested alternative: \'`inline\'\nwire [7:0] ISYS = ~{`none,`none,`none,`P2ST,`P1ST,`none,`none,`COIN};\n                                ^~~~~\n%Error: data/full_repos/permissive/219228794/src/GreenBeret_MAIN.v:79: Define or directive not defined: \'`P2ST\'\nwire [7:0] ISYS = ~{`none,`none,`none,`P2ST,`P1ST,`none,`none,`COIN};\n                                      ^~~~~\n%Error: data/full_repos/permissive/219228794/src/GreenBeret_MAIN.v:79: Define or directive not defined: \'`P1ST\'\nwire [7:0] ISYS = ~{`none,`none,`none,`P2ST,`P1ST,`none,`none,`COIN};\n                                            ^~~~~\n%Error: data/full_repos/permissive/219228794/src/GreenBeret_MAIN.v:79: Define or directive not defined: \'`none\'\n                                                                     : ... Suggested alternative: \'`inline\'\nwire [7:0] ISYS = ~{`none,`none,`none,`P2ST,`P1ST,`none,`none,`COIN};\n                                                  ^~~~~\n%Error: data/full_repos/permissive/219228794/src/GreenBeret_MAIN.v:79: Define or directive not defined: \'`none\'\n                                                                     : ... Suggested alternative: \'`inline\'\nwire [7:0] ISYS = ~{`none,`none,`none,`P2ST,`P1ST,`none,`none,`COIN};\n                                                        ^~~~~\n%Error: data/full_repos/permissive/219228794/src/GreenBeret_MAIN.v:79: Define or directive not defined: \'`COIN\'\nwire [7:0] ISYS = ~{`none,`none,`none,`P2ST,`P1ST,`none,`none,`COIN};\n                                                              ^~~~~\n%Error: data/full_repos/permissive/219228794/src/GreenBeret_MAIN.v:80: Define or directive not defined: \'`none\'\n                                                                     : ... Suggested alternative: \'`inline\'\nwire [7:0] IP01 = ~{`none,`none,`P1TB,`P1TA,`P1DW,`P1UP,`P1RG,`P1LF};\n                    ^~~~~\n%Error: data/full_repos/permissive/219228794/src/GreenBeret_MAIN.v:80: syntax error, unexpected \',\', expecting TYPE-IDENTIFIER\nwire [7:0] IP01 = ~{`none,`none,`P1TB,`P1TA,`P1DW,`P1UP,`P1RG,`P1LF};\n                         ^\n%Error: data/full_repos/permissive/219228794/src/GreenBeret_MAIN.v:80: Define or directive not defined: \'`none\'\n                                                                     : ... Suggested alternative: \'`inline\'\nwire [7:0] IP01 = ~{`none,`none,`P1TB,`P1TA,`P1DW,`P1UP,`P1RG,`P1LF};\n                          ^~~~~\n%Error: data/full_repos/permissive/219228794/src/GreenBeret_MAIN.v:80: Define or directive not defined: \'`P1TB\'\nwire [7:0] IP01 = ~{`none,`none,`P1TB,`P1TA,`P1DW,`P1UP,`P1RG,`P1LF};\n                                ^~~~~\n%Error: data/full_repos/permissive/219228794/src/GreenBeret_MAIN.v:80: Define or directive not defined: \'`P1TA\'\nwire [7:0] IP01 = ~{`none,`none,`P1TB,`P1TA,`P1DW,`P1UP,`P1RG,`P1LF};\n                                      ^~~~~\n%Error: data/full_repos/permissive/219228794/src/GreenBeret_MAIN.v:80: Define or directive not defined: \'`P1DW\'\nwire [7:0] IP01 = ~{`none,`none,`P1TB,`P1TA,`P1DW,`P1UP,`P1RG,`P1LF};\n                                            ^~~~~\n%Error: data/full_repos/permissive/219228794/src/GreenBeret_MAIN.v:80: Define or directive not defined: \'`P1UP\'\nwire [7:0] IP01 = ~{`none,`none,`P1TB,`P1TA,`P1DW,`P1UP,`P1RG,`P1LF};\n                                                  ^~~~~\n%Error: data/full_repos/permissive/219228794/src/GreenBeret_MAIN.v:80: Define or directive not defined: \'`P1RG\'\nwire [7:0] IP01 = ~{`none,`none,`P1TB,`P1TA,`P1DW,`P1UP,`P1RG,`P1LF};\n                                                        ^~~~~\n%Error: data/full_repos/permissive/219228794/src/GreenBeret_MAIN.v:80: Define or directive not defined: \'`P1LF\'\nwire [7:0] IP01 = ~{`none,`none,`P1TB,`P1TA,`P1DW,`P1UP,`P1RG,`P1LF};\n                                                              ^~~~~\n%Error: data/full_repos/permissive/219228794/src/GreenBeret_MAIN.v:81: Define or directive not defined: \'`none\'\n                                                                     : ... Suggested alternative: \'`inline\'\nwire [7:0] IP02 = ~{`none,`none,`P2TB,`P2TA,`P2DW,`P2UP,`P2RG,`P2LF};\n                    ^~~~~\n%Error: data/full_repos/permissive/219228794/src/GreenBeret_MAIN.v:81: syntax error, unexpected \',\', expecting TYPE-IDENTIFIER\nwire [7:0] IP02 = ~{`none,`none,`P2TB,`P2TA,`P2DW,`P2UP,`P2RG,`P2LF};\n                         ^\n%Error: data/full_repos/permissive/219228794/src/GreenBeret_MAIN.v:81: Define or directive not defined: \'`none\'\n                                                                     : ... Suggested alternative: \'`inline\'\nwire [7:0] IP02 = ~{`none,`none,`P2TB,`P2TA,`P2DW,`P2UP,`P2RG,`P2LF};\n                          ^~~~~\n%Error: data/full_repos/permissive/219228794/src/GreenBeret_MAIN.v:81: Define or directive not defined: \'`P2TB\'\nwire [7:0] IP02 = ~{`none,`none,`P2TB,`P2TA,`P2DW,`P2UP,`P2RG,`P2LF};\n                                ^~~~~\n%Error: data/full_repos/permissive/219228794/src/GreenBeret_MAIN.v:81: Define or directive not defined: \'`P2TA\'\nwire [7:0] IP02 = ~{`none,`none,`P2TB,`P2TA,`P2DW,`P2UP,`P2RG,`P2LF};\n                                      ^~~~~\n%Error: data/full_repos/permissive/219228794/src/GreenBeret_MAIN.v:81: Define or directive not defined: \'`P2DW\'\nwire [7:0] IP02 = ~{`none,`none,`P2TB,`P2TA,`P2DW,`P2UP,`P2RG,`P2LF};\n                                            ^~~~~\n%Error: data/full_repos/permissive/219228794/src/GreenBeret_MAIN.v:81: Define or directive not defined: \'`P2UP\'\nwire [7:0] IP02 = ~{`none,`none,`P2TB,`P2TA,`P2DW,`P2UP,`P2RG,`P2LF};\n                                                  ^~~~~\n%Error: data/full_repos/permissive/219228794/src/GreenBeret_MAIN.v:81: Define or directive not defined: \'`P2RG\'\nwire [7:0] IP02 = ~{`none,`none,`P2TB,`P2TA,`P2DW,`P2UP,`P2RG,`P2LF};\n                                                        ^~~~~\n%Error: data/full_repos/permissive/219228794/src/GreenBeret_MAIN.v:81: Define or directive not defined: \'`P2LF\'\nwire [7:0] IP02 = ~{`none,`none,`P2TB,`P2TA,`P2DW,`P2UP,`P2RG,`P2LF};\n                                                              ^~~~~\n%Error: Exiting due to 28 error(s)\n'
module MAIN
(
	input				CPUCL,
	input				RESET,

	input   [8:0]	PH,
	input   [8:0]	PV,

	input   [5:0]	INP0,
	input   [5:0]	INP1,
	input   [2:0]	INP2,

	output			CPUMX,
	output [15:0]	CPUAD,
	output			CPUWR,
	output  [7:0]	CPUWD,

	input				VIDDV,
	input   [7:0]	VIDRD,
	

	input				DLCL,
	input  [17:0]  DLAD,
	input   [7:0]	DLDT,
	input				DLEN
);




wire [7:0] CPUID;
wire cpu_irq, cpu_nmi;
wire iCPUMX,iCPUWR;

T80s z80(
	.CLK_n(CPUCL),
	.RESET_n(~RESET),
	.A(CPUAD),
	.DI(CPUID),
	.DO(CPUWD),
	.INT_n(~cpu_irq),
	.NMI_n(~cpu_nmi),
	.MREQ_n(iCPUMX),
	.WR_n(iCPUWR),
	.BUSRQ_n(1'b1),
	.WAIT_n(1'b1)
);

assign CPUMX = ~iCPUMX;
assign CPUWR = ~iCPUWR;





wire [2:0] ROMBK;
wire [7:0] ROMDT;
wire 		  ROMDV;
wire		  MODE;
MAIN_ROM irom( ~CPUCL,CPUMX,CPUAD,ROMBK,ROMDV,ROMDT, MODE, DLCL,DLAD,DLDT,DLEN ); 





wire CS_ISYS = (CPUAD[15:0] == 16'hF603) & CPUMX;
wire CS_IP01 = (CPUAD[15:0] == 16'hF602) & CPUMX;
wire CS_IP02 = (CPUAD[15:0] == 16'hF601) & CPUMX;
wire CS_DSW1 = (CPUAD[15:0] == 16'hF600) & CPUMX;
wire CS_DSW2 = (CPUAD[15:8] ==  8'hF2  ) & CPUMX;
wire CS_DSW3 = (CPUAD[15:8] ==  8'hF4  ) & CPUMX;

`include "HIDDEF.i"
wire [7:0]	ISYS = ~{`none,`none,`none,`P2ST,`P1ST,`none,`none,`COIN};
wire [7:0]	IP01 = ~{`none,`none,`P1TB,`P1TA,`P1DW,`P1UP,`P1RG,`P1LF};
wire [7:0]	IP02 = ~{`none,`none,`P2TB,`P2TA,`P2DW,`P2UP,`P2RG,`P2LF};

wire [7:0]	DSWD;
DIPSWs dsws( ~CPUCL, CPUAD[10:9], DSWD, MODE );




assign CPUID =	VIDDV   ? VIDRD :
					ROMDV   ? ROMDT :
					CS_ISYS ? ISYS  : 
					CS_IP01 ? IP01  :
					CS_IP02 ? IP02  :
					CS_DSW1 ? DSWD  :
					CS_DSW2 ? DSWD  :
					CS_DSW3 ? DSWD  :
					8'h00;





IRQGEN irqg(
	RESET,PH,PV,
	CPUCL,CPUAD,CPUWD,CPUMX & CPUWR,
	cpu_irq,cpu_nmi,
	ROMBK
);


endmodule
module MAIN
(
	input				CPUCL,
	input				RESET,

	input   [8:0]	PH,
	input   [8:0]	PV,

	input   [5:0]	INP0,
	input   [5:0]	INP1,
	input   [2:0]	INP2,

	output			CPUMX,
	output [15:0]	CPUAD,
	output			CPUWR,
	output  [7:0]	CPUWD,

	input				VIDDV,
	input   [7:0]	VIDRD,
	

	input				DLCL,
	input  [17:0]  DLAD,
	input   [7:0]	DLDT,
	input				DLEN
);





wire [7:0] CPUID;
wire cpu_irq, cpu_nmi;
wire iCPUMX,iCPUWR;

T80s z80(
	.CLK_n(CPUCL),
	.RESET_n(~RESET),
	.A(CPUAD),
	.DI(CPUID),
	.DO(CPUWD),
	.INT_n(~cpu_irq),
	.NMI_n(~cpu_nmi),
	.MREQ_n(iCPUMX),
	.WR_n(iCPUWR),
	.BUSRQ_n(1'b1),
	.WAIT_n(1'b1)
);

assign CPUMX = ~iCPUMX;
assign CPUWR = ~iCPUWR;





wire [2:0] ROMBK;
wire [7:0] ROMDT;
wire 		  ROMDV;
wire		  MODE;
MAIN_ROM irom( ~CPUCL,CPUMX,CPUAD,ROMBK,ROMDV,ROMDT, MODE, DLCL,DLAD,DLDT,DLEN ); 





wire CS_ISYS = (CPUAD[15:0] == 16'hF603) & CPUMX;
wire CS_IP01 = (CPUAD[15:0] == 16'hF602) & CPUMX;
wire CS_IP02 = (CPUAD[15:0] == 16'hF601) & CPUMX;
wire CS_DSW1 = (CPUAD[15:0] == 16'hF600) & CPUMX;
wire CS_DSW2 = (CPUAD[15:8] ==  8'hF2  ) & CPUMX;
wire CS_DSW3 = (CPUAD[15:8] ==  8'hF4  ) & CPUMX;

`include "HIDDEF.i"
wire [7:0]	ISYS = ~{`none,`none,`none,`P2ST,`P1ST,`none,`none,`COIN};
wire [7:0]	IP01 = ~{`none,`none,`P1TB,`P1TA,`P1DW,`P1UP,`P1RG,`P1LF};
wire [7:0]	IP02 = ~{`none,`none,`P2TB,`P2TA,`P2DW,`P2UP,`P2RG,`P2LF};

wire [7:0]	DSWD;
DIPSWs dsws( ~CPUCL, CPUAD[10:9], DSWD, MODE );




assign CPUID =	VIDDV   ? VIDRD :
					ROMDV   ? ROMDT :
					CS_ISYS ? ISYS  : 
					CS_IP01 ? IP01  :
					CS_IP02 ? IP02  :
					CS_DSW1 ? DSWD  :
					CS_DSW2 ? DSWD  :
					CS_DSW3 ? DSWD  :
					8'h00;





IRQGEN irqg(
	RESET,PH,PV,
	CPUCL,CPUAD,CPUWD,CPUMX & CPUWR,
	cpu_irq,cpu_nmi,
	ROMBK
);


endmodule