module top ( output wire reset_lcd, //lvds pin output wire LVDS_CLK, output wire [3:0] LVDS_DATA ); * 這裡調用有用到的各IP模塊 *. .(此處請自由發揮) *. endmodule
delay_rst delay1( .clk(osc_38), .rst_n(rst_n), .reset_lcd(reset_lcd) ); sync_gen gen1( .r(r), .g(g), .b(b), .DE(DE), .Vsync(Vsync), .Hsync(Hsync), .clk(clk), .rst_n(rst_n) ) lvdstx lvdstx_inst0 ( .clk_s(osc_38 ), .reset(1'b0 ), .clk(pll_166 ), .dataout0(tx0_a ), .dataout1(tx0_b ), .dataout2(tx0_c ), .dataout3(tx0_d ), .sclk( ), .tx_ready( ), //lvds pin .clkout(LVDS_CLK ), .dout(LVDS_DATA ) );
defparam OSCH_inst.NOM_FREQ = "38"; OSCH OSCH_inst( .STDBY(1'b0), .OSC(osc_38), .SEDSTDBY() ); //synthesis syn_black_box pll pll_inst ( .CLKI(osc_38 ), .CLKOP(pll_166 ), .CLKOS(pll_47 ), .CLKOS2(pll_spi ), .CLKOS3(pll_100 ) );