Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module top
- (
- input SPIMOSI,
- input SPICLK,
- input SPICS,
- input SYSCLK,
- input btnA,
- output VGA_VSYNC,
- output VGA_HSYNC,
- output VGA_R,
- output VGA_G,
- output VGA_B
- );
- wire MAIN_CLK;
- wire VSYNC;
- wire HSYNC;
- wire RED;
- Gowin_rPLL PLL_INST(
- .clkout(MAIN_CLK), //output clkout(~200.5mhz)
- .clkin(SYSCLK) //input clkin(27mhz)
- );
- vga VGA_INST(
- .CLK(MAIN_CLK),
- .VSYNC(VSYNC),
- .R(RED),
- .HSYNC(HSYNC)
- );
- assign VGA_HSYNC = HSYNC;
- assign VGA_VSYNC = VSYNC;
- assign VGA_R = RED;
- endmodule
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement