data/full_repos/permissive/174263347/jamma/hdl/jamma.v
[Errno 2] No such file or directory: 'preprocess.output'
1: b'%Error: data/full_repos/permissive/174263347/jamma/hdl/jamma.v:14: Cannot find include file: interface.v\n`include "interface.v" \n         ^~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/174263347/jamma/hdl,data/full_repos/permissive/174263347/interface.v\n             data/full_repos/permissive/174263347/jamma/hdl,data/full_repos/permissive/174263347/interface.v.v\n             data/full_repos/permissive/174263347/jamma/hdl,data/full_repos/permissive/174263347/interface.v.sv\n             interface.v\n             interface.v.v\n             interface.v.sv\n             obj_dir/interface.v\n             obj_dir/interface.v.v\n             obj_dir/interface.v.sv\n%Error: data/full_repos/permissive/174263347/jamma/hdl/jamma.v:15: Cannot find include file: quad_counter.v\n`include "quad_counter.v" \n         ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/174263347/jamma/hdl/jamma.v:19: syntax error, unexpected \')\', expecting \'[\'\n   );\n   ^\n%Error: data/full_repos/permissive/174263347/jamma/hdl/jamma.v:79: syntax error, unexpected IDENTIFIER\ndc idc(nCS0, nCS1, da, bDevice, cs, csDevReg, csDataReg, csCmdReg, csSectAddr, csCylLo, csCylHi);\n^~\n%Error: data/full_repos/permissive/174263347/jamma/hdl/jamma.v:143: syntax error, unexpected IDENTIFIER\nmyNOISE inoise(nDior, ~nReset, 1\'b1, noice);\n^~~~~~~\n%Error: data/full_repos/permissive/174263347/jamma/hdl/jamma.v:146: syntax error, unexpected assign\nassign nce = noice[0];               \n^~~~~~\n%Error: data/full_repos/permissive/174263347/jamma/hdl/jamma.v:167: syntax error, unexpected always\nalways @ (word)\n^~~~~~\n%Error: data/full_repos/permissive/174263347/jamma/hdl/jamma.v:178: syntax error, unexpected assign\nassign  cookie_bit = (cookie & cookie_bit_in) | (~cookie & nce); \n^~~~~~\n%Error: data/full_repos/permissive/174263347/jamma/hdl/jamma.v:186: syntax error, unexpected IDENTIFIER\nmyMUX_16_6 imux_16_6(\n^~~~~~~~~~\n%Error: Exiting due to 9 error(s)\n'
module jamma( 	clk, nReset, da, nDiow, nDior, nCS0, nCS1, iordy, dd,
				CoinCounter,CoinLockout,P,
			);





	input 	clk;
	input	[2:0] da;
	input 	nReset, nDiow, nDior, nCS0, nCS1;
	inout	iordy;
	inout	[7:0] dd;





	output 	[2:1] CoinCounter;
	output 	[2:1] CoinLockout;
	input  	[28:0] P;





	parameter SECTOR_COOKIE		=	'h73;
	parameter CYLINDER_LO_COOKIE=	'h25;
	parameter CYLINDER_HI_COOKIE=	'h19;
`ifdef TEST_MODE
	parameter COOKIE_MASK		= 	15'b000000000000001;
	parameter AFTER_COOKIE_MASK	= 	16'b0000000000000011;
`else
	parameter COOKIE_MASK		= 	15'b101001010001001;
	parameter AFTER_COOKIE_MASK	= 	16'b1010010100010011;
