From c7e985d749f82efd2396cd993e3df050f6429724 Mon Sep 17 00:00:00 2001 From: Simon Southwell Date: Wed, 23 Dec 2020 15:04:59 +0000 Subject: [PATCH] ELGIP-98 Updated RAMS and FIFOs to use generic components and removed ald project specific files. Also the test pattern generator and checker. Changes to synth files for wiring up HPS-EMAC interface via FPGA fabric --- .../common/0/src/altera/alt_async_fifo.vhd | 44 ++-- .../transconfig/transconfig.qip | 2 +- .../xaui_phy_itf/src/xaui_phy_itf.qip | 2 +- generic_ip/xgbe_oe/0/src/PRN_gen_0.vhd | 69 ------ generic_ip/xgbe_oe/0/src/gmii_rx_bridge_0.vhd | 19 +- generic_ip/xgbe_oe/0/src/gmii_tx_bridge_0.vhd | 34 +-- .../xgbe_oe/0/src/intel/afifo_2048x10_0.vhd | 214 ------------------ .../xgbe_oe/0/src/intel/afifo_256x80_0.vhd | 211 ----------------- generic_ip/xgbe_oe/0/src/intel/asym_ram_0.vhd | 204 ----------------- generic_ip/xgbe_oe/0/src/intel/sfifo_0.vhd | 201 ---------------- .../xgbe_oe/0/src/rx_packet_filter_0.vhd | 52 +++-- .../xgbe_oe/0/src/rx_packet_split_0.vhd | 53 +++-- generic_ip/xgbe_oe/0/src/tcp_tpc_0.vhd | 107 --------- generic_ip/xgbe_oe/0/src/tcp_tpg_0.vhd | 170 -------------- .../xgbe_oe/0/src/tx_packet_combine_0.vhd | 28 +-- 15 files changed, 141 insertions(+), 1269 deletions(-) delete mode 100644 generic_ip/xgbe_oe/0/src/PRN_gen_0.vhd delete mode 100644 generic_ip/xgbe_oe/0/src/intel/afifo_2048x10_0.vhd delete mode 100644 generic_ip/xgbe_oe/0/src/intel/afifo_256x80_0.vhd delete mode 100644 generic_ip/xgbe_oe/0/src/intel/asym_ram_0.vhd delete mode 100644 generic_ip/xgbe_oe/0/src/intel/sfifo_0.vhd delete mode 100644 generic_ip/xgbe_oe/0/src/tcp_tpc_0.vhd delete mode 100644 generic_ip/xgbe_oe/0/src/tcp_tpg_0.vhd diff --git a/generic_ip/common/0/src/altera/alt_async_fifo.vhd b/generic_ip/common/0/src/altera/alt_async_fifo.vhd index 75d1899..9e0c00d 100644 --- a/generic_ip/common/0/src/altera/alt_async_fifo.vhd +++ b/generic_ip/common/0/src/altera/alt_async_fifo.vhd @@ -1,7 +1,7 @@ -- megafunction wizard: %FIFO% -- GENERATION: STANDARD -- VERSION: WM1.0 --- MODULE: dcfifo +-- MODULE: dcfifo -- ============================================================ -- File Name: alt_async_fifo.vhd @@ -19,12 +19,12 @@ --Copyright (C) 2018 Intel Corporation. All rights reserved. ---Your use of Intel Corporation's design tools, logic functions ---and other software and tools, and its AMPP partner logic ---functions, and any output files from any of the foregoing ---(including device programming or simulation files), and any ---associated documentation or information are expressly subject ---to the terms and conditions of the Intel Program License +--Your use of Intel Corporation's design tools, logic functions +--and other software and tools, and its AMPP partner logic +--functions, and any output files from any of the foregoing +--(including device programming or simulation files), and any +--associated documentation or information are expressly subject +--to the terms and conditions of the Intel Program License --Subscription Agreement, the Intel Quartus Prime License Agreement, --the Intel FPGA IP License Agreement, or other applicable license --agreement, including, without limitation, that your use is for @@ -46,19 +46,23 @@ entity alt_async_fifo is DEPTH : natural range 2 to 131072 := 64; DEVICE_FAMILY : string := "Cyclone V" ; -- "Cyclone 10 LP" SHOWAHEAD : string := "ON"; -- "OFF" - CHECKING : string := "ON" -- "OFF" + CHECKING : string := "ON"; -- "OFF" + SYNC_CLR : string := "OFF" -- "ON" ); port ( + clr : in std_logic := '0'; wrclk : in std_logic ; wrreq : in std_logic ; wrdata : in std_logic_vector (DATA_WIDTH-1 downto 0); wrfull : out std_logic ; - + wrusedw : out std_logic_vector (log2(DEPTH)-1 downto 0); + rdclk : in std_logic ; rdreq : in std_logic ; rddata : out std_logic_vector (DATA_WIDTH-1 downto 0); - rdempty : out std_logic + rdempty : out std_logic ; + rdusedw : out std_logic_vector (log2(DEPTH)-1 downto 0) ); end alt_async_fifo; @@ -68,6 +72,8 @@ architecture syn of alt_async_fifo is signal sub_wire0 : std_logic_vector (DATA_WIDTH-1 downto 0); signal sub_wire1 : std_logic ; signal sub_wire2 : std_logic ; + signal sub_wire3 : std_logic_vector (log2(DEPTH)-1 downto 0); + signal sub_wire4 : std_logic_vector (log2(DEPTH)-1 downto 0); component dcfifo generic ( @@ -81,9 +87,12 @@ architecture syn of alt_async_fifo is rdsync_delaypipe : natural; underflow_checking : string; use_eab : string; + read_aclr_synch : string; + write_aclr_synch : string; wrsync_delaypipe : natural ); port ( + aclr : in std_logic ; data : in std_logic_vector (DATA_WIDTH-1 downto 0); rdclk : in std_logic ; rdreq : in std_logic ; @@ -91,14 +100,18 @@ architecture syn of alt_async_fifo is wrreq : in std_logic ; q : out std_logic_vector (DATA_WIDTH-1 downto 0); rdempty : out std_logic ; - wrfull : out std_logic + wrfull : out std_logic ; + wrusedw : out std_logic_vector(log2(DEPTH)-1 downto 0); + rdusedw : out std_logic_vector(log2(DEPTH)-1 downto 0) ); end component; begin - rddata <= sub_wire0(DATA_WIDTH-1 downto 0); + rddata <= sub_wire0; rdempty <= sub_wire1; wrfull <= sub_wire2; + wrusedw <= sub_wire3; + rdusedw <= sub_wire4; dcfifo_component : dcfifo generic map ( @@ -110,11 +123,14 @@ begin lpm_widthu => log2(DEPTH), overflow_checking => CHECKING, underflow_checking => CHECKING, + read_aclr_synch => SYNC_CLR, + write_aclr_synch => SYNC_CLR, use_eab => "ON", rdsync_delaypipe => 4, wrsync_delaypipe => 4 ) port map ( + aclr => clr, data => wrdata, rdclk => rdclk, rdreq => rdreq, @@ -122,7 +138,9 @@ begin wrreq => wrreq, q => sub_wire0, rdempty => sub_wire1, - wrfull => sub_wire2 + wrfull => sub_wire2, + wrusedw => sub_wire3, + rdusedw => sub_wire4 ); end syn; diff --git a/generic_ip/third_party_ip/transconfig/transconfig.qip b/generic_ip/third_party_ip/transconfig/transconfig.qip index 58243cf..bb22b81 100644 --- a/generic_ip/third_party_ip/transconfig/transconfig.qip +++ b/generic_ip/third_party_ip/transconfig/transconfig.qip @@ -31,7 +31,7 @@ set_global_assignment -entity "alt_xcvr_reconfig" -library "transconfig" -name I set_global_assignment -entity "alt_xcvr_reconfig" -library "transconfig" -name IP_COMPONENT_PARAMETER "Z3VpX2VuYWJsZV9wbGw=::MA==::RW5hYmxlIFBMTCByZWNvbmZpZ3VyYXRpb24gc3VwcG9ydCBibG9jaw==" set_global_assignment -entity "alt_xcvr_reconfig" -library "transconfig" -name IP_COMPONENT_PARAMETER "Z3VpX2NhbF9zdGF0dXNfcG9ydA==::ZmFsc2U=::Q3JlYXRlIG9wdGlvbmFsIGNhbGlicmF0aW9uIHN0YXR1cyBwb3J0cw==" -set_global_assignment -library "transconfig" -name VHDL_FILE [file join $::quartus(qip_path) "transconfig.vhd"] +set_global_assignment -library "work" -name VHDL_FILE [file join $::quartus(qip_path) "transconfig.vhd"] set_global_assignment -library "transconfig" -name SYSTEMVERILOG_FILE [file join $::quartus(qip_path) "transconfig/altera_xcvr_functions.sv"] set_global_assignment -library "transconfig" -name SYSTEMVERILOG_FILE [file join $::quartus(qip_path) "transconfig/av_xcvr_h.sv"] set_global_assignment -library "transconfig" -name SYSTEMVERILOG_FILE [file join $::quartus(qip_path) "transconfig/alt_xcvr_resync.sv"] diff --git a/generic_ip/third_party_ip/xaui_phy_itf/src/xaui_phy_itf.qip b/generic_ip/third_party_ip/xaui_phy_itf/src/xaui_phy_itf.qip index d81a2f6..baa27ea 100644 --- a/generic_ip/third_party_ip/xaui_phy_itf/src/xaui_phy_itf.qip +++ b/generic_ip/third_party_ip/xaui_phy_itf/src/xaui_phy_itf.qip @@ -47,7 +47,7 @@ set_global_assignment -entity "altera_xcvr_xaui" -library "xaui_phy_itf" -name I set_global_assignment -entity "altera_xcvr_xaui" -library "xaui_phy_itf" -name IP_COMPONENT_PARAMETER "bWdtdF9jbGtfaW5faHo=::MTUwMDAwMDAw::bWdtdF9jbGtfaW5faHo=" set_global_assignment -entity "altera_xcvr_xaui" -library "xaui_phy_itf" -name IP_COMPONENT_PARAMETER "bWdtdF9jbGtfaW5fbWh6::MTUw::bWdtdF9jbGtfaW5fbWh6" -set_global_assignment -library "xaui_phy_itf" -name VHDL_FILE [file join $::quartus(qip_path) "xaui_phy_itf.vhd"] +set_global_assignment -library "work" -name VHDL_FILE [file join $::quartus(qip_path) "xaui_phy_itf.vhd"] set_global_assignment -library "xaui_phy_itf" -name SYSTEMVERILOG_FILE [file join $::quartus(qip_path) "xaui_phy_itf/altera_xcvr_functions.sv"] set_global_assignment -library "xaui_phy_itf" -name SYSTEMVERILOG_FILE [file join $::quartus(qip_path) "xaui_phy_itf/alt_pma_functions.sv"] set_global_assignment -library "xaui_phy_itf" -name SYSTEMVERILOG_FILE [file join $::quartus(qip_path) "xaui_phy_itf/altera_xcvr_xaui.sv"] diff --git a/generic_ip/xgbe_oe/0/src/PRN_gen_0.vhd b/generic_ip/xgbe_oe/0/src/PRN_gen_0.vhd deleted file mode 100644 index 5953207..0000000 --- a/generic_ip/xgbe_oe/0/src/PRN_gen_0.vhd +++ /dev/null @@ -1,69 +0,0 @@ -------------------------------------------------------------------------------- --- Title : PRN_gen_0 -------------------------------------------------------------------------------- --- File : PRN_gen_0.vhd --- Author : Gianmarco Girau --- Company : On my own --- Target : Generic (simulation), Generic (synthesis) --- Dependency : none -------------------------------------------------------------------------------- --- Description: PRN generator based on a 32-bit LFSR with maximum length, --- modified for removing the absorbing state. -------------------------------------------------------------------------------- --- Last update: 2015-08-17 -------------------------------------------------------------------------------- --- Revisions : --- Date Version Author Description --- 2010-09-13 1.0 ggm Created -------------------------------------------------------------------------------- - -------------------------------------------------------------------------------- --- The LFSR period is about 7.16 sec at 100MHz. --- For different LFSR lengths please consult: --- Xilinx XAPP052, 7th July 1996, "Efficient Shift Registers, LFSR Counters, --- and Long Pseudo-Random Sequence Generators", by Peter Alfke. -------------------------------------------------------------------------------- - -library ieee; -use ieee.std_logic_1164.all; - -entity PRN_gen_0 is - generic( - seed : std_logic_vector(31 downto 0) := X"FFFFFFFF"); - port( - rstN : in std_logic; - clk : in std_logic; - PRN_rst : in std_logic; - PRN_upd : in std_logic; - PRN_reg : out std_logic_vector(31 downto 0); - PRN_out : out std_logic); -end PRN_gen_0; - -architecture RTL of PRN_gen_0 is - - signal LFSR_reg : std_logic_vector(31 downto 0); - -begin - - pLFSR : process(rstN, clk) - begin - if(rstN = '0') then - LFSR_reg <= seed; - elsif(clk = '1' and clk'event) then - if(PRN_rst = '1') then - LFSR_reg <= seed; - elsif(PRN_upd = '1' and LFSR_reg = X"00000000") then - LFSR_reg <= X"FFFFFFFF"; - elsif(PRN_upd = '1') then - LFSR_reg <= LFSR_reg(30 downto 0) & (LFSR_reg(30) xor LFSR_reg(27)); - end if; - end if; - end process pLFSR; - - PRN_reg <= LFSR_reg; - PRN_out <= LFSR_reg(31); - -end RTL; - - - diff --git a/generic_ip/xgbe_oe/0/src/gmii_rx_bridge_0.vhd b/generic_ip/xgbe_oe/0/src/gmii_rx_bridge_0.vhd index 39ea28b..bc28df9 100644 --- a/generic_ip/xgbe_oe/0/src/gmii_rx_bridge_0.vhd +++ b/generic_ip/xgbe_oe/0/src/gmii_rx_bridge_0.vhd @@ -68,19 +68,24 @@ begin ----------------------------------------------------------------------------- -- Input Packet Buffer ----------------------------------------------------------------------------- - - iDATA_BUFFER : entity work.afifo_256x80_0 + + iDATA_BUFFER : entity work.alt_async_fifo + generic map ( + DATA_WIDTH => 80, + DEPTH => 256, + SHOWAHEAD => "OFF" + ) port map ( - aclr => init, + clr => init, wrclk => clk, wrreq => fifo_we, - data => fifo_d, + wrdata => fifo_d, rdclk => gmii_clk, rdreq => fifo_re, rdempty => fifo_empty, - wrfull => open, - q => fifo_q, - wrusedw => fifo_usew); + rddata => fifo_q, + wrusedw => fifo_usew + ); fifo_d <= 6x"0" & rx_eof & rx_sof & rx_data_valid & rx_data; diff --git a/generic_ip/xgbe_oe/0/src/gmii_tx_bridge_0.vhd b/generic_ip/xgbe_oe/0/src/gmii_tx_bridge_0.vhd index 528d9a3..9f809e8 100644 --- a/generic_ip/xgbe_oe/0/src/gmii_tx_bridge_0.vhd +++ b/generic_ip/xgbe_oe/0/src/gmii_tx_bridge_0.vhd @@ -7,7 +7,7 @@ -- Company : Global Inkjet Systems -- Created : 2020-07-02 -- Last update: 2020-08-06 --- SVN ID : Git +-- SVN ID : Git -- Standard : VHDL'2008 ------------------------------------------------------------------------------- -- Description: @@ -15,7 +15,7 @@ -- at 125 MHz), and converts to a 64-bits at 156.25 MHz rate, with preamble, -- SFD and CRC checksum stripped from the packet, so that the packet can be -- transmitted by the 10G MAC. an internal state machine identifies the packet --- boundaries by looking for a CRC-32 zero checksum. +-- boundaries by looking for a CRC-32 zero checksum. ------------------------------------------------------------------------------- -- altera vhdl_input_version vhdl_2008 @@ -81,32 +81,36 @@ architecture rtl of gmii_tx_bridge_0 is signal crc32_dd, crc32_ddd : std_logic_vector(31 downto 0); signal rx_crc : std_logic_vector(31 downto 0); signal word : std_logic_vector(95 downto 0); - + begin ----------------------------------------------------------------------------- -- Input Packet Buffer ----------------------------------------------------------------------------- - iDATA_BUFFER: entity work.afifo_2048x10_0 + iDATA_BUFFER: entity work.alt_async_fifo + generic map ( + DATA_WIDTH => 10, + DEPTH => 2048, + SHOWAHEAD => "OFF" + ) port map ( - aclr => init, - data => fifo_d, + clr => init, + wrdata => fifo_d, rdclk => clk, rdreq => fifo_re, wrclk => gmii_tx_clk, wrreq => fifo_we, - q => fifo_q, + rddata => fifo_q, rdempty => fifo_empty, rdusedw => buffer_level, wrfull => fifo_full); - fifo_d <= gmii_txer & gmii_txen & gmii_txd; -- bytes with gmii_txer are still written into the FIFO and declared as -- valid, under the assumption that they are still used by the HPS-EMAC to -- compute the CRC. Doing differently may cause the full packet to be dropped - -- because the CRC is not detected. + -- because the CRC is not detected. fifo_we <= (gmii_txen or gmii_txer) and not fifo_full; -- Overflow flag management @@ -138,7 +142,7 @@ begin buffer_ovfl_flag <= '0'; elsif(buffer_ovfl = '1') then buffer_ovfl_flag <= '1'; - end if; + end if; end if; end process pBUFFER_OVFL; @@ -217,7 +221,7 @@ begin -- packet detection combinational logic fifo_re <= fifo_read and not fifo_empty; - + inc_frame_len_cnt <= fifo_re; --word_egress <= '1' when byte_valid(0) = '1' or eof = '1' else '0'; @@ -242,7 +246,7 @@ begin tx_sof <= sof and word_egress; -- to be fixed later tx_eof <= eof and word_egress; -- to be fixed later tx_rts <= word_egress; - + pFSM_SR : process(clk) begin if(clk = '1' and clk'event) then @@ -276,7 +280,7 @@ begin fifo_read <= '1'; fsm_state_next <= S_CHECK_PREAMBLE; end if; - + when S_CHECK_PREAMBLE => fifo_read <= '1'; if(is_preamble = '0') then @@ -323,10 +327,10 @@ begin when S_DETECTED_EOF => fsm_state_next <= S_IDLE; - + when others => null; end case; - end process pFSM_CL; + end process pFSM_CL; end architecture rtl; diff --git a/generic_ip/xgbe_oe/0/src/intel/afifo_2048x10_0.vhd b/generic_ip/xgbe_oe/0/src/intel/afifo_2048x10_0.vhd deleted file mode 100644 index 5819351..0000000 --- a/generic_ip/xgbe_oe/0/src/intel/afifo_2048x10_0.vhd +++ /dev/null @@ -1,214 +0,0 @@ --- megafunction wizard: %FIFO% --- GENERATION: STANDARD --- VERSION: WM1.0 --- MODULE: dcfifo - --- ============================================================ --- File Name: afifo_2048x10_0.vhd --- Megafunction Name(s): --- dcfifo --- --- Simulation Library Files(s): --- altera_mf --- ============================================================ --- ************************************************************ --- THIS IS A WIZARD-GENERATED FILE. DO NOT EDIT THIS FILE! --- --- 18.1.0 Build 625 09/12/2018 SJ Standard Edition --- ************************************************************ - - ---Copyright (C) 2018 Intel Corporation. All rights reserved. ---Your use of Intel Corporation's design tools, logic functions ---and other software and tools, and its AMPP partner logic ---functions, and any output files from any of the foregoing ---(including device programming or simulation files), and any ---associated documentation or information are expressly subject ---to the terms and conditions of the Intel Program License ---Subscription Agreement, the Intel Quartus Prime License Agreement, ---the Intel FPGA IP License Agreement, or other applicable license ---agreement, including, without limitation, that your use is for ---the sole purpose of programming logic devices manufactured by ---Intel and sold by Intel or its authorized distributors. Please ---refer to the applicable agreement for further details. - - -LIBRARY ieee; -USE ieee.std_logic_1164.all; - -LIBRARY altera_mf; -USE altera_mf.all; - -ENTITY afifo_2048x10_0 IS - PORT - ( - aclr : IN STD_LOGIC := '0'; - data : IN STD_LOGIC_VECTOR (9 DOWNTO 0); - rdclk : IN STD_LOGIC ; - rdreq : IN STD_LOGIC ; - wrclk : IN STD_LOGIC ; - wrreq : IN STD_LOGIC ; - q : OUT STD_LOGIC_VECTOR (9 DOWNTO 0); - rdempty : OUT STD_LOGIC ; - rdusedw : OUT STD_LOGIC_VECTOR (10 DOWNTO 0); - wrfull : OUT STD_LOGIC - ); -END afifo_2048x10_0; - - -ARCHITECTURE SYN OF afifo_2048x10_0 IS - - SIGNAL sub_wire0 : STD_LOGIC_VECTOR (9 DOWNTO 0); - SIGNAL sub_wire1 : STD_LOGIC ; - SIGNAL sub_wire2 : STD_LOGIC_VECTOR (10 DOWNTO 0); - SIGNAL sub_wire3 : STD_LOGIC ; - - - - COMPONENT dcfifo - GENERIC ( - intended_device_family : STRING; - lpm_hint : STRING; - lpm_numwords : NATURAL; - lpm_showahead : STRING; - lpm_type : STRING; - lpm_width : NATURAL; - lpm_widthu : NATURAL; - overflow_checking : STRING; - rdsync_delaypipe : NATURAL; - read_aclr_synch : STRING; - underflow_checking : STRING; - use_eab : STRING; - write_aclr_synch : STRING; - wrsync_delaypipe : NATURAL - ); - PORT ( - aclr : IN STD_LOGIC ; - data : IN STD_LOGIC_VECTOR (9 DOWNTO 0); - rdclk : IN STD_LOGIC ; - rdreq : IN STD_LOGIC ; - wrclk : IN STD_LOGIC ; - wrreq : IN STD_LOGIC ; - q : OUT STD_LOGIC_VECTOR (9 DOWNTO 0); - rdempty : OUT STD_LOGIC ; - rdusedw : OUT STD_LOGIC_VECTOR (10 DOWNTO 0); - wrfull : OUT STD_LOGIC - ); - END COMPONENT; - -BEGIN - q <= sub_wire0(9 DOWNTO 0); - rdempty <= sub_wire1; - rdusedw <= sub_wire2(10 DOWNTO 0); - wrfull <= sub_wire3; - - dcfifo_component : dcfifo - GENERIC MAP ( - intended_device_family => "Cyclone V", - lpm_hint => "RAM_BLOCK_TYPE=M10K", - lpm_numwords => 2048, - lpm_showahead => "OFF", - lpm_type => "dcfifo", - lpm_width => 10, - lpm_widthu => 11, - overflow_checking => "ON", - rdsync_delaypipe => 4, - read_aclr_synch => "OFF", - underflow_checking => "ON", - use_eab => "ON", - write_aclr_synch => "OFF", - wrsync_delaypipe => 4 - ) - PORT MAP ( - aclr => aclr, - data => data, - rdclk => rdclk, - rdreq => rdreq, - wrclk => wrclk, - wrreq => wrreq, - q => sub_wire0, - rdempty => sub_wire1, - rdusedw => sub_wire2, - wrfull => sub_wire3 - ); - - - -END SYN; - --- ============================================================ --- CNX file retrieval info --- ============================================================ --- Retrieval info: PRIVATE: AlmostEmpty NUMERIC "0" --- Retrieval info: PRIVATE: AlmostEmptyThr NUMERIC "-1" --- Retrieval info: PRIVATE: AlmostFull NUMERIC "0" --- Retrieval info: PRIVATE: AlmostFullThr NUMERIC "-1" --- Retrieval info: PRIVATE: CLOCKS_ARE_SYNCHRONIZED NUMERIC "0" --- Retrieval info: PRIVATE: Clock NUMERIC "4" --- Retrieval info: PRIVATE: Depth NUMERIC "2048" --- Retrieval info: PRIVATE: Empty NUMERIC "1" --- Retrieval info: PRIVATE: Full NUMERIC "1" --- Retrieval info: PRIVATE: INTENDED_DEVICE_FAMILY STRING "Cyclone V" --- Retrieval info: PRIVATE: LE_BasedFIFO NUMERIC "0" --- Retrieval info: PRIVATE: LegacyRREQ NUMERIC "1" --- Retrieval info: PRIVATE: MAX_DEPTH_BY_9 NUMERIC "0" --- Retrieval info: PRIVATE: OVERFLOW_CHECKING NUMERIC "0" --- Retrieval info: PRIVATE: Optimize NUMERIC "0" --- Retrieval info: PRIVATE: RAM_BLOCK_TYPE NUMERIC "2" --- Retrieval info: PRIVATE: SYNTH_WRAPPER_GEN_POSTFIX STRING "0" --- Retrieval info: PRIVATE: UNDERFLOW_CHECKING NUMERIC "0" --- Retrieval info: PRIVATE: UsedW NUMERIC "1" --- Retrieval info: PRIVATE: Width NUMERIC "10" --- Retrieval info: PRIVATE: dc_aclr NUMERIC "1" --- Retrieval info: PRIVATE: diff_widths NUMERIC "0" --- Retrieval info: PRIVATE: msb_usedw NUMERIC "0" --- Retrieval info: PRIVATE: output_width NUMERIC "10" --- Retrieval info: PRIVATE: rsEmpty NUMERIC "1" --- Retrieval info: PRIVATE: rsFull NUMERIC "0" --- Retrieval info: PRIVATE: rsUsedW NUMERIC "1" --- Retrieval info: PRIVATE: sc_aclr NUMERIC "0" --- Retrieval info: PRIVATE: sc_sclr NUMERIC "0" --- Retrieval info: PRIVATE: wsEmpty NUMERIC "0" --- Retrieval info: PRIVATE: wsFull NUMERIC "1" --- Retrieval info: PRIVATE: wsUsedW NUMERIC "0" --- Retrieval info: LIBRARY: altera_mf altera_mf.altera_mf_components.all --- Retrieval info: CONSTANT: INTENDED_DEVICE_FAMILY STRING "Cyclone V" --- Retrieval info: CONSTANT: LPM_HINT STRING "RAM_BLOCK_TYPE=M10K" --- Retrieval info: CONSTANT: LPM_NUMWORDS NUMERIC "2048" --- Retrieval info: CONSTANT: LPM_SHOWAHEAD STRING "OFF" --- Retrieval info: CONSTANT: LPM_TYPE STRING "dcfifo" --- Retrieval info: CONSTANT: LPM_WIDTH NUMERIC "10" --- Retrieval info: CONSTANT: LPM_WIDTHU NUMERIC "11" --- Retrieval info: CONSTANT: OVERFLOW_CHECKING STRING "ON" --- Retrieval info: CONSTANT: RDSYNC_DELAYPIPE NUMERIC "4" --- Retrieval info: CONSTANT: READ_ACLR_SYNCH STRING "OFF" --- Retrieval info: CONSTANT: UNDERFLOW_CHECKING STRING "ON" --- Retrieval info: CONSTANT: USE_EAB STRING "ON" --- Retrieval info: CONSTANT: WRITE_ACLR_SYNCH STRING "OFF" --- Retrieval info: CONSTANT: WRSYNC_DELAYPIPE NUMERIC "4" --- Retrieval info: USED_PORT: aclr 0 0 0 0 INPUT GND "aclr" --- Retrieval info: USED_PORT: data 0 0 10 0 INPUT NODEFVAL "data[9..0]" --- Retrieval info: USED_PORT: q 0 0 10 0 OUTPUT NODEFVAL "q[9..0]" --- Retrieval info: USED_PORT: rdclk 0 0 0 0 INPUT NODEFVAL "rdclk" --- Retrieval info: USED_PORT: rdempty 0 0 0 0 OUTPUT NODEFVAL "rdempty" --- Retrieval info: USED_PORT: rdreq 0 0 0 0 INPUT NODEFVAL "rdreq" --- Retrieval info: USED_PORT: rdusedw 0 0 11 0 OUTPUT NODEFVAL "rdusedw[10..0]" --- Retrieval info: USED_PORT: wrclk 0 0 0 0 INPUT NODEFVAL "wrclk" --- Retrieval info: USED_PORT: wrfull 0 0 0 0 OUTPUT NODEFVAL "wrfull" --- Retrieval info: USED_PORT: wrreq 0 0 0 0 INPUT NODEFVAL "wrreq" --- Retrieval info: CONNECT: @aclr 0 0 0 0 aclr 0 0 0 0 --- Retrieval info: CONNECT: @data 0 0 10 0 data 0 0 10 0 --- Retrieval info: CONNECT: @rdclk 0 0 0 0 rdclk 0 0 0 0 --- Retrieval info: CONNECT: @rdreq 0 0 0 0 rdreq 0 0 0 0 --- Retrieval info: CONNECT: @wrclk 0 0 0 0 wrclk 0 0 0 0 --- Retrieval info: CONNECT: @wrreq 0 0 0 0 wrreq 0 0 0 0 --- Retrieval info: CONNECT: q 0 0 10 0 @q 0 0 10 0 --- Retrieval info: CONNECT: rdempty 0 0 0 0 @rdempty 0 0 0 0 --- Retrieval info: CONNECT: rdusedw 0 0 11 0 @rdusedw 0 0 11 0 --- Retrieval info: CONNECT: wrfull 0 0 0 0 @wrfull 0 0 0 0 --- Retrieval info: GEN_FILE: TYPE_NORMAL afifo_2048x10_0.vhd TRUE --- Retrieval info: GEN_FILE: TYPE_NORMAL afifo_2048x10_0.inc FALSE --- Retrieval info: GEN_FILE: TYPE_NORMAL afifo_2048x10_0.cmp FALSE --- Retrieval info: GEN_FILE: TYPE_NORMAL afifo_2048x10_0.bsf FALSE --- Retrieval info: GEN_FILE: TYPE_NORMAL afifo_2048x10_0_inst.vhd FALSE --- Retrieval info: LIB_FILE: altera_mf diff --git a/generic_ip/xgbe_oe/0/src/intel/afifo_256x80_0.vhd b/generic_ip/xgbe_oe/0/src/intel/afifo_256x80_0.vhd deleted file mode 100644 index f11f6eb..0000000 --- a/generic_ip/xgbe_oe/0/src/intel/afifo_256x80_0.vhd +++ /dev/null @@ -1,211 +0,0 @@ --- megafunction wizard: %FIFO% --- GENERATION: STANDARD --- VERSION: WM1.0 --- MODULE: dcfifo - --- ============================================================ --- File Name: afifo_256x80_0.vhd --- Megafunction Name(s): --- dcfifo --- --- Simulation Library Files(s): --- altera_mf --- ============================================================ --- ************************************************************ --- THIS IS A WIZARD-GENERATED FILE. DO NOT EDIT THIS FILE! --- --- 18.1.0 Build 625 09/12/2018 SJ Standard Edition --- ************************************************************ - - ---Copyright (C) 2018 Intel Corporation. All rights reserved. ---Your use of Intel Corporation's design tools, logic functions ---and other software and tools, and its AMPP partner logic ---functions, and any output files from any of the foregoing ---(including device programming or simulation files), and any ---associated documentation or information are expressly subject ---to the terms and conditions of the Intel Program License ---Subscription Agreement, the Intel Quartus Prime License Agreement, ---the Intel FPGA IP License Agreement, or other applicable license ---agreement, including, without limitation, that your use is for ---the sole purpose of programming logic devices manufactured by ---Intel and sold by Intel or its authorized distributors. Please ---refer to the applicable agreement for further details. - - -LIBRARY ieee; -USE ieee.std_logic_1164.all; - -LIBRARY altera_mf; -USE altera_mf.all; - -ENTITY afifo_256x80_0 IS - PORT - ( - aclr : IN STD_LOGIC := '0'; - data : IN STD_LOGIC_VECTOR (79 DOWNTO 0); - rdclk : IN STD_LOGIC ; - rdreq : IN STD_LOGIC ; - wrclk : IN STD_LOGIC ; - wrreq : IN STD_LOGIC ; - q : OUT STD_LOGIC_VECTOR (79 DOWNTO 0); - rdempty : OUT STD_LOGIC ; - wrfull : OUT STD_LOGIC ; - wrusedw : OUT STD_LOGIC_VECTOR (7 DOWNTO 0) - ); -END afifo_256x80_0; - - -ARCHITECTURE SYN OF afifo_256x80_0 IS - - SIGNAL sub_wire0 : STD_LOGIC_VECTOR (79 DOWNTO 0); - SIGNAL sub_wire1 : STD_LOGIC ; - SIGNAL sub_wire2 : STD_LOGIC ; - SIGNAL sub_wire3 : STD_LOGIC_VECTOR (7 DOWNTO 0); - - - - COMPONENT dcfifo - GENERIC ( - intended_device_family : STRING; - lpm_numwords : NATURAL; - lpm_showahead : STRING; - lpm_type : STRING; - lpm_width : NATURAL; - lpm_widthu : NATURAL; - overflow_checking : STRING; - rdsync_delaypipe : NATURAL; - read_aclr_synch : STRING; - underflow_checking : STRING; - use_eab : STRING; - write_aclr_synch : STRING; - wrsync_delaypipe : NATURAL - ); - PORT ( - aclr : IN STD_LOGIC ; - data : IN STD_LOGIC_VECTOR (79 DOWNTO 0); - rdclk : IN STD_LOGIC ; - rdreq : IN STD_LOGIC ; - wrclk : IN STD_LOGIC ; - wrreq : IN STD_LOGIC ; - q : OUT STD_LOGIC_VECTOR (79 DOWNTO 0); - rdempty : OUT STD_LOGIC ; - wrfull : OUT STD_LOGIC ; - wrusedw : OUT STD_LOGIC_VECTOR (7 DOWNTO 0) - ); - END COMPONENT; - -BEGIN - q <= sub_wire0(79 DOWNTO 0); - rdempty <= sub_wire1; - wrfull <= sub_wire2; - wrusedw <= sub_wire3(7 DOWNTO 0); - - dcfifo_component : dcfifo - GENERIC MAP ( - intended_device_family => "Cyclone V", - lpm_numwords => 256, - lpm_showahead => "OFF", - lpm_type => "dcfifo", - lpm_width => 80, - lpm_widthu => 8, - overflow_checking => "ON", - rdsync_delaypipe => 4, - read_aclr_synch => "OFF", - underflow_checking => "ON", - use_eab => "ON", - write_aclr_synch => "OFF", - wrsync_delaypipe => 4 - ) - PORT MAP ( - aclr => aclr, - data => data, - rdclk => rdclk, - rdreq => rdreq, - wrclk => wrclk, - wrreq => wrreq, - q => sub_wire0, - rdempty => sub_wire1, - wrfull => sub_wire2, - wrusedw => sub_wire3 - ); - - - -END SYN; - --- ============================================================ --- CNX file retrieval info --- ============================================================ --- Retrieval info: PRIVATE: AlmostEmpty NUMERIC "0" --- Retrieval info: PRIVATE: AlmostEmptyThr NUMERIC "-1" --- Retrieval info: PRIVATE: AlmostFull NUMERIC "0" --- Retrieval info: PRIVATE: AlmostFullThr NUMERIC "-1" --- Retrieval info: PRIVATE: CLOCKS_ARE_SYNCHRONIZED NUMERIC "0" --- Retrieval info: PRIVATE: Clock NUMERIC "4" --- Retrieval info: PRIVATE: Depth NUMERIC "256" --- Retrieval info: PRIVATE: Empty NUMERIC "1" --- Retrieval info: PRIVATE: Full NUMERIC "1" --- Retrieval info: PRIVATE: INTENDED_DEVICE_FAMILY STRING "Cyclone V" --- Retrieval info: PRIVATE: LE_BasedFIFO NUMERIC "0" --- Retrieval info: PRIVATE: LegacyRREQ NUMERIC "1" --- Retrieval info: PRIVATE: MAX_DEPTH_BY_9 NUMERIC "0" --- Retrieval info: PRIVATE: OVERFLOW_CHECKING NUMERIC "0" --- Retrieval info: PRIVATE: Optimize NUMERIC "0" --- Retrieval info: PRIVATE: RAM_BLOCK_TYPE NUMERIC "0" --- Retrieval info: PRIVATE: SYNTH_WRAPPER_GEN_POSTFIX STRING "0" --- Retrieval info: PRIVATE: UNDERFLOW_CHECKING NUMERIC "0" --- Retrieval info: PRIVATE: UsedW NUMERIC "1" --- Retrieval info: PRIVATE: Width NUMERIC "80" --- Retrieval info: PRIVATE: dc_aclr NUMERIC "1" --- Retrieval info: PRIVATE: diff_widths NUMERIC "0" --- Retrieval info: PRIVATE: msb_usedw NUMERIC "0" --- Retrieval info: PRIVATE: output_width NUMERIC "80" --- Retrieval info: PRIVATE: rsEmpty NUMERIC "1" --- Retrieval info: PRIVATE: rsFull NUMERIC "0" --- Retrieval info: PRIVATE: rsUsedW NUMERIC "0" --- Retrieval info: PRIVATE: sc_aclr NUMERIC "0" --- Retrieval info: PRIVATE: sc_sclr NUMERIC "0" --- Retrieval info: PRIVATE: wsEmpty NUMERIC "0" --- Retrieval info: PRIVATE: wsFull NUMERIC "1" --- Retrieval info: PRIVATE: wsUsedW NUMERIC "1" --- Retrieval info: LIBRARY: altera_mf altera_mf.altera_mf_components.all --- Retrieval info: CONSTANT: INTENDED_DEVICE_FAMILY STRING "Cyclone V" --- Retrieval info: CONSTANT: LPM_NUMWORDS NUMERIC "256" --- Retrieval info: CONSTANT: LPM_SHOWAHEAD STRING "OFF" --- Retrieval info: CONSTANT: LPM_TYPE STRING "dcfifo" --- Retrieval info: CONSTANT: LPM_WIDTH NUMERIC "80" --- Retrieval info: CONSTANT: LPM_WIDTHU NUMERIC "8" --- Retrieval info: CONSTANT: OVERFLOW_CHECKING STRING "ON" --- Retrieval info: CONSTANT: RDSYNC_DELAYPIPE NUMERIC "4" --- Retrieval info: CONSTANT: READ_ACLR_SYNCH STRING "OFF" --- Retrieval info: CONSTANT: UNDERFLOW_CHECKING STRING "ON" --- Retrieval info: CONSTANT: USE_EAB STRING "ON" --- Retrieval info: CONSTANT: WRITE_ACLR_SYNCH STRING "OFF" --- Retrieval info: CONSTANT: WRSYNC_DELAYPIPE NUMERIC "4" --- Retrieval info: USED_PORT: aclr 0 0 0 0 INPUT GND "aclr" --- Retrieval info: USED_PORT: data 0 0 80 0 INPUT NODEFVAL "data[79..0]" --- Retrieval info: USED_PORT: q 0 0 80 0 OUTPUT NODEFVAL "q[79..0]" --- Retrieval info: USED_PORT: rdclk 0 0 0 0 INPUT NODEFVAL "rdclk" --- Retrieval info: USED_PORT: rdempty 0 0 0 0 OUTPUT NODEFVAL "rdempty" --- Retrieval info: USED_PORT: rdreq 0 0 0 0 INPUT NODEFVAL "rdreq" --- Retrieval info: USED_PORT: wrclk 0 0 0 0 INPUT NODEFVAL "wrclk" --- Retrieval info: USED_PORT: wrfull 0 0 0 0 OUTPUT NODEFVAL "wrfull" --- Retrieval info: USED_PORT: wrreq 0 0 0 0 INPUT NODEFVAL "wrreq" --- Retrieval info: USED_PORT: wrusedw 0 0 8 0 OUTPUT NODEFVAL "wrusedw[7..0]" --- Retrieval info: CONNECT: @aclr 0 0 0 0 aclr 0 0 0 0 --- Retrieval info: CONNECT: @data 0 0 80 0 data 0 0 80 0 --- Retrieval info: CONNECT: @rdclk 0 0 0 0 rdclk 0 0 0 0 --- Retrieval info: CONNECT: @rdreq 0 0 0 0 rdreq 0 0 0 0 --- Retrieval info: CONNECT: @wrclk 0 0 0 0 wrclk 0 0 0 0 --- Retrieval info: CONNECT: @wrreq 0 0 0 0 wrreq 0 0 0 0 --- Retrieval info: CONNECT: q 0 0 80 0 @q 0 0 80 0 --- Retrieval info: CONNECT: rdempty 0 0 0 0 @rdempty 0 0 0 0 --- Retrieval info: CONNECT: wrfull 0 0 0 0 @wrfull 0 0 0 0 --- Retrieval info: CONNECT: wrusedw 0 0 8 0 @wrusedw 0 0 8 0 --- Retrieval info: GEN_FILE: TYPE_NORMAL afifo_256x80_0.vhd TRUE --- Retrieval info: GEN_FILE: TYPE_NORMAL afifo_256x80_0.inc FALSE --- Retrieval info: GEN_FILE: TYPE_NORMAL afifo_256x80_0.cmp FALSE --- Retrieval info: GEN_FILE: TYPE_NORMAL afifo_256x80_0.bsf FALSE --- Retrieval info: GEN_FILE: TYPE_NORMAL afifo_256x80_0_inst.vhd FALSE --- Retrieval info: LIB_FILE: altera_mf diff --git a/generic_ip/xgbe_oe/0/src/intel/asym_ram_0.vhd b/generic_ip/xgbe_oe/0/src/intel/asym_ram_0.vhd deleted file mode 100644 index 0dbc47b..0000000 --- a/generic_ip/xgbe_oe/0/src/intel/asym_ram_0.vhd +++ /dev/null @@ -1,204 +0,0 @@ --- megafunction wizard: %RAM: 2-PORT% --- GENERATION: STANDARD --- VERSION: WM1.0 --- MODULE: altsyncram - --- ============================================================ --- File Name: asym_ram_0.vhd --- Megafunction Name(s): --- altsyncram --- --- Simulation Library Files(s): --- altera_mf --- ============================================================ --- ************************************************************ --- THIS IS A WIZARD-GENERATED FILE. DO NOT EDIT THIS FILE! --- --- 18.1.0 Build 625 09/12/2018 SJ Standard Edition --- ************************************************************ - - ---Copyright (C) 2018 Intel Corporation. All rights reserved. ---Your use of Intel Corporation's design tools, logic functions ---and other software and tools, and its AMPP partner logic ---functions, and any output files from any of the foregoing ---(including device programming or simulation files), and any ---associated documentation or information are expressly subject ---to the terms and conditions of the Intel Program License ---Subscription Agreement, the Intel Quartus Prime License Agreement, ---the Intel FPGA IP License Agreement, or other applicable license ---agreement, including, without limitation, that your use is for ---the sole purpose of programming logic devices manufactured by ---Intel and sold by Intel or its authorized distributors. Please ---refer to the applicable agreement for further details. - - -LIBRARY ieee; -USE ieee.std_logic_1164.all; - -LIBRARY altera_mf; -USE altera_mf.altera_mf_components.all; - -ENTITY asym_ram_0 IS - GENERIC ( - WDATAWIDTH : natural range 1 to 1024 := 32; - LOG2WADDRWIDTH : natural range 1 to 1024 := 5; - RDATAWIDTH : natural range 1 to 1024 := 64; - LOG2RADDRWIDTH : natural range 1 to 1024 := 4 - ); - PORT - ( - clock : IN STD_LOGIC := '1'; - data : IN STD_LOGIC_VECTOR (WDATAWIDTH-1 DOWNTO 0); - rdaddress : IN STD_LOGIC_VECTOR (LOG2RADDRWIDTH-1 DOWNTO 0); - wraddress : IN STD_LOGIC_VECTOR (LOG2WADDRWIDTH-1 DOWNTO 0); - wren : IN STD_LOGIC := '0'; - q : OUT STD_LOGIC_VECTOR (RDATAWIDTH-1 DOWNTO 0) - ); -END asym_ram_0; - - -ARCHITECTURE SYN OF asym_ram_0 IS - - SIGNAL sub_wire0 : STD_LOGIC_VECTOR (RDATAWIDTH-1 DOWNTO 0); - -BEGIN - q <= sub_wire0(RDATAWIDTH-1 DOWNTO 0); - - altsyncram_component : altsyncram - GENERIC MAP ( - address_aclr_b => "NONE", - address_reg_b => "CLOCK0", - clock_enable_input_a => "BYPASS", - clock_enable_input_b => "BYPASS", - clock_enable_output_b => "BYPASS", - intended_device_family => "Cyclone V", - lpm_type => "altsyncram", - numwords_a => 2**LOG2WADDRWIDTH, - numwords_b => 2**LOG2RADDRWIDTH, - operation_mode => "DUAL_PORT", - outdata_aclr_b => "NONE", - outdata_reg_b => "UNREGISTERED", - power_up_uninitialized => "FALSE", - ram_block_type => "M10K", - read_during_write_mode_mixed_ports => "DONT_CARE", - widthad_a => LOG2WADDRWIDTH, - widthad_b => LOG2RADDRWIDTH, - width_a => WDATAWIDTH, - width_b => RDATAWIDTH, - width_byteena_a => 1 - ) - PORT MAP ( - address_a => wraddress, - address_b => rdaddress, - clock0 => clock, - data_a => data, - wren_a => wren, - q_b => sub_wire0 - ); - - - -END SYN; - --- ============================================================ --- CNX file retrieval info --- ============================================================ --- Retrieval info: PRIVATE: ADDRESSSTALL_A NUMERIC "0" --- Retrieval info: PRIVATE: ADDRESSSTALL_B NUMERIC "0" --- Retrieval info: PRIVATE: BYTEENA_ACLR_A NUMERIC "0" --- Retrieval info: PRIVATE: BYTEENA_ACLR_B NUMERIC "0" --- Retrieval info: PRIVATE: BYTE_ENABLE_A NUMERIC "0" --- Retrieval info: PRIVATE: BYTE_ENABLE_B NUMERIC "0" --- Retrieval info: PRIVATE: BYTE_SIZE NUMERIC "8" --- Retrieval info: PRIVATE: BlankMemory NUMERIC "1" --- Retrieval info: PRIVATE: CLOCK_ENABLE_INPUT_A NUMERIC "0" --- Retrieval info: PRIVATE: CLOCK_ENABLE_INPUT_B NUMERIC "0" --- Retrieval info: PRIVATE: CLOCK_ENABLE_OUTPUT_A NUMERIC "0" --- Retrieval info: PRIVATE: CLOCK_ENABLE_OUTPUT_B NUMERIC "0" --- Retrieval info: PRIVATE: CLRdata NUMERIC "0" --- Retrieval info: PRIVATE: CLRq NUMERIC "0" --- Retrieval info: PRIVATE: CLRrdaddress NUMERIC "0" --- Retrieval info: PRIVATE: CLRrren NUMERIC "0" --- Retrieval info: PRIVATE: CLRwraddress NUMERIC "0" --- Retrieval info: PRIVATE: CLRwren NUMERIC "0" --- Retrieval info: PRIVATE: Clock NUMERIC "0" --- Retrieval info: PRIVATE: Clock_A NUMERIC "0" --- Retrieval info: PRIVATE: Clock_B NUMERIC "0" --- Retrieval info: PRIVATE: IMPLEMENT_IN_LES NUMERIC "0" --- Retrieval info: PRIVATE: INDATA_ACLR_B NUMERIC "0" --- Retrieval info: PRIVATE: INDATA_REG_B NUMERIC "0" --- Retrieval info: PRIVATE: INIT_FILE_LAYOUT STRING "PORT_B" --- Retrieval info: PRIVATE: INIT_TO_SIM_X NUMERIC "0" --- Retrieval info: PRIVATE: INTENDED_DEVICE_FAMILY STRING "Cyclone V" --- Retrieval info: PRIVATE: JTAG_ENABLED NUMERIC "0" --- Retrieval info: PRIVATE: JTAG_ID STRING "NONE" --- Retrieval info: PRIVATE: MAXIMUM_DEPTH NUMERIC "0" --- Retrieval info: PRIVATE: MEMSIZE NUMERIC "1024" --- Retrieval info: PRIVATE: MEM_IN_BITS NUMERIC "0" --- Retrieval info: PRIVATE: MIFfilename STRING "" --- Retrieval info: PRIVATE: OPERATION_MODE NUMERIC "2" --- Retrieval info: PRIVATE: OUTDATA_ACLR_B NUMERIC "0" --- Retrieval info: PRIVATE: OUTDATA_REG_B NUMERIC "0" --- Retrieval info: PRIVATE: RAM_BLOCK_TYPE NUMERIC "2" --- Retrieval info: PRIVATE: READ_DURING_WRITE_MODE_MIXED_PORTS NUMERIC "2" --- Retrieval info: PRIVATE: READ_DURING_WRITE_MODE_PORT_A NUMERIC "3" --- Retrieval info: PRIVATE: READ_DURING_WRITE_MODE_PORT_B NUMERIC "3" --- Retrieval info: PRIVATE: REGdata NUMERIC "1" --- Retrieval info: PRIVATE: REGq NUMERIC "1" --- Retrieval info: PRIVATE: REGrdaddress NUMERIC "1" --- Retrieval info: PRIVATE: REGrren NUMERIC "1" --- Retrieval info: PRIVATE: REGwraddress NUMERIC "1" --- Retrieval info: PRIVATE: REGwren NUMERIC "1" --- Retrieval info: PRIVATE: SYNTH_WRAPPER_GEN_POSTFIX STRING "0" --- Retrieval info: PRIVATE: USE_DIFF_CLKEN NUMERIC "0" --- Retrieval info: PRIVATE: UseDPRAM NUMERIC "1" --- Retrieval info: PRIVATE: VarWidth NUMERIC "1" --- Retrieval info: PRIVATE: WIDTH_READ_A NUMERIC "32" --- Retrieval info: PRIVATE: WIDTH_READ_B NUMERIC "64" --- Retrieval info: PRIVATE: WIDTH_WRITE_A NUMERIC "32" --- Retrieval info: PRIVATE: WIDTH_WRITE_B NUMERIC "64" --- Retrieval info: PRIVATE: WRADDR_ACLR_B NUMERIC "0" --- Retrieval info: PRIVATE: WRADDR_REG_B NUMERIC "0" --- Retrieval info: PRIVATE: WRCTRL_ACLR_B NUMERIC "0" --- Retrieval info: PRIVATE: enable NUMERIC "0" --- Retrieval info: PRIVATE: rden NUMERIC "0" --- Retrieval info: LIBRARY: altera_mf altera_mf.altera_mf_components.all --- Retrieval info: CONSTANT: ADDRESS_ACLR_B STRING "NONE" --- Retrieval info: CONSTANT: ADDRESS_REG_B STRING "CLOCK0" --- Retrieval info: CONSTANT: CLOCK_ENABLE_INPUT_A STRING "BYPASS" --- Retrieval info: CONSTANT: CLOCK_ENABLE_INPUT_B STRING "BYPASS" --- Retrieval info: CONSTANT: CLOCK_ENABLE_OUTPUT_B STRING "BYPASS" --- Retrieval info: CONSTANT: INTENDED_DEVICE_FAMILY STRING "Cyclone V" --- Retrieval info: CONSTANT: LPM_TYPE STRING "altsyncram" --- Retrieval info: CONSTANT: NUMWORDS_A NUMERIC "32" --- Retrieval info: CONSTANT: NUMWORDS_B NUMERIC "16" --- Retrieval info: CONSTANT: OPERATION_MODE STRING "DUAL_PORT" --- Retrieval info: CONSTANT: OUTDATA_ACLR_B STRING "NONE" --- Retrieval info: CONSTANT: OUTDATA_REG_B STRING "UNREGISTERED" --- Retrieval info: CONSTANT: POWER_UP_UNINITIALIZED STRING "FALSE" --- Retrieval info: CONSTANT: RAM_BLOCK_TYPE STRING "M10K" --- Retrieval info: CONSTANT: READ_DURING_WRITE_MODE_MIXED_PORTS STRING "DONT_CARE" --- Retrieval info: CONSTANT: WIDTHAD_A NUMERIC "5" --- Retrieval info: CONSTANT: WIDTHAD_B NUMERIC "4" --- Retrieval info: CONSTANT: WIDTH_A NUMERIC "32" --- Retrieval info: CONSTANT: WIDTH_B NUMERIC "64" --- Retrieval info: CONSTANT: WIDTH_BYTEENA_A NUMERIC "1" --- Retrieval info: USED_PORT: clock 0 0 0 0 INPUT VCC "clock" --- Retrieval info: USED_PORT: data 0 0 32 0 INPUT NODEFVAL "data[31..0]" --- Retrieval info: USED_PORT: q 0 0 64 0 OUTPUT NODEFVAL "q[63..0]" --- Retrieval info: USED_PORT: rdaddress 0 0 4 0 INPUT NODEFVAL "rdaddress[3..0]" --- Retrieval info: USED_PORT: wraddress 0 0 5 0 INPUT NODEFVAL "wraddress[4..0]" --- Retrieval info: USED_PORT: wren 0 0 0 0 INPUT GND "wren" --- Retrieval info: CONNECT: @address_a 0 0 5 0 wraddress 0 0 5 0 --- Retrieval info: CONNECT: @address_b 0 0 4 0 rdaddress 0 0 4 0 --- Retrieval info: CONNECT: @clock0 0 0 0 0 clock 0 0 0 0 --- Retrieval info: CONNECT: @data_a 0 0 32 0 data 0 0 32 0 --- Retrieval info: CONNECT: @wren_a 0 0 0 0 wren 0 0 0 0 --- Retrieval info: CONNECT: q 0 0 64 0 @q_b 0 0 64 0 --- Retrieval info: GEN_FILE: TYPE_NORMAL asym_ram_0.vhd TRUE --- Retrieval info: GEN_FILE: TYPE_NORMAL asym_ram_0.inc FALSE --- Retrieval info: GEN_FILE: TYPE_NORMAL asym_ram_0.cmp FALSE --- Retrieval info: GEN_FILE: TYPE_NORMAL asym_ram_0.bsf FALSE --- Retrieval info: GEN_FILE: TYPE_NORMAL asym_ram_0_inst.vhd FALSE --- Retrieval info: LIB_FILE: altera_mf diff --git a/generic_ip/xgbe_oe/0/src/intel/sfifo_0.vhd b/generic_ip/xgbe_oe/0/src/intel/sfifo_0.vhd deleted file mode 100644 index 52c5bd8..0000000 --- a/generic_ip/xgbe_oe/0/src/intel/sfifo_0.vhd +++ /dev/null @@ -1,201 +0,0 @@ --- megafunction wizard: %FIFO% --- GENERATION: STANDARD --- VERSION: WM1.0 --- MODULE: scfifo - --- ============================================================ --- File Name: sfifo_0.vhd --- Megafunction Name(s): --- scfifo --- --- Simulation Library Files(s): --- altera_mf --- ============================================================ --- ************************************************************ --- THIS IS A WIZARD-GENERATED FILE. DO NOT EDIT THIS FILE! --- --- 18.1.0 Build 625 09/12/2018 SJ Standard Edition --- ************************************************************ - - ---Copyright (C) 2018 Intel Corporation. All rights reserved. ---Your use of Intel Corporation's design tools, logic functions ---and other software and tools, and its AMPP partner logic ---functions, and any output files from any of the foregoing ---(including device programming or simulation files), and any ---associated documentation or information are expressly subject ---to the terms and conditions of the Intel Program License ---Subscription Agreement, the Intel Quartus Prime License Agreement, ---the Intel FPGA IP License Agreement, or other applicable license ---agreement, including, without limitation, that your use is for ---the sole purpose of programming logic devices manufactured by ---Intel and sold by Intel or its authorized distributors. Please ---refer to the applicable agreement for further details. - - -LIBRARY ieee; -USE ieee.std_logic_1164.all; - -LIBRARY altera_mf; -USE altera_mf.all; - -ENTITY sfifo_0 IS - GENERIC ( - WIDTH : natural range 1 to 1024 := 80; - LOG2DEPTH : natural range 1 to 32 := 8 - ); - PORT - ( - clock : IN STD_LOGIC ; - data : IN STD_LOGIC_VECTOR (WIDTH-1 DOWNTO 0); - rdreq : IN STD_LOGIC ; - sclr : IN STD_LOGIC ; - wrreq : IN STD_LOGIC ; - empty : OUT STD_LOGIC ; - full : OUT STD_LOGIC ; - q : OUT STD_LOGIC_VECTOR (WIDTH-1 DOWNTO 0); - usedw : OUT STD_LOGIC_VECTOR (LOG2DEPTH-1 DOWNTO 0) - ); -END sfifo_0; - - -ARCHITECTURE SYN OF sfifo_0 IS - - SIGNAL sub_wire0 : STD_LOGIC ; - SIGNAL sub_wire1 : STD_LOGIC ; - SIGNAL sub_wire2 : STD_LOGIC_VECTOR (WIDTH-1 DOWNTO 0); - SIGNAL sub_wire3 : STD_LOGIC_VECTOR (LOG2DEPTH-1 DOWNTO 0); - - - - COMPONENT scfifo - GENERIC ( - add_ram_output_register : STRING; - intended_device_family : STRING; - lpm_numwords : NATURAL; - lpm_showahead : STRING; - lpm_type : STRING; - lpm_width : NATURAL; - lpm_widthu : NATURAL; - overflow_checking : STRING; - underflow_checking : STRING; - use_eab : STRING - ); - PORT ( - clock : IN STD_LOGIC ; - data : IN STD_LOGIC_VECTOR (WIDTH-1 DOWNTO 0); - rdreq : IN STD_LOGIC ; - sclr : IN STD_LOGIC ; - wrreq : IN STD_LOGIC ; - empty : OUT STD_LOGIC ; - full : OUT STD_LOGIC ; - q : OUT STD_LOGIC_VECTOR (WIDTH-1 DOWNTO 0); - usedw : OUT STD_LOGIC_VECTOR (LOG2DEPTH-1 DOWNTO 0) - ); - END COMPONENT; - -BEGIN - empty <= sub_wire0; - full <= sub_wire1; - q <= sub_wire2(WIDTH-1 DOWNTO 0); - usedw <= sub_wire3(LOG2DEPTH-1 DOWNTO 0); - - scfifo_component : scfifo - GENERIC MAP ( - add_ram_output_register => "OFF", - intended_device_family => "Cyclone V", - lpm_numwords => 2**LOG2DEPTH, - lpm_showahead => "OFF", - lpm_type => "scfifo", - lpm_width => WIDTH, - lpm_widthu => LOG2DEPTH, - overflow_checking => "ON", - underflow_checking => "ON", - use_eab => "ON" - ) - PORT MAP ( - clock => clock, - data => data, - rdreq => rdreq, - sclr => sclr, - wrreq => wrreq, - empty => sub_wire0, - full => sub_wire1, - q => sub_wire2, - usedw => sub_wire3 - ); - - - -END SYN; - --- ============================================================ --- CNX file retrieval info --- ============================================================ --- Retrieval info: PRIVATE: AlmostEmpty NUMERIC "0" --- Retrieval info: PRIVATE: AlmostEmptyThr NUMERIC "-1" --- Retrieval info: PRIVATE: AlmostFull NUMERIC "0" --- Retrieval info: PRIVATE: AlmostFullThr NUMERIC "-1" --- Retrieval info: PRIVATE: CLOCKS_ARE_SYNCHRONIZED NUMERIC "0" --- Retrieval info: PRIVATE: Clock NUMERIC "0" --- Retrieval info: PRIVATE: Depth NUMERIC "256" --- Retrieval info: PRIVATE: Empty NUMERIC "1" --- Retrieval info: PRIVATE: Full NUMERIC "1" --- Retrieval info: PRIVATE: INTENDED_DEVICE_FAMILY STRING "Cyclone V" --- Retrieval info: PRIVATE: LE_BasedFIFO NUMERIC "0" --- Retrieval info: PRIVATE: LegacyRREQ NUMERIC "1" --- Retrieval info: PRIVATE: MAX_DEPTH_BY_9 NUMERIC "0" --- Retrieval info: PRIVATE: OVERFLOW_CHECKING NUMERIC "0" --- Retrieval info: PRIVATE: Optimize NUMERIC "0" --- Retrieval info: PRIVATE: RAM_BLOCK_TYPE NUMERIC "0" --- Retrieval info: PRIVATE: SYNTH_WRAPPER_GEN_POSTFIX STRING "0" --- Retrieval info: PRIVATE: UNDERFLOW_CHECKING NUMERIC "0" --- Retrieval info: PRIVATE: UsedW NUMERIC "1" --- Retrieval info: PRIVATE: Width NUMERIC "80" --- Retrieval info: PRIVATE: dc_aclr NUMERIC "0" --- Retrieval info: PRIVATE: diff_widths NUMERIC "0" --- Retrieval info: PRIVATE: msb_usedw NUMERIC "0" --- Retrieval info: PRIVATE: output_width NUMERIC "80" --- Retrieval info: PRIVATE: rsEmpty NUMERIC "1" --- Retrieval info: PRIVATE: rsFull NUMERIC "0" --- Retrieval info: PRIVATE: rsUsedW NUMERIC "0" --- Retrieval info: PRIVATE: sc_aclr NUMERIC "0" --- Retrieval info: PRIVATE: sc_sclr NUMERIC "1" --- Retrieval info: PRIVATE: wsEmpty NUMERIC "0" --- Retrieval info: PRIVATE: wsFull NUMERIC "1" --- Retrieval info: PRIVATE: wsUsedW NUMERIC "0" --- Retrieval info: LIBRARY: altera_mf altera_mf.altera_mf_components.all --- Retrieval info: CONSTANT: ADD_RAM_OUTPUT_REGISTER STRING "OFF" --- Retrieval info: CONSTANT: INTENDED_DEVICE_FAMILY STRING "Cyclone V" --- Retrieval info: CONSTANT: LPM_NUMWORDS NUMERIC "256" --- Retrieval info: CONSTANT: LPM_SHOWAHEAD STRING "OFF" --- Retrieval info: CONSTANT: LPM_TYPE STRING "scfifo" --- Retrieval info: CONSTANT: LPM_WIDTH NUMERIC "80" --- Retrieval info: CONSTANT: LPM_WIDTHU NUMERIC "8" --- Retrieval info: CONSTANT: OVERFLOW_CHECKING STRING "ON" --- Retrieval info: CONSTANT: UNDERFLOW_CHECKING STRING "ON" --- Retrieval info: CONSTANT: USE_EAB STRING "ON" --- Retrieval info: USED_PORT: clock 0 0 0 0 INPUT NODEFVAL "clock" --- Retrieval info: USED_PORT: data 0 0 80 0 INPUT NODEFVAL "data[79..0]" --- Retrieval info: USED_PORT: empty 0 0 0 0 OUTPUT NODEFVAL "empty" --- Retrieval info: USED_PORT: full 0 0 0 0 OUTPUT NODEFVAL "full" --- Retrieval info: USED_PORT: q 0 0 80 0 OUTPUT NODEFVAL "q[79..0]" --- Retrieval info: USED_PORT: rdreq 0 0 0 0 INPUT NODEFVAL "rdreq" --- Retrieval info: USED_PORT: sclr 0 0 0 0 INPUT NODEFVAL "sclr" --- Retrieval info: USED_PORT: usedw 0 0 8 0 OUTPUT NODEFVAL "usedw[7..0]" --- Retrieval info: USED_PORT: wrreq 0 0 0 0 INPUT NODEFVAL "wrreq" --- Retrieval info: CONNECT: @clock 0 0 0 0 clock 0 0 0 0 --- Retrieval info: CONNECT: @data 0 0 80 0 data 0 0 80 0 --- Retrieval info: CONNECT: @rdreq 0 0 0 0 rdreq 0 0 0 0 --- Retrieval info: CONNECT: @sclr 0 0 0 0 sclr 0 0 0 0 --- Retrieval info: CONNECT: @wrreq 0 0 0 0 wrreq 0 0 0 0 --- Retrieval info: CONNECT: empty 0 0 0 0 @empty 0 0 0 0 --- Retrieval info: CONNECT: full 0 0 0 0 @full 0 0 0 0 --- Retrieval info: CONNECT: q 0 0 80 0 @q 0 0 80 0 --- Retrieval info: CONNECT: usedw 0 0 8 0 @usedw 0 0 8 0 --- Retrieval info: GEN_FILE: TYPE_NORMAL sfifo_0.vhd TRUE --- Retrieval info: GEN_FILE: TYPE_NORMAL sfifo_0.inc FALSE --- Retrieval info: GEN_FILE: TYPE_NORMAL sfifo_0.cmp FALSE --- Retrieval info: GEN_FILE: TYPE_NORMAL sfifo_0.bsf FALSE --- Retrieval info: GEN_FILE: TYPE_NORMAL sfifo_256x80_inst.vhd FALSE --- Retrieval info: LIB_FILE: altera_mf diff --git a/generic_ip/xgbe_oe/0/src/rx_packet_filter_0.vhd b/generic_ip/xgbe_oe/0/src/rx_packet_filter_0.vhd index 04c8625..8a22d5f 100644 --- a/generic_ip/xgbe_oe/0/src/rx_packet_filter_0.vhd +++ b/generic_ip/xgbe_oe/0/src/rx_packet_filter_0.vhd @@ -7,7 +7,7 @@ -- Company : Global Inkjet Systems -- Created : 2017-05-25 -- Last update: 2020-08-07 --- SVN ID : Git +-- SVN ID : Git -- Standard : VHDL'2008 ------------------------------------------------------------------------------- -- Description: @@ -34,7 +34,7 @@ entity rx_packet_filter_0 is cfg_write : in std_logic; cfg_data : in std_logic_vector(31 downto 0); filt_len : in std_logic_vector( 3 downto 0); - -- rx data + -- rx data start_of_packet : in std_logic; end_of_packet : in std_logic; rx_data_valid : in std_logic; @@ -44,7 +44,7 @@ entity rx_packet_filter_0 is filter_match : out std_logic); end entity rx_packet_filter_0; -architecture rtl of rx_packet_filter_0 is +architecture rtl of rx_packet_filter_0 is ----------------------------------------------------------------------------- -- Signals and Types @@ -59,7 +59,7 @@ architecture rtl of rx_packet_filter_0 is signal filt_addr : std_logic_vector( 3 downto 0); signal rx_data_i, rx_data_masked : std_logic_vector(63 downto 0); signal filt_out, mask_out : std_logic_vector(63 downto 0); - + begin ----------------------------------------------------------------------------- @@ -68,23 +68,39 @@ begin -- Each of this memories employs 2 M10Ks block!! - iFILTER_RAM: entity work.asym_ram_0 + iFILTER_RAM: entity work.alt_dp_ram_mixed_width + generic map ( + WDATA_WIDTH => 32, + WDEPTH => 32, + RDATA_WIDTH => 64, + RDEPTH => 16, + READ_WRITE_MODE => "DONT_CARE", + REGISTER_OUTPUT => "UNREGISTERED" + ) port map ( - clock => clk, - wraddress => cfg_addr(4 downto 0), + clk => clk, + wraddr => cfg_addr(4 downto 0), wren => cfg_filt_wr, - data => cfg_data, - rdaddress => filt_addr, - q => filt_out); + wrdata => cfg_data, + rdaddr => filt_addr, + rddata => filt_out); - iMASK_RAM: entity work.asym_ram_0 + iMASK_RAM: entity work.alt_dp_ram_mixed_width + generic map ( + WDATA_WIDTH => 32, + WDEPTH => 32, + RDATA_WIDTH => 64, + RDEPTH => 16, + READ_WRITE_MODE => "DONT_CARE", + REGISTER_OUTPUT => "UNREGISTERED" + ) port map ( - clock => clk, - wraddress => cfg_addr(4 downto 0), + clk => clk, + wraddr => cfg_addr(4 downto 0), wren => cfg_mask_wr, - data => cfg_data, - rdaddress => filt_addr, - q => mask_out); + wrdata => cfg_data, + rdaddr => filt_addr, + rddata => mask_out); cfg_filt_wr <= '1' when cfg_write = '1' and cfg_addr(5) = '0' else '0'; cfg_mask_wr <= '1' when cfg_write = '1' and cfg_addr(5) = '1' else '0'; @@ -108,13 +124,13 @@ begin elsif(check_completed = '1') then completed_flag <= '1'; end if; - + if(check_completed = '1' or (end_of_packet = '1' and completed_flag = '0')) then completed <= '1'; else completed <= '0'; end if; - + if unsigned(filt_len) = 0 then filter_match <= '1'; elsif(init = '1' or start_of_packet = '1') then diff --git a/generic_ip/xgbe_oe/0/src/rx_packet_split_0.vhd b/generic_ip/xgbe_oe/0/src/rx_packet_split_0.vhd index cfab2ab..cf7ad66 100644 --- a/generic_ip/xgbe_oe/0/src/rx_packet_split_0.vhd +++ b/generic_ip/xgbe_oe/0/src/rx_packet_split_0.vhd @@ -95,22 +95,24 @@ begin ----------------------------------------------------------------------------- -- Data Buffer ----------------------------------------------------------------------------- - - iDATA_BUFFER: entity work.sfifo_0 + + iDATA_BUFFER: entity work.alt_sync_fifo generic map ( - WIDTH => 80, - LOG2DEPTH => 8 + DATA_WIDTH => 80, + DEPTH => 256, + SHOWAHEAD => "OFF", + REGISTER_OUTPUT => "OFF" ) port map ( - clock => clk, - sclr => init, - wrreq => data_valid, - data => data, - rdreq => data_re, - empty => rx_buffer_empty, - full => open, - q => q, - usedw => rx_buffer_usew); + clk => clk, + sclr => init, + wrreq => data_valid, + wrdata => data, + rdreq => data_re, + empty => rx_buffer_empty, + rddata => q, + usedw => rx_buffer_usew + ); data <= 5x"0" & rx_frame_valid_in & rx_eop_in & rx_sop_in & rx_data_valid_in & rx_data_in; @@ -135,21 +137,22 @@ begin -- Since the data buffer can store several packets, a separate queue is needed to -- store the result of the filter check - iPACKET_QUEUE: entity work.sfifo_0 + iPACKET_QUEUE: entity work.alt_sync_fifo generic map ( - WIDTH => 1, - LOG2DEPTH => 5 + DATA_WIDTH => 1, + DEPTH => 32, + SHOWAHEAD => "OFF", + REGISTER_OUTPUT => "OFF" ) port map ( - clock => clk, - sclr => init, - wrreq => filter_completed, - data => packet_d, - rdreq => egress_start, - empty => packet_queue_empty, - full => open, - q => packet_q, - usedw => open); + clk => clk, + sclr => init, + wrreq => filter_completed, + wrdata => packet_d, + rdreq => egress_start, + empty => packet_queue_empty, + rddata => packet_q + ); packet_d(0) <= filter_match; diff --git a/generic_ip/xgbe_oe/0/src/tcp_tpc_0.vhd b/generic_ip/xgbe_oe/0/src/tcp_tpc_0.vhd deleted file mode 100644 index cd3ffe0..0000000 --- a/generic_ip/xgbe_oe/0/src/tcp_tpc_0.vhd +++ /dev/null @@ -1,107 +0,0 @@ -------------------------------------------------------------------------------- --- Title : tcp_tpc_0 --- Project : 10G -------------------------------------------------------------------------------- --- File : tcp_tpc_0.vhd --- Author : Gianmarco Girau --- Company : Global Inkjet Systems --- Created : 2020-07-14 --- Last update: 2020-08-12 --- SVN ID : Git --- Standard : VHDL'2008 -------------------------------------------------------------------------------- --- Description: --- TCP Server test pattern checker (TPC). It matches the the pattern generated by the --- TCP Server Test Pattern Generator (TPG) -------------------------------------------------------------------------------- --- altera vhdl_input_version vhdl_2008 - -library ieee; -use ieee.std_logic_1164.all; -use ieee.numeric_std.all; - -entity tcp_tpc_0 is - generic( - SEED : std_logic_vector(63 downto 0) := X"5AA5BAD0BAD1A55A"); - port ( - clk : in std_logic; -- @156.25MHz - -- control interface - init : in std_logic; - check_start : in std_logic; - check_stop : in std_logic; - word_errors : out std_logic_vector(15 downto 0); - -- TCP Server Rx interface - rx_data : in std_logic_vector(63 downto 0); - rx_data_valid : in std_logic_vector( 7 downto 0); - rx_rts : in std_logic; - rx_cts : out std_logic; - rx_cts_ack : in std_logic); -end entity tcp_tpc_0; - -architecture rtl of tcp_tpc_0 is - - signal upd, data_valid, running : std_logic; - signal detected_error : std_logic; - - signal prn_word : std_logic_vector(63 downto 0); - -begin - - ----------------------------------------------------------------------------- - -- LFSRs - ----------------------------------------------------------------------------- - - iLSB: entity work.PRN_gen_0 - generic map ( - seed => SEED(31 downto 0)) - port map ( - rstN => '1', - clk => clk, - PRN_rst => init, - PRN_upd => upd, - PRN_reg => prn_word(31 downto 0), - PRN_out => open); - - iMSB: entity work.PRN_gen_0 - generic map ( - seed => SEED(63 downto 32)) - port map ( - rstN => '1', - clk => clk, - PRN_rst => init, - PRN_upd => upd, - PRN_reg => prn_word(63 downto 32), - PRN_out => open); - - ----------------------------------------------------------------------------- - -- Burst generation logic - ----------------------------------------------------------------------------- - - -- Data are generated in bursts of 64-bit words, with burst_size specifying - -- the number of words composing a burst, and burst_gap the number of clock - -- cycles between contiguous bursts - - pTPC_REGS: process(clk) - begin - if(clk = '1' and clk'event) then - if(init = '1' or check_stop = '1') then - running <= '0'; - elsif(check_start = '1') then - running <= '1'; - end if; - if(init = '1') then - word_errors <= (0 => '1', others => '0'); - elsif(detected_error = '1') then - word_errors <= std_logic_vector(unsigned(word_errors)+1); - end if; - end if; - end process pTPC_REGS; - - data_valid <= rx_rts and running; - upd <= data_valid; - - rx_cts <= running; - - detected_error <= '1' when data_valid = '1' and rx_data /= prn_word else '0'; - -end architecture rtl; diff --git a/generic_ip/xgbe_oe/0/src/tcp_tpg_0.vhd b/generic_ip/xgbe_oe/0/src/tcp_tpg_0.vhd deleted file mode 100644 index 673e73b..0000000 --- a/generic_ip/xgbe_oe/0/src/tcp_tpg_0.vhd +++ /dev/null @@ -1,170 +0,0 @@ -------------------------------------------------------------------------------- --- Title : tcp_tpg_0 --- Project : 10G -------------------------------------------------------------------------------- --- File : tcp_tpg_0.vhd --- Author : Gianmarco Girau --- Company : Global Inkjet Systems --- Created : 2020-07-14 --- Last update: 2020-07-14 --- SVN ID : Git --- Standard : VHDL'2008 -------------------------------------------------------------------------------- --- Description: --- TCP Server test pattern generator, LFSR based -------------------------------------------------------------------------------- --- altera vhdl_input_version vhdl_2008 - -library ieee; -use ieee.std_logic_1164.all; -use ieee.numeric_std.all; - -entity tcp_tpg_0 is - generic( - SEED : std_logic_vector(63 downto 0) := X"5AA5BAD0BAD1A55A"); - port ( - clk : in std_logic; -- @156.25MHz - -- control interface - init : in std_logic; - gen_start : in std_logic; - gen_stop : in std_logic; - burst_size : in std_logic_vector(10 downto 0); - burst_gap : in std_logic_vector(15 downto 0); - -- TCP Server Tx interface - tx_data : out std_logic_vector(63 downto 0); - tx_data_valid : out std_logic_vector(7 downto 0); - tx_data_flush : out std_logic; - tx_cts : in std_logic); -end entity tcp_tpg_0; - -architecture rtl of tcp_tpg_0 is - - type fsm_state_t is (S_IDLE, S_GEN_BURST, S_FLUSH, S_PAUSE); - - signal fsm_state_curr, fsm_state_next : fsm_state_t; - - signal upd, rst_cnt, inc_cnt, stop : std_logic; - signal end_burst, end_pause : std_logic; - signal data_valid, data_flush : std_logic; - - signal cnt : std_logic_vector(15 downto 0); - signal prn_word : std_logic_vector(63 downto 0); - -begin - - ----------------------------------------------------------------------------- - -- LFSRs - ----------------------------------------------------------------------------- - - iLSB: entity work.PRN_gen_0 - generic map ( - seed => SEED(31 downto 0)) - port map ( - rstN => '1', - clk => clk, - PRN_rst => init, - PRN_upd => upd, - PRN_reg => prn_word(31 downto 0), - PRN_out => open); - - iMSB: entity work.PRN_gen_0 - generic map ( - seed => SEED(63 downto 32)) - port map ( - rstN => '1', - clk => clk, - PRN_rst => init, - PRN_upd => upd, - PRN_reg => prn_word(63 downto 32), - PRN_out => open); - - ----------------------------------------------------------------------------- - -- Burst generation logic - ----------------------------------------------------------------------------- - - -- Data are generated in bursts of 64-bit words, with burst_size specifying - -- the number of words composing a burst, and burst_gap the number of clock - -- cycles between contiguous bursts - - pBURST_REGS: process(clk) - begin - if(clk = '1' and clk'event) then - if(rst_cnt = '1') then - cnt <= (0 => '1', others => '0'); - elsif(inc_cnt = '1') then - cnt <= std_logic_vector(unsigned(cnt)+1); - end if; - if(init = '1' or gen_start = '1') then - stop <= '0'; - elsif(gen_stop = '1') then - stop <= '1'; - end if; - end if; - end process pBURST_REGS; - - upd <= data_valid; - - pFSM_SR: process(clk) - begin - if(clk = '1' and clk'event) then - if(init = '1') then - fsm_state_curr <= S_IDLE; - else - fsm_state_curr <= fsm_state_next; - end if; - end if; - end process pFSM_SR; - - end_burst <= '1' when unsigned(cnt) = unsigned(burst_size) else '0'; - end_pause <= '1' when unsigned(cnt) = unsigned(burst_gap) else '0'; - - pFSM_CL: process(all) - begin - -- default assignments - rst_cnt <= '0'; - inc_cnt <= '0'; - data_valid <= '0'; - data_flush <= '0'; - fsm_state_next <= fsm_state_curr; - - case fsm_state_curr is - when S_IDLE => - rst_cnt <= '1'; - if(gen_start = '1') then - fsm_state_next <= S_GEN_BURST; - end if; - - when S_GEN_BURST => - if(tx_cts = '1') then - inc_cnt <= '1'; - data_valid <= '1'; - end if; - if(end_burst = '1') then - rst_cnt <= '1'; - fsm_state_next <= S_FLUSH; - end if; - - when S_FLUSH => - data_flush <= '1'; - fsm_state_next <= S_PAUSE; - - when S_PAUSE => - inc_cnt <= '1'; - if(stop = '1') then - fsm_state_next <= S_IDLE; - elsif(end_pause = '1') then - rst_cnt <= '1'; - fsm_state_next <= S_GEN_BURST; - end if; - - when others => null; - end case; - - end process pFSM_CL; - - -- egress interface - tx_data <= prn_word; - tx_data_valid <= (others => '1') when data_valid = '1' else (others => '0'); - tx_data_flush <= data_flush; - -end architecture rtl; diff --git a/generic_ip/xgbe_oe/0/src/tx_packet_combine_0.vhd b/generic_ip/xgbe_oe/0/src/tx_packet_combine_0.vhd index f9a2b61..f76d64f 100644 --- a/generic_ip/xgbe_oe/0/src/tx_packet_combine_0.vhd +++ b/generic_ip/xgbe_oe/0/src/tx_packet_combine_0.vhd @@ -76,22 +76,24 @@ begin -- has a size slightly bigger than 1 MTU. It should be noticed that the -- GMII-Tx-Bridge block provides also further buffering for data coming from -- the HPS-EMAC. - - iDATA_BUFFER: entity work.sfifo_0 + + iDATA_BUFFER: entity work.alt_sync_fifo generic map ( - WIDTH => 80, - LOG2DEPTH => 8 + DATA_WIDTH => 80, + DEPTH => 256, + SHOWAHEAD => "OFF", + REGISTER_OUTPUT => "OFF" ) port map ( - clock => clk, - sclr => init, - wrreq => fifo_we, - data => fifo_d, - rdreq => fifo_re, - empty => fifo_empty, - full => open, - q => fifo_q, - usedw => fifo_usew); + clk => clk, + sclr => init, + wrreq => fifo_we, + wrdata => fifo_d, + rdreq => fifo_re, + empty => fifo_empty, + rddata => fifo_q, + usedw => fifo_usew + ); fifo_d <= 6x"0" & emac_tx_eop & emac_tx_sop & emac_tx_data_valid & emac_tx_data;