Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module VGA_Draw(CLOCK_50, line, VGA_CLK,
- VGA_HS,
- VGA_VS,
- VGA_BLANK_N, VGA BLANK
- VGA_SYNC_N,
- VGA_R,
- VGA_G,
- VGA_B
- );
- input[63:0] line
- input CLOCK_50;
- output VGA_CLK;
- output VGA_HS;
- output VGA_VS;
- output VGA_BLANK_N;
- output VGA_SYNC_N;
- output [9:0] VGA_R;
- output [9:0] VGA_G;
- output [9:0] VGA_B;
- //ROW N
- VGA_Control L1C1(.CLOCK_50(CLOCK_50), .KEY(KEY), .SW([line[63:63]),
- .yCoord(line[53:48]), .xCoord(line[59:54]), .VGA_ClK(VGA_CLK),
- .VGA_HS(VGA_HS), .VGA_VS(VGA_VS), .VGA_BLANK_N(VGA_BLANK_N),
- .VGA_SYNC_N(VGA_SYNC_N), .VGA_R(VGA_R), .VGA_G(VGA_G),
- .VGA_B(VGA_B));
- VGA_Control L1C2(.CLOCK_50(CLOCK_50), .KEY(KEY), .SW([line[47:47]),
- .yCoord(line[37:32]), .xCoord(line[43:38]), .VGA_ClK(VGA_CLK),
- .VGA_HS(VGA_HS), .VGA_VS(VGA_VS), .VGA_BLANK_N(VGA_BLANK_N),
- .VGA_SYNC_N(VGA_SYNC_N), .VGA_R(VGA_R), .VGA_G(VGA_G),
- .VGA_B(VGA_B));
- VGA_Control L1C3(.CLOCK_50(CLOCK_50), .KEY(KEY), .SW([line[31:31]),
- .yCoord(line[21:16]), .xCoord(line[27:22]), .VGA_ClK(VGA_CLK),
- .VGA_HS(VGA_HS), .VGA_VS(VGA_VS), .VGA_BLANK_N(VGA_BLANK_N),
- .VGA_SYNC_N(VGA_SYNC_N), .VGA_R(VGA_R), .VGA_G(VGA_G),
- .VGA_B(VGA_B));
- VGA_Control L1C4(.CLOCK_50(CLOCK_50), .KEY(KEY), .SW([line[15:15]),
- .yCoord(line[5:0]), .xCoord(line[11:6]), .VGA_ClK(VGA_CLK),
- .VGA_HS(VGA_HS), .VGA_VS(VGA_VS), .VGA_BLANK_N(VGA_BLANK_N),
- .VGA_SYNC_N(VGA_SYNC_N), .VGA_R(VGA_R), .VGA_G(VGA_G),
- .VGA_B(VGA_B));
- endmodule;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement