A VS Code extension that provides an integrated VGA simulator for Verilog designs. Simulate and visualize VGA output directly in your editor.
This extension brings the great learning project VGA Playground directly to VSCode. Also learn more at TinyTapeout of how to turn your VGA design from here into a real chip at reasonable cost.
- Via Command Palette: Press
Ctrl+Shift+P(Windows/Linux) orCmd+Shift+P(macOS) - Type "VerilogVGA: Open VGA Simulator"
- The simulator panel opens in your editor
Your top-level Verilog module must provide the following output ports:
output wire hsync;
output wire vsync;
output wire [1:0] r;
output wire [1:0] g;
output wire [1:0] b;Your module can optionally accept these input ports for user interaction:
input wire key_0, key_1, key_2, key_3, key_4;
input wire key_5, key_6, key_7, key_8, key_9;
input wire key_up, key_down, key_left, key_right;
input wire key_space;Press keys in the simulator to drive corresponding input signals high.
module vga_display (
input wire clk,
input wire rst_n,
input wire key_space,
output wire hsync, vsync,
output wire [1:0] r, g, b
);
// Your implementation
endmodule