Advertisement
Guest User

Untitled

a guest
Mar 21st, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. module VGA_Draw(CLOCK_50, line, VGA_CLK,                       
  2.     VGA_HS,                        
  3.     VGA_VS,    
  4.     VGA_BLANK_N,                                                    VGA BLANK
  5.     VGA_SYNC_N,                    
  6.     VGA_R,                         
  7.     VGA_G,                         
  8.     VGA_B                      
  9.     );
  10.  
  11.     input[63:0] line
  12.     input CLOCK_50;
  13.     output  VGA_CLK;               
  14.     output  VGA_HS;                
  15.     output  VGA_VS;                
  16.     output  VGA_BLANK_N;               
  17.     output  VGA_SYNC_N;            
  18.     output  [9:0]   VGA_R;                 
  19.     output  [9:0]   VGA_G;                 
  20.     output  [9:0]   VGA_B;  
  21.  
  22.    
  23.     //ROW N
  24.     VGA_Control L1C1(.CLOCK_50(CLOCK_50), .KEY(KEY), .SW([line[63:63]),
  25.             .yCoord(line[53:48]), .xCoord(line[59:54]), .VGA_ClK(VGA_CLK),
  26.             .VGA_HS(VGA_HS), .VGA_VS(VGA_VS), .VGA_BLANK_N(VGA_BLANK_N),
  27.             .VGA_SYNC_N(VGA_SYNC_N), .VGA_R(VGA_R), .VGA_G(VGA_G),
  28.             .VGA_B(VGA_B));
  29.  
  30.     VGA_Control L1C2(.CLOCK_50(CLOCK_50), .KEY(KEY), .SW([line[47:47]),
  31.             .yCoord(line[37:32]), .xCoord(line[43:38]), .VGA_ClK(VGA_CLK),
  32.             .VGA_HS(VGA_HS), .VGA_VS(VGA_VS), .VGA_BLANK_N(VGA_BLANK_N),
  33.             .VGA_SYNC_N(VGA_SYNC_N), .VGA_R(VGA_R), .VGA_G(VGA_G),
  34.             .VGA_B(VGA_B));
  35.  
  36.     VGA_Control L1C3(.CLOCK_50(CLOCK_50), .KEY(KEY), .SW([line[31:31]),
  37.             .yCoord(line[21:16]), .xCoord(line[27:22]), .VGA_ClK(VGA_CLK),
  38.             .VGA_HS(VGA_HS), .VGA_VS(VGA_VS), .VGA_BLANK_N(VGA_BLANK_N),
  39.             .VGA_SYNC_N(VGA_SYNC_N), .VGA_R(VGA_R), .VGA_G(VGA_G),
  40.             .VGA_B(VGA_B));
  41.  
  42.     VGA_Control L1C4(.CLOCK_50(CLOCK_50), .KEY(KEY), .SW([line[15:15]),
  43.             .yCoord(line[5:0]), .xCoord(line[11:6]), .VGA_ClK(VGA_CLK),
  44.             .VGA_HS(VGA_HS), .VGA_VS(VGA_VS), .VGA_BLANK_N(VGA_BLANK_N),
  45.             .VGA_SYNC_N(VGA_SYNC_N), .VGA_R(VGA_R), .VGA_G(VGA_G),
  46.             .VGA_B(VGA_B));
  47. endmodule;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement