data/full_repos/permissive/427281804/CORDIC/rtl/CORDIC_pipeline_FA.v
1: b"%Error: data/full_repos/permissive/427281804/CORDIC/rtl/CORDIC_pipeline_FA.v:105: syntax error, unexpected ';', expecting TYPE-IDENTIFIER\nwire [Nz-1:0] deg90  = ; \n                       ^\n%Error: data/full_repos/permissive/427281804/CORDIC/rtl/CORDIC_pipeline_FA.v:106: syntax error, unexpected ';', expecting TYPE-IDENTIFIER\nwire [Nz-1:0] deg180 = ; \n                       ^\n%Error: data/full_repos/permissive/427281804/CORDIC/rtl/CORDIC_pipeline_FA.v:107: syntax error, unexpected ';', expecting TYPE-IDENTIFIER\nwire [Nz-1:0] deg270 = ; \n                       ^\n%Error: data/full_repos/permissive/427281804/CORDIC/rtl/CORDIC_pipeline_FA.v:108: syntax error, unexpected ';', expecting TYPE-IDENTIFIER\nwire [Nz-1:0] deg360 = ; \n                       ^\n%Error: Exiting due to 4 error(s)\n"
module CORDIC_pipeline#(
    parameter Nxy = 32,
    parameter Nz  = 32
)(
    input                       clk,
    input      signed [Nz-1 :0] zi,
    output reg signed [Nxy-1:0] yo,
    output reg signed [Nxy-1:0] xo
);


wire signed [Nxy-1:0] xc [Nz-1:0];
wire signed [Nxy-1:0] yc [Nz-1:0];
wire signed [Nz-1 :0] zc [Nz-1:0];


assign xc[0] = 'b00000010011011011101001110110110;
assign yc[0] = 0;




wire [Nz-1:0] deg90  = ;
wire [Nz-1:0] deg180 = ;
wire [Nz-1:0] deg270 = ;
wire [Nz-1:0] deg360 = ;
wire [Nz-1:0] zs = zi - deg180;



always @* begin
    if(((zs[Nz-1]==1) && (zs<deg270)) ||
       ((zs[Nz-1]==0) && (zs>deg90))) begin

        xo = ~(xc[Nz-1]-1);
        yo = ~(yc[Nz-1]-1);
        if(zs[Nz-1]==1) 
            zc[0] = zs + deg180;
    end else begin
        xo = xc[Nz-1];
        yo = yc[Nz-1];
    end
end

genvar gi;
generate
    for(gi=0;gi<Nz;gi=gi+1) begin: gen_pipeline
        CORDIC_pipeline_stage #(.i(gi)) stage_i (
            .clk(clk),
            .xi(xc[gi]), .xo(xc[gi+1]),
            .yi(yc[gi]), .yo(yc[gi+1]),
            .zi(zc[gi]), .zo(zc[gi+1])
        );
    end
endgenerate


endmodule
module CORDIC_pipeline#(
    parameter Nxy = 32,
    parameter Nz  = 32
)(
    input                       clk,
    input      signed [Nz-1 :0] zi,
    output reg signed [Nxy-1:0] yo,
    output reg signed [Nxy-1:0] xo
);



wire signed [Nxy-1:0] xc [Nz-1:0];
wire signed [Nxy-1:0] yc [Nz-1:0];
wire signed [Nz-1 :0] zc [Nz-1:0];


assign xc[0] = 'b00000010011011011101001110110110;
assign yc[0] = 0;




wire [Nz-1:0] deg90  = ;
wire [Nz-1:0] deg180 = ;
wire [Nz-1:0] deg270 = ;
wire [Nz-1:0] deg360 = ;
wire [Nz-1:0] zs = zi - deg180;



always @* begin
    if(((zs[Nz-1]==1) && (zs<deg270)) ||
       ((zs[Nz-1]==0) && (zs>deg90))) begin

        xo = ~(xc[Nz-1]-1);
        yo = ~(yc[Nz-1]-1);
        if(zs[Nz-1]==1) 
            zc[0] = zs + deg180;
    end else begin
        xo = xc[Nz-1];
        yo = yc[Nz-1];
    end
end

genvar gi;
generate
    for(gi=0;gi<Nz;gi=gi+1) begin: gen_pipeline
        CORDIC_pipeline_stage #(.i(gi)) stage_i (
            .clk(clk),
            .xi(xc[gi]), .xo(xc[gi+1]),
            .yi(yc[gi]), .yo(yc[gi+1]),
            .zi(zc[gi]), .zo(zc[gi+1])
        );
    end
endgenerate


endmodule