data/full_repos/permissive/161706166/src/pdp1_vga_typewriter.v
 line:85: before: "&&"
1: b"%Error: data/full_repos/permissive/161706166/src/pdp1_vga_typewriter.v:85: Define or directive not defined: '`v_visible_offset'\nassign current_y = (vertical_counter >= `v_visible_offset && vertical_counter < `v_visible_offset_end) ? vertical_counter - `v_visible_offset : 11'b0;\n                                        ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/161706166/src/pdp1_vga_typewriter.v:85: syntax error, unexpected &&, expecting TYPE-IDENTIFIER\nassign current_y = (vertical_counter >= `v_visible_offset && vertical_counter < `v_visible_offset_end) ? vertical_counter - `v_visible_offset : 11'b0;\n                                                          ^~\n%Error: data/full_repos/permissive/161706166/src/pdp1_vga_typewriter.v:85: Define or directive not defined: '`v_visible_offset_end'\nassign current_y = (vertical_counter >= `v_visible_offset && vertical_counter < `v_visible_offset_end) ? vertical_counter - `v_visible_offset : 11'b0;\n                                                                                ^~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/161706166/src/pdp1_vga_typewriter.v:85: Define or directive not defined: '`v_visible_offset'\nassign current_y = (vertical_counter >= `v_visible_offset && vertical_counter < `v_visible_offset_end) ? vertical_counter - `v_visible_offset : 11'b0;\n                                                                                                                            ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/161706166/src/pdp1_vga_typewriter.v:86: Define or directive not defined: '`h_visible_offset'\nassign current_x = (horizontal_counter >= `h_visible_offset + `h_center_offset + 2'd2 && horizontal_counter < `h_visible_offset_end + `h_center_offset - 2'd3) ?\n                                          ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/161706166/src/pdp1_vga_typewriter.v:86: Define or directive not defined: '`h_center_offset'\nassign current_x = (horizontal_counter >= `h_visible_offset + `h_center_offset + 2'd2 && horizontal_counter < `h_visible_offset_end + `h_center_offset - 2'd3) ?\n                                                              ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/161706166/src/pdp1_vga_typewriter.v:86: Define or directive not defined: '`h_visible_offset_end'\nassign current_x = (horizontal_counter >= `h_visible_offset + `h_center_offset + 2'd2 && horizontal_counter < `h_visible_offset_end + `h_center_offset - 2'd3) ?\n                                                                                                              ^~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/161706166/src/pdp1_vga_typewriter.v:86: Define or directive not defined: '`h_center_offset'\nassign current_x = (horizontal_counter >= `h_visible_offset + `h_center_offset + 2'd2 && horizontal_counter < `h_visible_offset_end + `h_center_offset - 2'd3) ?\n                                                                                                                                      ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/161706166/src/pdp1_vga_typewriter.v:87: Define or directive not defined: '`h_visible_offset'\n                                       horizontal_counter - (`h_visible_offset + `h_center_offset) : 11'b0;\n                                                             ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/161706166/src/pdp1_vga_typewriter.v:87: Define or directive not defined: '`h_center_offset'\n                                       horizontal_counter - (`h_visible_offset + `h_center_offset) : 11'b0;\n                                                                                 ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/161706166/src/pdp1_vga_typewriter.v:87: syntax error, unexpected ')', expecting TYPE-IDENTIFIER\n                                       horizontal_counter - (`h_visible_offset + `h_center_offset) : 11'b0;\n                                                                                                 ^\n%Error: data/full_repos/permissive/161706166/src/pdp1_vga_typewriter.v:89: Define or directive not defined: '`h_visible_offset'\nassign visible_x = (horizontal_counter >= `h_visible_offset && horizontal_counter < `h_line_timing) ? horizontal_counter - `h_visible_offset : 11'b0;\n                                          ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/161706166/src/pdp1_vga_typewriter.v:89: syntax error, unexpected &&, expecting TYPE-IDENTIFIER\nassign visible_x = (horizontal_counter >= `h_visible_offset && horizontal_counter < `h_line_timing) ? horizontal_counter - `h_visible_offset : 11'b0;\n                                                            ^~\n%Error: data/full_repos/permissive/161706166/src/pdp1_vga_typewriter.v:89: Define or directive not defined: '`h_line_timing'\nassign visible_x = (horizontal_counter >= `h_visible_offset && horizontal_counter < `h_line_timing) ? horizontal_counter - `h_visible_offset : 11'b0;\n                                                                                    ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/161706166/src/pdp1_vga_typewriter.v:89: Define or directive not defined: '`h_visible_offset'\nassign visible_x = (horizontal_counter >= `h_visible_offset && horizontal_counter < `h_line_timing) ? horizontal_counter - `h_visible_offset : 11'b0;\n                                                                                                                           ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/161706166/src/pdp1_vga_typewriter.v:143: Define or directive not defined: '`lowercase'\n   if (char == `lowercase)                                      \n               ^~~~~~~~~~\n%Error: data/full_repos/permissive/161706166/src/pdp1_vga_typewriter.v:143: syntax error, unexpected ')', expecting TYPE-IDENTIFIER\n   if (char == `lowercase)                                      \n                         ^\n%Error: data/full_repos/permissive/161706166/src/pdp1_vga_typewriter.v:146: Define or directive not defined: '`uppercase'\n   else if (char == `uppercase)\n                    ^~~~~~~~~~\n%Error: data/full_repos/permissive/161706166/src/pdp1_vga_typewriter.v:156: Define or directive not defined: '`carriage_return'\n      if (char == `carriage_return || char_x == 6'b111111)      \n                  ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/161706166/src/pdp1_vga_typewriter.v:156: syntax error, unexpected ||, expecting TYPE-IDENTIFIER\n      if (char == `carriage_return || char_x == 6'b111111)      \n                                   ^~\n%Error: data/full_repos/permissive/161706166/src/pdp1_vga_typewriter.v:162: syntax error, unexpected end\n   end\n   ^~~\n%Error: data/full_repos/permissive/161706166/src/pdp1_vga_typewriter.v:186: Define or directive not defined: '`h_visible_offset'\n   is_dashed_line <= (horizontal_counter == (`h_visible_offset + `h_center_offset - 1'b1) || horizontal_counter == (`h_visible_offset_end + `h_center_offset - 1'b1)) && current_y[1:0] == 0;\n                                             ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/161706166/src/pdp1_vga_typewriter.v:186: Define or directive not defined: '`h_center_offset'\n   is_dashed_line <= (horizontal_counter == (`h_visible_offset + `h_center_offset - 1'b1) || horizontal_counter == (`h_visible_offset_end + `h_center_offset - 1'b1)) && current_y[1:0] == 0;\n                                                                 ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/161706166/src/pdp1_vga_typewriter.v:186: Define or directive not defined: '`h_visible_offset_end'\n   is_dashed_line <= (horizontal_counter == (`h_visible_offset + `h_center_offset - 1'b1) || horizontal_counter == (`h_visible_offset_end + `h_center_offset - 1'b1)) && current_y[1:0] == 0;\n                                                                                                                    ^~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/161706166/src/pdp1_vga_typewriter.v:186: Define or directive not defined: '`h_center_offset'\n   is_dashed_line <= (horizontal_counter == (`h_visible_offset + `h_center_offset - 1'b1) || horizontal_counter == (`h_visible_offset_end + `h_center_offset - 1'b1)) && current_y[1:0] == 0;\n                                                                                                                                            ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/161706166/src/pdp1_vga_typewriter.v:187: syntax error, unexpected end\nend\n^~~\n%Error: data/full_repos/permissive/161706166/src/pdp1_vga_typewriter.v:220: syntax error, unexpected end\nend\n^~~\n%Error: data/full_repos/permissive/161706166/src/pdp1_vga_typewriter.v:225: Define or directive not defined: '`h_visible_offset'\n   if (horizontal_counter >= `h_visible_offset + `h_center_offset - 8'd36 && horizontal_counter < `h_visible_offset_end + `h_center_offset + 8'd36)\n                             ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/161706166/src/pdp1_vga_typewriter.v:225: Define or directive not defined: '`h_center_offset'\n   if (horizontal_counter >= `h_visible_offset + `h_center_offset - 8'd36 && horizontal_counter < `h_visible_offset_end + `h_center_offset + 8'd36)\n                                                 ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/161706166/src/pdp1_vga_typewriter.v:225: Define or directive not defined: '`h_visible_offset_end'\n   if (horizontal_counter >= `h_visible_offset + `h_center_offset - 8'd36 && horizontal_counter < `h_visible_offset_end + `h_center_offset + 8'd36)\n                                                                                                  ^~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/161706166/src/pdp1_vga_typewriter.v:225: Define or directive not defined: '`h_center_offset'\n   if (horizontal_counter >= `h_visible_offset + `h_center_offset - 8'd36 && horizontal_counter < `h_visible_offset_end + `h_center_offset + 8'd36)\n                                                                                                                          ^~~~~~~~~~~~~~~~\n%Error: Cannot continue\n"
function [0:0] is_circle_8;
   input [4:0] coord_x;
   input [4:0] coord_y;
