gateware

A collection of little open source FPGA hobby projects
git clone http://frotz.net/git/gateware.git
Log | Files | Refs | README

ecp5_evn_hdmi111.sv (622B)


      1 module top(
      2 	input clk,
      3 	input btn,
      4 	output [7:0] led,
      5 	output hdmi_r,
      6 	output hdmi_g,
      7 	output hdmi_b,
      8 	output hdmi_hs,
      9 	output hdmi_vs,
     10 	output hdmi_de,
     11 	output hdmi_ck
     12 );
     13 
     14 	assign led = { 4'b1010, btn, btn, btn, btn };
     15 
     16 wire clk25m;
     17 
     18 pll_12_25 pll(
     19 	.clk12m_in(clk),
     20 	.clk25m_out(clk25m),
     21 	.locked()
     22 );
     23 
     24 assign hdmi_ck = clk25m;
     25 
     26 vga40x30x2 #(
     27     .BPP(1),
     28     .RGB(0)
     29     )hdmi(
     30     .clk25m(clk25m),
     31     .red(hdmi_r),
     32     .grn(hdmi_g),
     33     .blu(hdmi_b),
     34     .hs(hdmi_hs),
     35     .vs(hdmi_vs),
     36     .fr(),
     37     .active(hdmi_de),
     38     .vram_clk(clk25m),
     39     .vram_waddr(0),
     40     .vram_wdata(0),
     41     .vram_we(0)
     42     );
     43 endmodule