123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227 |
- module v1
- (
-
- input clock_48,
- input board_id,
-
- input abc_clk,
- input [15:0] abc_a,
- inout [7:0] abc_d,
- output abc_d_oe,
- input abc_rst_n,
- input abc_cs_n,
- input [4:0] abc_out_n,
- input [1:0] abc_inp_n,
- input abc_xmemfl_n,
- input abc_xmemw800_n,
- input abc_xmemw80_n,
- input abc_xinpstb_n,
- input abc_xoutpstb_n,
-
-
- output abc_rdy_x,
- output abc_resin_x,
- output abc_int80_x,
- output abc_int800_x,
- output abc_nmi_x,
- output abc_xm_x,
-
- output abc_host,
- output abc_a_oe,
-
- output abc_d_ce_n,
-
-
-
- inout exth_ha,
- inout exth_hb,
- input exth_hc,
- inout exth_hd,
- inout exth_he,
- inout exth_hf,
- inout exth_hg,
- input exth_hh,
-
- output sr_clk,
- output sr_cke,
- output [1:0] sr_ba,
- output [12:0] sr_a,
- inout [15:0] sr_dq,
- output [1:0] sr_dqm,
- output sr_cs_n,
- output sr_we_n,
- output sr_cas_n,
- output sr_ras_n,
-
- output sd_clk,
- output sd_cmd,
- inout [3:0] sd_dat,
-
- input tty_txd,
- output tty_rxd,
- input tty_rts,
- output tty_cts,
- input tty_dtr,
-
- output flash_cs_n,
- output flash_sck,
- inout [1:0] flash_io,
-
- inout spi_clk,
- inout [1:0] spi_io,
- inout spi_cs_esp_n,
- inout spi_cs_flash_n,
-
- inout esp_io0,
- inout esp_int,
-
- inout i2c_scl,
- inout i2c_sda,
- input rtc_32khz,
- input rtc_int_n,
-
- output [2:0] led,
-
- inout [5:0] gpio,
-
- output [2:0] hdmi_d,
- output hdmi_clk,
- inout hdmi_scl,
- inout hdmi_sda,
- inout hdmi_hpd,
-
- inout [2:0] rngio
- );
-
- assign abc_d_ce_n = 1'b0;
-
- assign abc_a_oe = abc_host;
-
- assign sd_dat[2:1] = 2'bzz;
- assign gpio[0] = 1'bz;
- assign gpio[2] = 1'bz;
- assign gpio[4] = 1'bz;
-
- assign sr_cke = 1'b1;
-
- wire reset_plls;
- wire master_pll_locked;
- wire master_clk;
- wire slow_clk;
- pll2_48 pll2 (
- .areset ( reset_plls ),
- .locked ( master_pll_locked ),
- .inclk0 ( clock_48 ),
- .c0 ( master_clk ),
- .c1 ( slow_clk )
- );
- max80 #(.x_mosfet(6'b111111),
- .fpga_ver(8'd1))
- max80 (
- .master_clk ( master_clk ),
- .slow_clk ( slow_clk ),
- .master_pll_locked ( master_pll_locked ),
- .reset_plls ( reset_plls ),
- .board_id ( board_id ),
- .abc_clk ( abc_clk ),
- .abc_a ( abc_a ),
- .abc_d ( abc_d ),
- .abc_d_oe ( abc_d_oe ),
- .abc_rst_n ( abc_rst_n ),
- .abc_cs_n ( abc_cs_n ),
- .abc_out_n ( abc_out_n ),
- .abc_inp_n ( abc_inp_n ),
- .abc_xmemfl_n ( abc_xmemfl_n ),
- .abc_xmemw800_n ( abc_xmemw800_n ),
- .abc_xmemw80_n ( abc_xmemw80_n ),
- .abc_xinpstb_n ( abc_xinpstb_n ),
- .abc_xoutpstb_n ( abc_xoutpstb_n ),
- .abc_rdy_x ( abc_rdy_x ),
- .abc_resin_x ( abc_resin_x ),
- .abc_int80_x ( abc_int80_x ),
- .abc_int800_x ( abc_int800_x ),
- .abc_nmi_x ( abc_nmi_x ),
- .abc_xm_x ( abc_xm_x ),
- .abc_host ( abc_host ),
- .exth_ha ( exth_ha ),
- .exth_hb ( exth_hb ),
- .exth_hc ( exth_hc ),
- .exth_hd ( exth_hd ),
- .exth_he ( exth_he ),
- .exth_hf ( exth_hf ),
- .exth_hg ( exth_hg ),
- .exth_hh ( exth_hh ),
- .sr_clk ( sr_clk ),
- .sr_ba ( sr_ba ),
- .sr_a ( sr_a ),
- .sr_dq ( sr_dq ),
- .sr_dqm ( sr_dqm ),
- .sr_cs_n ( sr_cs_n ),
- .sr_we_n ( sr_we_n ),
- .sr_cas_n ( sr_cas_n ),
- .sr_ras_n ( sr_ras_n ),
- .sd_cd_n ( 1'b0 ),
- .sd_cs_n ( sd_dat[3] ),
- .sd_clk ( sd_clk ),
- .sd_di ( sd_cmd ),
- .sd_do ( sd_dat[0] ),
- .tty_txd ( tty_txd ),
- .tty_rxd ( tty_rxd ),
- .tty_rts ( tty_rts ),
- .tty_cts ( tty_cts ),
- .tty_dtr ( tty_dtr ),
- .flash_cs_n ( flash_cs_n ),
- .flash_sck ( flash_sck ),
- .flash_io ( flash_io ),
- .spi_clk ( spi_clk ),
- .spi_io ( spi_io ),
- .spi_cs_esp_n ( spi_cs_esp_n ),
- .spi_cs_flash_n ( spi_cs_flash_n ),
- .esp_io0 ( esp_io0 ),
- .esp_int ( esp_int ),
- .i2c_scl ( i2c_scl ),
- .i2c_sda ( i2c_sda ),
- .rtc_32khz ( rtc_32khz ),
- .rtc_int_n ( rtc_int_n ),
- .led ( led ),
- .usb_dp ( gpio[3] ),
- .usb_dn ( gpio[5] ),
- .usb_rx ( 1'bx ),
- .usb_rx_ok ( 1'b0 ),
- .usb_pu ( gpio[1] ),
- .hdmi_d ( hdmi_d ),
- .hdmi_clk ( hdmi_clk ),
- .hdmi_scl ( hdmi_scl ),
- .hdmi_sda ( hdmi_sda ),
- .hdmi_hpd ( hdmi_hpd ),
- .rngio ( rngio )
- );
- endmodule
|