data/full_repos/permissive/133161058/cla/hdl/cordic.v
 line:33: before: ":"
1: b"%Error: data/full_repos/permissive/133161058/cla/hdl/cordic.v:32: Define or directive not defined: '`REG_SIZE'\n output [`REG_SIZE+1:0] CosX,SinX;\n         ^~~~~~~~~\n%Error: data/full_repos/permissive/133161058/cla/hdl/cordic.v:33: Define or directive not defined: '`REG_SIZE'\n input [`REG_SIZE:0] theta;\n        ^~~~~~~~~\n%Error: data/full_repos/permissive/133161058/cla/hdl/cordic.v:33: syntax error, unexpected ':', expecting TYPE-IDENTIFIER\n input [`REG_SIZE:0] theta;\n                 ^\n%Error: data/full_repos/permissive/133161058/cla/hdl/cordic.v:37: Define or directive not defined: '`REG_SIZE'\n reg [`REG_SIZE:0] X,Y,Angle;\n      ^~~~~~~~~\n%Error: data/full_repos/permissive/133161058/cla/hdl/cordic.v:37: syntax error, unexpected ':', expecting TYPE-IDENTIFIER\n reg [`REG_SIZE:0] X,Y,Angle;\n               ^\n%Error: data/full_repos/permissive/133161058/cla/hdl/cordic.v:40: Define or directive not defined: '`REG_SIZE'\n wire [`REG_SIZE:0] tanangle;\n       ^~~~~~~~~\n%Error: data/full_repos/permissive/133161058/cla/hdl/cordic.v:40: syntax error, unexpected ':', expecting TYPE-IDENTIFIER\n wire [`REG_SIZE:0] tanangle;\n                ^\n%Error: data/full_repos/permissive/133161058/cla/hdl/cordic.v:41: Define or directive not defined: '`REG_SIZE'\n wire [`REG_SIZE:0] BS1,BS2;\n       ^~~~~~~~~\n%Error: data/full_repos/permissive/133161058/cla/hdl/cordic.v:41: syntax error, unexpected ':', expecting TYPE-IDENTIFIER\n wire [`REG_SIZE:0] BS1,BS2;\n                ^\n%Error: data/full_repos/permissive/133161058/cla/hdl/cordic.v:42: Define or directive not defined: '`REG_SIZE'\n wire [`REG_SIZE:0] SumX,SumY,SumAngle;\n       ^~~~~~~~~\n%Error: data/full_repos/permissive/133161058/cla/hdl/cordic.v:42: syntax error, unexpected ':', expecting TYPE-IDENTIFIER\n wire [`REG_SIZE:0] SumX,SumY,SumAngle;\n                ^\n%Error: Exiting due to 11 error(s)\n"
module cordic(CosX,SinX,theta,Sign,clock,reset);

	output [`REG_SIZE+1:0] CosX,SinX;
	input [`REG_SIZE:0] theta;
	input  Sign,clock,reset;

	reg AngleCin,Xsign,Ysign;
	reg [`REG_SIZE:0] X,Y,Angle;
	reg [3:0] iteration;

	wire [`REG_SIZE:0] tanangle;
	wire [`REG_SIZE:0] BS1,BS2;
	wire [`REG_SIZE:0] SumX,SumY,SumAngle;
	wire CarryX,CarryY,AngleCout;



