diff options
author | Bert Lange <b.lange@fzd.de> | 2011-01-07 14:58:23 +0100 |
---|---|---|
committer | Bert Lange <b.lange@fzd.de> | 2011-01-07 14:58:23 +0100 |
commit | aa0f933d61204568fb7583ac9e50d96566d7ee2a (patch) | |
tree | 1c1273b05c774e6d18a362849fb2fae7a6cb80a6 /s3estarter | |
parent | d017a1b2781a2a7534baf0b8350ad8c148cdd22a (diff) | |
download | zpu-aa0f933d61204568fb7583ac9e50d96566d7ee2a.zip zpu-aa0f933d61204568fb7583ac9e50d96566d7ee2a.tar.gz |
add: default to minimize warnings (sim+syn)
fix: fpga io pins
Diffstat (limited to 's3estarter')
-rw-r--r-- | s3estarter/rtl/dcm_ctrl_apb.vhd | 2 | ||||
-rw-r--r-- | s3estarter/rtl/fpga_components.vhd | 4 | ||||
-rw-r--r-- | s3estarter/rtl/top.vhd | 89 |
3 files changed, 60 insertions, 35 deletions
diff --git a/s3estarter/rtl/dcm_ctrl_apb.vhd b/s3estarter/rtl/dcm_ctrl_apb.vhd index 7e627ff..9f73c68 100644 --- a/s3estarter/rtl/dcm_ctrl_apb.vhd +++ b/s3estarter/rtl/dcm_ctrl_apb.vhd @@ -149,6 +149,8 @@ begin psen <= v.psen; psincdec <= v.psincdec; + -- generate debug signals + debug_trace <= default_debug_signals; debug_trace.psready <= v.psready; debug_trace.pserror <= v.pserror; end process; diff --git a/s3estarter/rtl/fpga_components.vhd b/s3estarter/rtl/fpga_components.vhd index 65a202a..eb94f85 100644 --- a/s3estarter/rtl/fpga_components.vhd +++ b/s3estarter/rtl/fpga_components.vhd @@ -134,8 +134,8 @@ package fpga_components is FPGA_M1 : inout std_logic; FPGA_M2 : inout std_logic; FPGA_INIT_B : inout std_logic; - FPGA_RDWR_B : inout std_logic; - FPGA_HSWAP : inout std_logic; + FPGA_RDWR_B : in std_logic; + FPGA_HSWAP : in std_logic; -- ==== FX2 Connector (FX2) ==== FX2_CLKIN : inout std_logic; diff --git a/s3estarter/rtl/top.vhd b/s3estarter/rtl/top.vhd index e3cef00..d2c22c2 100644 --- a/s3estarter/rtl/top.vhd +++ b/s3estarter/rtl/top.vhd @@ -59,8 +59,8 @@ entity top is FPGA_M1 : inout std_logic; FPGA_M2 : inout std_logic; FPGA_INIT_B : inout std_logic; - FPGA_RDWR_B : inout std_logic; - FPGA_HSWAP : inout std_logic; + FPGA_RDWR_B : in std_logic; + FPGA_HSWAP : in std_logic; -- ==== FX2 Connector (FX2) ==== FX2_CLKIN : inout std_logic; @@ -69,9 +69,9 @@ entity top is FX2_IO : inout std_logic_vector(40 downto 1); - --FX2_IO : inout std_ulogic_vector(4 downto 1); -- shred with J1 - --FX2_IO : inout std_ulogic_vector(8 downto 5); -- shred with J2 - --FX2_IO : inout std_ulogic_vector(12 downto 9); -- shred with J4 + --FX2_IO : inout std_ulogic_vector(4 downto 1); -- shared with J1 + --FX2_IO : inout std_ulogic_vector(8 downto 5); -- shared with J2 + --FX2_IO : inout std_ulogic_vector(12 downto 9); -- shared with J4 -- The discrete LEDs are shared with the following 8 FX2 connections --FX2_IO : inout std_ulogic_vector(20 downto 13); @@ -193,12 +193,12 @@ use gaisler.net.all; -- types architecture rtl of top is - constant spi_ss_b_disable : std_ulogic := '1'; - constant dac_cs_disable : std_ulogic := '1'; - constant amp_cs_disable : std_ulogic := '1'; - constant ad_conv_disable : std_ulogic := '0'; + constant spi_ss_b_disable : std_ulogic := '1'; -- 1 = disable SPI serial flash + constant dac_cs_disable : std_ulogic := '1'; -- 1 = disable DAC + constant amp_cs_disable : std_ulogic := '1'; -- 1 = disable programmable pre-amplifier + constant ad_conv_disable : std_ulogic := '0'; -- 0 = disable ADC constant sf_ce0_disable : std_ulogic := '1'; - constant fpga_init_b_disable : std_ulogic := '1'; + constant fpga_init_b_disable : std_ulogic := '1'; -- 1 = disable pflatform flash PROM -- connect ldc to fpga constant sf_ce0_lcd_to_fpga : std_ulogic := '1'; @@ -248,36 +248,59 @@ architecture rtl of top is begin -- drive unused outputs - AD_CONV <= ad_conv_disable; - AMP_CS <= amp_cs_disable; - AMP_SHDN <= '1'; - - DAC_CLR <= '0'; - DAC_CS <= dac_cs_disable; - - DS_WIRE <= 'Z'; - - RS232_DTE_TXD <= '0'; - - SF_A <= (others => '0'); - SF_BYTE <= '0'; - SF_CE0 <= sf_ce0_lcd_to_fpga; - SF_OE <= '1'; - SF_WE <= '0'; + AD_CONV <= ad_conv_disable; + AMP_CS <= amp_cs_disable; + AMP_SHDN <= '1'; + + DAC_CLR <= '0'; + DAC_CS <= dac_cs_disable; + + DS_WIRE <= 'Z'; + + -- set M[2:0]=000 to enable platfrom flash PROM (XCF04S) + FPGA_M0 <= 'Z'; + FPGA_M1 <= 'Z'; + FPGA_M2 <= 'Z'; + FPGA_INIT_B <= fpga_init_b_disable; + + FX2_CLKIN <= 'Z'; + FX2_CLKIO <= 'Z'; + FX2_CLKOUT <= 'Z'; -- could also be used as input/ differential input + + FX2_IO(40 downto 33) <= (others => 'Z'); + + GCLK10 <= 'Z'; + + PS2_CLK <= 'Z'; + PS2_DATA <= 'Z'; - SPI_MOSI <= '0'; - SPI_SCK <= '0'; - SPI_SS_B <= spi_ss_b_disable; - SPI_ALT_CS_JP11 <= spi_ss_b_disable; + RS232_DTE_TXD <= '0'; + + SF_A <= (others => '0'); + SF_D(15 downto 12) <= (others => 'Z'); + SF_D( 7 downto 1) <= (others => 'Z'); + SF_BYTE <= '0'; + SF_CE0 <= sf_ce0_lcd_to_fpga; + SF_OE <= '1'; + SF_WE <= '0'; + + SPI_MOSI <= '0'; + SPI_SCK <= '0'; + SPI_SS_B <= spi_ss_b_disable; + SPI_ALT_CS_JP11 <= spi_ss_b_disable; + + XC_CMD <= "00"; + XC_CPLD_EN <= '0'; + XC_D(2 downto 0) <= (others => 'Z'); + XC_GCK0 <= 'Z'; - XC_CMD <= "00"; - XC_CPLD_EN <= '0'; - + -- clock connections top_fpga_clk.clk50 <= CLK_50MHZ; top_fpga_clk.aux <= CLK_AUX; top_fpga_clk.sma <= CLK_SMA; + -- input devices top_fpga_rotary_sw.a <= ROT_A; top_fpga_rotary_sw.b <= ROT_B; top_fpga_rotary_sw.center <= ROT_CENTER; |