data/full_repos/permissive/17877624/src/hardware/VGA_LED_Emulator.sv
 line:30 column:32: Illegal character "'"
1: b'%Warning-WIDTH: data/full_repos/permissive/17877624/src/hardware/VGA_LED_Emulator.sv:65: Operator EQ expects 32 or 10 bits on the LHS, but LHS\'s SEL generates 9 bits.\n                                                                                       : ... In instance VGA_LED_Emulator\n   assign VGA_VS = !( vcount[9:1] == (VACTIVE + VFRONT_PORCH) / 2);\n                                  ^~\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Error-PROCASSWIRE: data/full_repos/permissive/17877624/src/hardware/VGA_LED_Emulator.sv:44: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): \'hcount\'\n                                                                                           : ... In instance VGA_LED_Emulator\n     if (reset)          hcount <= 0;\n                         ^~~~~~\n%Error-PROCASSWIRE: data/full_repos/permissive/17877624/src/hardware/VGA_LED_Emulator.sv:45: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): \'hcount\'\n                                                                                           : ... In instance VGA_LED_Emulator\n     else if (endOfLine) hcount <= 0;\n                         ^~~~~~\n%Error-PROCASSWIRE: data/full_repos/permissive/17877624/src/hardware/VGA_LED_Emulator.sv:46: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): \'hcount\'\n                                                                                           : ... In instance VGA_LED_Emulator\n     else            hcount <= hcount + 11\'d 1;\n                     ^~~~~~\n%Error-PROCASSWIRE: data/full_repos/permissive/17877624/src/hardware/VGA_LED_Emulator.sv:55: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): \'vcount\'\n                                                                                           : ... In instance VGA_LED_Emulator\n     if (reset)          vcount <= 0;\n                         ^~~~~~\n%Error-PROCASSWIRE: data/full_repos/permissive/17877624/src/hardware/VGA_LED_Emulator.sv:57: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): \'vcount\'\n                                                                                           : ... In instance VGA_LED_Emulator\n       if (endOfField)   vcount <= 0;\n                         ^~~~~~\n%Error-PROCASSWIRE: data/full_repos/permissive/17877624/src/hardware/VGA_LED_Emulator.sv:58: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): \'vcount\'\n                                                                                           : ... In instance VGA_LED_Emulator\n       else              vcount <= vcount + 10\'d 1;\n                         ^~~~~~\n%Error: Exiting due to 6 error(s), 1 warning(s)\n'
module VGA_LED_Emulator(clk50, reset, hcount, vcount,
								VGA_CLK, VGA_HS, VGA_VS, VGA_BLANK_n, VGA_SYNC_n);
 input wire clk50, reset;
 output wire [10:0] hcount;
 output wire [9:0]  vcount;
 output wire VGA_CLK, VGA_HS, VGA_VS, VGA_BLANK_n, VGA_SYNC_n;

 							



   parameter HACTIVE      = 11'd 1280,
             HFRONT_PORCH = 11'd 32,
             HSYNC        = 11'd 192,
             HBACK_PORCH  = 11'd 96,   
             HTOTAL       = HACTIVE + HFRONT_PORCH + HSYNC + HBACK_PORCH;

   parameter VACTIVE      = 10'd 480,
             VFRONT_PORCH = 10'd 10,
             VSYNC        = 10'd 2,
             VBACK_PORCH  = 10'd 33,
             VTOTAL       = VACTIVE + VFRONT_PORCH + VSYNC + VBACK_PORCH;

   logic 			     endOfLine;
   always_ff @(posedge clk50 or posedge reset)
     if (reset)          hcount <= 0;
     else if (endOfLine) hcount <= 0;
     else  	         hcount <= hcount + 11'd 1;

   assign endOfLine = hcount == HTOTAL - 1;



   logic 			     endOfField;
   
   always_ff @(posedge clk50 or posedge reset)
     if (reset)          vcount <= 0;
     else if (endOfLine)
       if (endOfField)   vcount <= 0;
       else              vcount <= vcount + 10'd 1;

   assign endOfField = vcount == VTOTAL - 1;



   assign VGA_HS = !( (hcount[10:7] == 4'b1010) & (hcount[6] | hcount[5]));
   assign VGA_VS = !( vcount[9:1] == (VACTIVE + VFRONT_PORCH) / 2);

   assign VGA_SYNC_n = 1;
   



   assign VGA_BLANK_n = !( hcount[10] & (hcount[9] | hcount[8]) ) &
			!( vcount[9] | (vcount[8:5] == 4'b1111) );   

   assign VGA_CLK = hcount[0];
   
endmodule
module VGA_LED_Emulator(clk50, reset, hcount, vcount,
								VGA_CLK, VGA_HS, VGA_VS, VGA_BLANK_n, VGA_SYNC_n);

 input wire clk50, reset;
 output wire [10:0] hcount;
 output wire [9:0]  vcount;
 output wire VGA_CLK, VGA_HS, VGA_VS, VGA_BLANK_n, VGA_SYNC_n;

 							



   parameter HACTIVE      = 11'd 1280,
             HFRONT_PORCH = 11'd 32,
             HSYNC        = 11'd 192,
             HBACK_PORCH  = 11'd 96,   
             HTOTAL       = HACTIVE + HFRONT_PORCH + HSYNC + HBACK_PORCH;

   parameter VACTIVE      = 10'd 480,
             VFRONT_PORCH = 10'd 10,
             VSYNC        = 10'd 2,
             VBACK_PORCH  = 10'd 33,
             VTOTAL       = VACTIVE + VFRONT_PORCH + VSYNC + VBACK_PORCH;

   logic 			     endOfLine;
   always_ff @(posedge clk50 or posedge reset)
     if (reset)          hcount <= 0;
     else if (endOfLine) hcount <= 0;
     else  	         hcount <= hcount + 11'd 1;

   assign endOfLine = hcount == HTOTAL - 1;



   logic 			     endOfField;
   
   always_ff @(posedge clk50 or posedge reset)
     if (reset)          vcount <= 0;
     else if (endOfLine)
       if (endOfField)   vcount <= 0;
       else              vcount <= vcount + 10'd 1;

   assign endOfField = vcount == VTOTAL - 1;



   assign VGA_HS = !( (hcount[10:7] == 4'b1010) & (hcount[6] | hcount[5]));
   assign VGA_VS = !( vcount[9:1] == (VACTIVE + VFRONT_PORCH) / 2);

   assign VGA_SYNC_n = 1;
   



   assign VGA_BLANK_n = !( hcount[10] & (hcount[9] | hcount[8]) ) &
			!( vcount[9] | (vcount[8:5] == 4'b1111) );   

   assign VGA_CLK = hcount[0];
   
endmodule