data/full_repos/permissive/104443190/chen_cordic/chen_cordic_radian.v
 line:129: before: "."
1: b'%Warning-WIDTH: data/full_repos/permissive/104443190/chen_cordic/chen_cordic_radian.v:186: Operator ASSIGN expects 19 bits on the Assign RHS, but Assign RHS\'s CONST \'18\'h6488\' generates 18 bits.\n                                                                                         : ... In instance chen_cordic\n    4\'b0000: angle = 18\'d25736 ;    \n                   ^\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Warning-WIDTH: data/full_repos/permissive/104443190/chen_cordic/chen_cordic_radian.v:187: Operator ASSIGN expects 19 bits on the Assign RHS, but Assign RHS\'s CONST \'18\'h3b58\' generates 18 bits.\n                                                                                         : ... In instance chen_cordic\n    4\'b0001: angle = 18\'d15192;     \n                   ^\n%Warning-WIDTH: data/full_repos/permissive/104443190/chen_cordic/chen_cordic_radian.v:188: Operator ASSIGN expects 19 bits on the Assign RHS, but Assign RHS\'s CONST \'18\'h1f5b\' generates 18 bits.\n                                                                                         : ... In instance chen_cordic\n    4\'b0010: angle = 18\'d8027;      \n                   ^\n%Warning-WIDTH: data/full_repos/permissive/104443190/chen_cordic/chen_cordic_radian.v:189: Operator ASSIGN expects 19 bits on the Assign RHS, but Assign RHS\'s CONST \'18\'hfeb\' generates 18 bits.\n                                                                                         : ... In instance chen_cordic\n    4\'b0011: angle = 18\'d4075;      \n                   ^\n%Warning-WIDTH: data/full_repos/permissive/104443190/chen_cordic/chen_cordic_radian.v:190: Operator ASSIGN expects 19 bits on the Assign RHS, but Assign RHS\'s CONST \'18\'h7fd\' generates 18 bits.\n                                                                                         : ... In instance chen_cordic\n    4\'b0100: angle = 18\'d2045;      \n                   ^\n%Warning-WIDTH: data/full_repos/permissive/104443190/chen_cordic/chen_cordic_radian.v:191: Operator ASSIGN expects 19 bits on the Assign RHS, but Assign RHS\'s CONST \'18\'h400\' generates 18 bits.\n                                                                                         : ... In instance chen_cordic\n    4\'b0101: angle = 18\'d1024;      \n                   ^\n%Warning-WIDTH: data/full_repos/permissive/104443190/chen_cordic/chen_cordic_radian.v:192: Operator ASSIGN expects 19 bits on the Assign RHS, but Assign RHS\'s CONST \'18\'h200\' generates 18 bits.\n                                                                                         : ... In instance chen_cordic\n    4\'b0110: angle = 18\'d512;       \n                   ^\n%Warning-WIDTH: data/full_repos/permissive/104443190/chen_cordic/chen_cordic_radian.v:193: Operator ASSIGN expects 19 bits on the Assign RHS, but Assign RHS\'s CONST \'18\'h100\' generates 18 bits.\n                                                                                         : ... In instance chen_cordic\n    4\'b0111: angle = 18\'d256;       \n                   ^\n%Warning-WIDTH: data/full_repos/permissive/104443190/chen_cordic/chen_cordic_radian.v:194: Operator ASSIGN expects 19 bits on the Assign RHS, but Assign RHS\'s CONST \'18\'h80\' generates 18 bits.\n                                                                                         : ... In instance chen_cordic\n    4\'b1000: angle = 18\'d128;       \n                   ^\n%Warning-WIDTH: data/full_repos/permissive/104443190/chen_cordic/chen_cordic_radian.v:195: Operator ASSIGN expects 19 bits on the Assign RHS, but Assign RHS\'s CONST \'18\'h40\' generates 18 bits.\n                                                                                         : ... In instance chen_cordic\n    4\'b1001: angle = 18\'d64;        \n                   ^\n%Warning-WIDTH: data/full_repos/permissive/104443190/chen_cordic/chen_cordic_radian.v:196: Operator ASSIGN expects 19 bits on the Assign RHS, but Assign RHS\'s CONST \'18\'h20\' generates 18 bits.\n                                                                                         : ... In instance chen_cordic\n    4\'b1010: angle = 18\'d32;        \n                   ^\n%Warning-WIDTH: data/full_repos/permissive/104443190/chen_cordic/chen_cordic_radian.v:197: Operator ASSIGN expects 19 bits on the Assign RHS, but Assign RHS\'s CONST \'18\'h10\' generates 18 bits.\n                                                                                         : ... In instance chen_cordic\n    4\'b1011: angle = 18\'d16;        \n                   ^\n%Warning-WIDTH: data/full_repos/permissive/104443190/chen_cordic/chen_cordic_radian.v:198: Operator ASSIGN expects 19 bits on the Assign RHS, but Assign RHS\'s CONST \'18\'h8\' generates 18 bits.\n                                                                                         : ... In instance chen_cordic\n    4\'b1100: angle = 18\'d8;         \n                   ^\n%Warning-WIDTH: data/full_repos/permissive/104443190/chen_cordic/chen_cordic_radian.v:199: Operator ASSIGN expects 19 bits on the Assign RHS, but Assign RHS\'s CONST \'18\'h4\' generates 18 bits.\n                                                                                         : ... In instance chen_cordic\n    4\'b1101: angle = 18\'d4;         \n                   ^\n%Warning-WIDTH: data/full_repos/permissive/104443190/chen_cordic/chen_cordic_radian.v:200: Operator ASSIGN expects 19 bits on the Assign RHS, but Assign RHS\'s CONST \'18\'h2\' generates 18 bits.\n                                                                                         : ... In instance chen_cordic\n    4\'b1110: angle = 18\'d2;         \n                   ^\n%Warning-WIDTH: data/full_repos/permissive/104443190/chen_cordic/chen_cordic_radian.v:201: Operator ASSIGN expects 19 bits on the Assign RHS, but Assign RHS\'s CONST \'18\'h1\' generates 18 bits.\n                                                                                         : ... In instance chen_cordic\n    4\'b1111: angle = 18\'d1;         \n                   ^\n%Warning-WIDTH: data/full_repos/permissive/104443190/chen_cordic/chen_cordic_radian.v:215: Operator VAR \'angle\' expects 18 bits on the Initial value, but Initial value\'s CONST \'19\'h6488\' generates 19 bits.\n                                                                                         : ... In instance chen_cordic.genblk2[0].inst_rotator\n    parameter signed [17:0] angle=0;\n                            ^~~~~\n%Warning-WIDTH: data/full_repos/permissive/104443190/chen_cordic/chen_cordic_radian.v:215: Operator VAR \'angle\' expects 18 bits on the Initial value, but Initial value\'s CONST \'19\'h3b58\' generates 19 bits.\n                                                                                         : ... In instance chen_cordic.genblk2[1].inst_rotator\n    parameter signed [17:0] angle=0;\n                            ^~~~~\n%Warning-WIDTH: data/full_repos/permissive/104443190/chen_cordic/chen_cordic_radian.v:215: Operator VAR \'angle\' expects 18 bits on the Initial value, but Initial value\'s CONST \'19\'h1f5b\' generates 19 bits.\n                                                                                         : ... In instance chen_cordic.genblk2[2].inst_rotator\n    parameter signed [17:0] angle=0;\n                            ^~~~~\n%Warning-WIDTH: data/full_repos/permissive/104443190/chen_cordic/chen_cordic_radian.v:215: Operator VAR \'angle\' expects 18 bits on the Initial value, but Initial value\'s CONST \'19\'hfeb\' generates 19 bits.\n                                                                                         : ... In instance chen_cordic.genblk2[3].inst_rotator\n    parameter signed [17:0] angle=0;\n                            ^~~~~\n%Warning-WIDTH: data/full_repos/permissive/104443190/chen_cordic/chen_cordic_radian.v:215: Operator VAR \'angle\' expects 18 bits on the Initial value, but Initial value\'s CONST \'19\'h7fd\' generates 19 bits.\n                                                                                         : ... In instance chen_cordic.genblk2[4].inst_rotator\n    parameter signed [17:0] angle=0;\n                            ^~~~~\n%Warning-WIDTH: data/full_repos/permissive/104443190/chen_cordic/chen_cordic_radian.v:215: Operator VAR \'angle\' expects 18 bits on the Initial value, but Initial value\'s CONST \'19\'h400\' generates 19 bits.\n                                                                                         : ... In instance chen_cordic.genblk2[5].inst_rotator\n    parameter signed [17:0] angle=0;\n                            ^~~~~\n%Warning-WIDTH: data/full_repos/permissive/104443190/chen_cordic/chen_cordic_radian.v:215: Operator VAR \'angle\' expects 18 bits on the Initial value, but Initial value\'s CONST \'19\'h200\' generates 19 bits.\n                                                                                         : ... In instance chen_cordic.genblk2[6].inst_rotator\n    parameter signed [17:0] angle=0;\n                            ^~~~~\n%Warning-WIDTH: data/full_repos/permissive/104443190/chen_cordic/chen_cordic_radian.v:215: Operator VAR \'angle\' expects 18 bits on the Initial value, but Initial value\'s CONST \'19\'h100\' generates 19 bits.\n                                                                                         : ... In instance chen_cordic.genblk2[7].inst_rotator\n    parameter signed [17:0] angle=0;\n                            ^~~~~\n%Warning-WIDTH: data/full_repos/permissive/104443190/chen_cordic/chen_cordic_radian.v:215: Operator VAR \'angle\' expects 18 bits on the Initial value, but Initial value\'s CONST \'19\'h80\' generates 19 bits.\n                                                                                         : ... In instance chen_cordic.genblk2[8].inst_rotator\n    parameter signed [17:0] angle=0;\n                            ^~~~~\n%Warning-WIDTH: data/full_repos/permissive/104443190/chen_cordic/chen_cordic_radian.v:215: Operator VAR \'angle\' expects 18 bits on the Initial value, but Initial value\'s CONST \'19\'h40\' generates 19 bits.\n                                                                                         : ... In instance chen_cordic.genblk2[9].inst_rotator\n    parameter signed [17:0] angle=0;\n                            ^~~~~\n%Warning-WIDTH: data/full_repos/permissive/104443190/chen_cordic/chen_cordic_radian.v:215: Operator VAR \'angle\' expects 18 bits on the Initial value, but Initial value\'s CONST \'19\'h20\' generates 19 bits.\n                                                                                         : ... In instance chen_cordic.genblk2[10].inst_rotator\n    parameter signed [17:0] angle=0;\n                            ^~~~~\n%Warning-WIDTH: data/full_repos/permissive/104443190/chen_cordic/chen_cordic_radian.v:215: Operator VAR \'angle\' expects 18 bits on the Initial value, but Initial value\'s CONST \'19\'h10\' generates 19 bits.\n                                                                                         : ... In instance chen_cordic.genblk2[11].inst_rotator\n    parameter signed [17:0] angle=0;\n                            ^~~~~\n%Warning-WIDTH: data/full_repos/permissive/104443190/chen_cordic/chen_cordic_radian.v:215: Operator VAR \'angle\' expects 18 bits on the Initial value, but Initial value\'s CONST \'19\'h8\' generates 19 bits.\n                                                                                         : ... In instance chen_cordic.genblk2[12].inst_rotator\n    parameter signed [17:0] angle=0;\n                            ^~~~~\n%Warning-WIDTH: data/full_repos/permissive/104443190/chen_cordic/chen_cordic_radian.v:215: Operator VAR \'angle\' expects 18 bits on the Initial value, but Initial value\'s CONST \'19\'h4\' generates 19 bits.\n                                                                                         : ... In instance chen_cordic.genblk2[13].inst_rotator\n    parameter signed [17:0] angle=0;\n                            ^~~~~\n%Warning-WIDTH: data/full_repos/permissive/104443190/chen_cordic/chen_cordic_radian.v:215: Operator VAR \'angle\' expects 18 bits on the Initial value, but Initial value\'s CONST \'19\'h2\' generates 19 bits.\n                                                                                         : ... In instance chen_cordic.genblk2[14].inst_rotator\n    parameter signed [17:0] angle=0;\n                            ^~~~~\n%Warning-WIDTH: data/full_repos/permissive/104443190/chen_cordic/chen_cordic_radian.v:215: Operator VAR \'angle\' expects 18 bits on the Initial value, but Initial value\'s CONST \'19\'h1\' generates 19 bits.\n                                                                                         : ... In instance chen_cordic.genblk2[15].inst_rotator\n    parameter signed [17:0] angle=0;\n                            ^~~~~\n%Error: Exiting due to 32 warning(s)\n'
function signed [18:0] angle;
  input [3:0] i;
  begin
    case (i)
    4'b0000: angle = 18'd25736 ;
    4'b0001: angle = 18'd15192;
    4'b0010: angle = 18'd8027;
    4'b0011: angle = 18'd4075;
    4'b0100: angle = 18'd2045;
    4'b0101: angle = 18'd1024;
    4'b0110: angle = 18'd512;
    4'b0111: angle = 18'd256;
    4'b1000: angle = 18'd128;
    4'b1001: angle = 18'd64;
    4'b1010: angle = 18'd32;
    4'b1011: angle = 18'd16;
    4'b1100: angle = 18'd8;
    4'b1101: angle = 18'd4;
    4'b1110: angle = 18'd2;
    4'b1111: angle = 18'd1;
    endcase
  end
endfunction
function signed [18:0] angle;

  input [3:0] i;
  begin
    case (i)
    4'b0000: angle = 18'd25736 ;
    4'b0001: angle = 18'd15192;
    4'b0010: angle = 18'd8027;
    4'b0011: angle = 18'd4075;
    4'b0100: angle = 18'd2045;
    4'b0101: angle = 18'd1024;
    4'b0110: angle = 18'd512;
    4'b0111: angle = 18'd256;
    4'b1000: angle = 18'd128;
    4'b1001: angle = 18'd64;
    4'b1010: angle = 18'd32;
    4'b1011: angle = 18'd16;
    4'b1100: angle = 18'd8;
    4'b1101: angle = 18'd4;
    4'b1110: angle = 18'd2;
    4'b1111: angle = 18'd1;
    endcase
  end
endfunction