`ifdef SYNTH
MEM pla ( .\iteration[0] (iteration[0]), .\iteration[1] (iteration[1]), .\iteration[2] (iteration[2]), .\iteration[3] (iteration[3]), .\tanangle[0] (tanangle[0]), .\tanangle[1] (tanangle[1]), .\tanangle[2] (tanangle[2]), .\tanangle[3] (tanangle[3]), .\tanangle[4] (tanangle[4]), .\tanangle[5] (tanangle[5]), .\tanangle[6] (tanangle[6]), .\tanangle[7] (tanangle[7]), .\tanangle[8] (tanangle[8]), .\tanangle[9] (tanangle[9]), .\tanangle[10] (tanangle[10]), .\tanangle[11] (tanangle[11]), .\tanangle[12] (tanangle[12]), .\tanangle[13] (tanangle[13]), .\tanangle[14] (tanangle[14]), .\tanangle[15] (tanangle[15]) );
`else
MEM pla ( iteration, tanangle ) ;
`endif





        shifter SH1(BS1,Y,iteration); 
        Adder AddX(SumX,CarryX,Xsign,X,BS1,~AngleCin);  
        shifter SH2(BS2,X,iteration);
        Adder AddY(SumY,CarryY,Ysign,Y,BS2,AngleCin);
        Adder Add0(SumAngle,AngleCout,AngleCin,Angle,tanangle,~AngleCin);
        assign CosX={CarryX,SumX};
        assign SinX={CarryY,SumY};



	always @ (posedge clock)
		if (reset)
			begin
			iteration<=0;
			Angle <= theta ;
			X<=16'b1001101110000000;
			Y<=16'b0000000000000000;
			Xsign<=0;
			Ysign<=0;
			AngleCin <= Sign ;
			end
		else
			begin
                        iteration <= iteration + 1;
                        Angle <= SumAngle;
                        X <= SumX;
                        Y <= SumY;
                        Xsign <= CarryX;
                        Ysign <= CarryY;
                        AngleCin <= AngleCout;
                        end




endmodule
module cordic(CosX,SinX,theta,Sign,clock,reset);


	output [`REG_SIZE+1:0] CosX,SinX;
	input [`REG_SIZE:0] theta;
	input  Sign,clock,reset;

	reg AngleCin,Xsign,Ysign;
	reg [`REG_SIZE:0] X,Y,Angle;
	reg [3:0] iteration;

	wire [`REG_SIZE:0] tanangle;
	wire [`REG_SIZE:0] BS1,BS2;
	wire [`REG_SIZE:0] SumX,SumY,SumAngle;
	wire CarryX,CarryY,AngleCout;



`ifdef SYNTH
MEM pla ( .\iteration[0] (iteration[0]), .\iteration[1] (iteration[1]), .\iteration[2] (iteration[2]), .\iteration[3] (iteration[3]), .\tanangle[0] (tanangle[0]), .\tanangle[1] (tanangle[1]), .\tanangle[2] (tanangle[2]), .\tanangle[3] (tanangle[3]), .\tanangle[4] (tanangle[4]), .\tanangle[5] (tanangle[5]), .\tanangle[6] (tanangle[6]), .\tanangle[7] (tanangle[7]), .\tanangle[8] (tanangle[8]), .\tanangle[9] (tanangle[9]), .\tanangle[10] (tanangle[10]), .\tanangle[11] (tanangle[11]), .\tanangle[12] (tanangle[12]), .\tanangle[13] (tanangle[13]), .\tanangle[14] (tanangle[14]), .\tanangle[15] (tanangle[15]) );
`else
MEM pla ( iteration, tanangle ) ;
`endif





        shifter SH1(BS1,Y,iteration); 
        Adder AddX(SumX,CarryX,Xsign,X,BS1,~AngleCin);  
        shifter SH2(BS2,X,iteration);
        Adder AddY(SumY,CarryY,Ysign,Y,BS2,AngleCin);
        Adder Add0(SumAngle,AngleCout,AngleCin,Angle,tanangle,~AngleCin);
        assign CosX={CarryX,SumX};
        assign SinX={CarryY,SumY};



	always @ (posedge clock)
		if (reset)
			begin
			iteration<=0;
			Angle <= theta ;
			X<=16'b1001101110000000;
			Y<=16'b0000000000000000;
			Xsign<=0;
			Ysign<=0;
			AngleCin <= Sign ;
			end
		else
			begin
                        iteration <= iteration + 1;
                        Angle <= SumAngle;
                        X <= SumX;
                        Y <= SumY;
                        Xsign <= CarryX;
                        Ysign <= CarryY;
                        AngleCin <= AngleCout;
                        end




endmodule