begin

   if (coord_x < 5'd16) coord_x = ~coord_x;
   if (coord_y > 5'd16) coord_y = ~coord_y;

   case (coord_y)
      5'd16:  is_circle_8 = coord_x < 5'd23;
      5'd15:  is_circle_8 = coord_x < 5'd23;
      5'd14:  is_circle_8 = coord_x < 5'd23;
      5'd13:  is_circle_8 = coord_x < 5'd23;
      5'd12:  is_circle_8 = coord_x < 5'd23;
      5'd11:  is_circle_8 = coord_x < 5'd22;
      5'd10:  is_circle_8 = coord_x < 5'd22;
      5'd9:   is_circle_8 = coord_x < 5'd21;
      5'd8:   is_circle_8 = coord_x < 5'd19;
      default: is_circle_8 = 1'b0;
   endcase
end

endfunction
function [0:0] is_circle_8;

   input [4:0] coord_x;
   input [4:0] coord_y;
begin

   if (coord_x < 5'd16) coord_x = ~coord_x;
   if (coord_y > 5'd16) coord_y = ~coord_y;

   case (coord_y)
      5'd16:  is_circle_8 = coord_x < 5'd23;
      5'd15:  is_circle_8 = coord_x < 5'd23;
      5'd14:  is_circle_8 = coord_x < 5'd23;
      5'd13:  is_circle_8 = coord_x < 5'd23;
      5'd12:  is_circle_8 = coord_x < 5'd23;
      5'd11:  is_circle_8 = coord_x < 5'd22;
      5'd10:  is_circle_8 = coord_x < 5'd22;
      5'd9:   is_circle_8 = coord_x < 5'd21;
      5'd8:   is_circle_8 = coord_x < 5'd19;
      default: is_circle_8 = 1'b0;
   endcase
end

endfunction