`endif
	parameter COOKIE_LO			=	16'h3210;
	parameter COOKIE_HI			= 	16'h7654;





	wire 	cs, csDataReg, csDevReg, csCmdReg, trCookie;
	wire 	csSectAddr, csCylLo, csCylHi;
	wire	[3:0] bCounter;
	wire	[15:0] count;
	wire	cookie, cookiein, bDevice;
	wire	read, acces;
	wire	afterCookie, afterCookiein;
	wire	word;
	wire	[6:0] ballCnt0q;
	wire	[6:0] ballCnt1q;
	wire	[6:0] ballCnt2q;
	wire	[6:0] ballCnt3q;
	wire	lastBit;
	wire	cmd5N, cmd6N;





dc idc(nCS0, nCS1, da, bDevice, cs, csDevReg, csDataReg, csCmdReg, csSectAddr, csCylLo, csCylHi);

assign read  =	cs & ~nDior & bDevice;
assign acces = 	cs &  bDevice;





myLCEL iLCELcmd5((~dd[7] & dd[6] & ~dd[5] &  dd[4] & csCmdReg), cmd5N);
myLCEL iLCELcmd6((~dd[7] & dd[6] &  dd[5] & ~dd[4] & csCmdReg), cmd6N);









myDFFE2 ikey0(nDiow, ~nReset, cmd6N, 1'b0, csCylLo,    (dd == CYLINDER_LO_COOKIE), key0);

myDFFE2 ikey1(nDiow, ~nReset, cmd6N, 1'b0, csCylHi,    (dd == CYLINDER_HI_COOKIE), key1);

myDFFE2 ikey2(nDiow, ~nReset, cmd6N, 1'b0, csSectAddr, (dd == SECTOR_COOKIE),      key2);

assign trCookie	= key0 & key1 & key2;









myDFFE2 ilookCntr(nDiow, ~nReset, (cmd6N & trCookie), 1'b0, cmd6N, afterCookie, lookCntr);





myDFFE ibDevice(nDiow, ~nReset, csDevReg, dd[4], bDevice);





my4BREG    idataReg(nDiow, ~nReset, cmd5N, dd[3:0], { CoinLockout, CoinCounter });





my4COUNTER ibCounter(nDior, (~nReset | cmd6N), csDataReg, 1'b0, 4'b0000, bCounter);

myLCEL  lbcell((bCounter == 4'b1111), lastBit);





wire	[15:0] noice;

myNOISE inoise(nDior, ~nReset, 1'b1, noice);

wire   nce;
assign nce	= noice[0];








my16COUNTER packetCounter(nDiow, ~nReset, cmd6N, (cmd6N & trCookie), 16'h0000, count);

assign word	= count[0];
myLCEL lcCookie((count[15:1] == COOKIE_MASK), cookie);
myLCEL lcAfterCookie((count == AFTER_COOKIE_MASK), afterCookie);





reg   [15:0] cookie_mx;

always @ (word)
begin 
    if (word)
	    cookie_mx <= COOKIE_LO;
    else
        cookie_mx <= COOKIE_HI;
end

myMUX_16_1 imux_16_1(bCounter, cookie_mx, cookie_bit_in);

wire	cookie_bit;
assign  cookie_bit = (cookie & cookie_bit_in) | (~cookie & nce); 





wire [6:0] dataInput;

myMUX_16_6 imux_16_6(
					bCounter, 
					{ 2'bXX,     P[ 4:0 ] },
					{ 2'bXX,     P[ 9:5 ] },
					{ 2'bXX,     P[14:10] },
					{ 2'bXX,     P[19:15] },
					{ 2'bXX,     P[24:20] },
					{ 3'bXXX,    P[28:25] },
					{ 7'bXXXXXXX          },
					{ 7'bXXXX001          },
					            ballCnt0q,
					            ballCnt1q,
					            ballCnt2q,
					            ballCnt3q,
					{ 7'bXXXXXXX  		  },
					{ 7'bXXXXXXX  		  },
					{ 7'bXXXXXXX   		  },
					{ 7'bXXXXXXX    	  },
					dataInput
					);

assign dd = read ? { cookie_bit, dataInput } : 8'hZZ;





assign iordy = acces ? 1'b1 : 1'bz;





QUAD_COUNTER ballCnt0( .clk(clk), .enable(nDior), .inA(P[1]),  .inB(P[2]),  .clrn(nReset), .q(ballCnt0q));
QUAD_COUNTER ballCnt1( .clk(clk), .enable(nDior), .inA(P[3]),  .inB(P[4]),  .clrn(nReset), .q(ballCnt1q));
QUAD_COUNTER ballCnt2( .clk(clk), .enable(nDior), .inA(P[11]), .inB(P[12]), .clrn(nReset), .q(ballCnt2q));
QUAD_COUNTER ballCnt3( .clk(clk), .enable(nDior), .inA(P[13]), .inB(P[14]), .clrn(nReset), .q(ballCnt3q));

endmodule
module jamma( 	clk, nReset, da, nDiow, nDior, nCS0, nCS1, iordy, dd,
				CoinCounter,CoinLockout,P,
			);






	input 	clk;
	input	[2:0] da;
	input 	nReset, nDiow, nDior, nCS0, nCS1;
	inout	iordy;
	inout	[7:0] dd;





	output 	[2:1] CoinCounter;
	output 	[2:1] CoinLockout;
	input  	[28:0] P;





	parameter SECTOR_COOKIE		=	'h73;
	parameter CYLINDER_LO_COOKIE=	'h25;
	parameter CYLINDER_HI_COOKIE=	'h19;
`ifdef TEST_MODE
	parameter COOKIE_MASK		= 	15'b000000000000001;
	parameter AFTER_COOKIE_MASK	= 	16'b0000000000000011;
`else
	parameter COOKIE_MASK		= 	15'b101001010001001;
	parameter AFTER_COOKIE_MASK	= 	16'b1010010100010011;
`endif
	parameter COOKIE_LO			=	16'h3210;
	parameter COOKIE_HI			= 	16'h7654;





	wire 	cs, csDataReg, csDevReg, csCmdReg, trCookie;
	wire 	csSectAddr, csCylLo, csCylHi;
	wire	[3:0] bCounter;
	wire	[15:0] count;
	wire	cookie, cookiein, bDevice;
	wire	read, acces;
	wire	afterCookie, afterCookiein;
	wire	word;
	wire	[6:0] ballCnt0q;
	wire	[6:0] ballCnt1q;
	wire	[6:0] ballCnt2q;
	wire	[6:0] ballCnt3q;
	wire	lastBit;
	wire	cmd5N, cmd6N;





dc idc(nCS0, nCS1, da, bDevice, cs, csDevReg, csDataReg, csCmdReg, csSectAddr, csCylLo, csCylHi);

assign read  =	cs & ~nDior & bDevice;
assign acces = 	cs &  bDevice;





myLCEL iLCELcmd5((~dd[7] & dd[6] & ~dd[5] &  dd[4] & csCmdReg), cmd5N);
myLCEL iLCELcmd6((~dd[7] & dd[6] &  dd[5] & ~dd[4] & csCmdReg), cmd6N);









myDFFE2 ikey0(nDiow, ~nReset, cmd6N, 1'b0, csCylLo,    (dd == CYLINDER_LO_COOKIE), key0);

myDFFE2 ikey1(nDiow, ~nReset, cmd6N, 1'b0, csCylHi,    (dd == CYLINDER_HI_COOKIE), key1);

myDFFE2 ikey2(nDiow, ~nReset, cmd6N, 1'b0, csSectAddr, (dd == SECTOR_COOKIE),      key2);

assign trCookie	= key0 & key1 & key2;









myDFFE2 ilookCntr(nDiow, ~nReset, (cmd6N & trCookie), 1'b0, cmd6N, afterCookie, lookCntr);





myDFFE ibDevice(nDiow, ~nReset, csDevReg, dd[4], bDevice);





my4BREG    idataReg(nDiow, ~nReset, cmd5N, dd[3:0], { CoinLockout, CoinCounter });





my4COUNTER ibCounter(nDior, (~nReset | cmd6N), csDataReg, 1'b0, 4'b0000, bCounter);

myLCEL  lbcell((bCounter == 4'b1111), lastBit);





wire	[15:0] noice;

myNOISE inoise(nDior, ~nReset, 1'b1, noice);

wire   nce;
assign nce	= noice[0];








my16COUNTER packetCounter(nDiow, ~nReset, cmd6N, (cmd6N & trCookie), 16'h0000, count);

assign word	= count[0];
myLCEL lcCookie((count[15:1] == COOKIE_MASK), cookie);
myLCEL lcAfterCookie((count == AFTER_COOKIE_MASK), afterCookie);





reg   [15:0] cookie_mx;

always @ (word)
begin 
    if (word)
	    cookie_mx <= COOKIE_LO;
    else
        cookie_mx <= COOKIE_HI;
end

myMUX_16_1 imux_16_1(bCounter, cookie_mx, cookie_bit_in);

wire	cookie_bit;
assign  cookie_bit = (cookie & cookie_bit_in) | (~cookie & nce); 





wire [6:0] dataInput;

myMUX_16_6 imux_16_6(
					bCounter, 
					{ 2'bXX,     P[ 4:0 ] },
					{ 2'bXX,     P[ 9:5 ] },
					{ 2'bXX,     P[14:10] },
					{ 2'bXX,     P[19:15] },
					{ 2'bXX,     P[24:20] },
					{ 3'bXXX,    P[28:25] },
					{ 7'bXXXXXXX          },
					{ 7'bXXXX001          },
					            ballCnt0q,
					            ballCnt1q,
					            ballCnt2q,
					            ballCnt3q,
					{ 7'bXXXXXXX  		  },
					{ 7'bXXXXXXX  		  },
					{ 7'bXXXXXXX   		  },
					{ 7'bXXXXXXX    	  },
					dataInput
					);

assign dd = read ? { cookie_bit, dataInput } : 8'hZZ;





assign iordy = acces ? 1'b1 : 1'bz;





QUAD_COUNTER ballCnt0( .clk(clk), .enable(nDior), .inA(P[1]),  .inB(P[2]),  .clrn(nReset), .q(ballCnt0q));
QUAD_COUNTER ballCnt1( .clk(clk), .enable(nDior), .inA(P[3]),  .inB(P[4]),  .clrn(nReset), .q(ballCnt1q));
QUAD_COUNTER ballCnt2( .clk(clk), .enable(nDior), .inA(P[11]), .inB(P[12]), .clrn(nReset), .q(ballCnt2q));
QUAD_COUNTER ballCnt3( .clk(clk), .enable(nDior), .inA(P[13]), .inB(P[14]), .clrn(nReset), .q(ballCnt3q));

endmodule