CORE-798 Make EL GIP Library FPGA Vendor Independent.
HMB_FPGA_CFG v6 - fpga vendor independent. Uses dp_ram from common/1
This commit is contained in:
parent
360079d096
commit
87d411b912
3 changed files with 531 additions and 0 deletions
143
generic_ip/hmb_fpga_cfg/6/doc/hmb_fpga_cfg_6.json
Normal file
143
generic_ip/hmb_fpga_cfg/6/doc/hmb_fpga_cfg_6.json
Normal file
|
|
@ -0,0 +1,143 @@
|
|||
[{
|
||||
"ip_name" : "hmb_fpga_cfg_6",
|
||||
"bus" : "csr",
|
||||
"addr_width" : "4",
|
||||
"description" : "This block is the HMB FPGA configuration interface",
|
||||
"notes" : "The HMB FPGA configuration interface allows a raw binary file (.rbf) image in DDR memory to be loaded into the FPGA on a connected HMB device to configure its logic. The RBF image must be in a physically contiguous buffer in memory. To configure the remote FPGA device, the ADDR register is programmed with the physical address in memory where the RBF data has been pre-loaded. Then the START register is written with bit 0 set to instigate the configuration. The STATUS register will then indicate that the interface is busy (the BUSY bit is set). When configuration is complete, the BUSY bit is cleared. A bit (UNCONFIGURED) is set after reset, but goes high after a successful configuration. It is also cleared if a new configuration is started, until the completion of the new configuration. There are register hooks for individual CPU writes of RBF data to configure, but these are not yet used on GMA.",
|
||||
"registers" : {
|
||||
"ip_id" : {
|
||||
"address" : "0",
|
||||
"width" : "32",
|
||||
"description" : "Unique ID for this IP block",
|
||||
"fields": {
|
||||
"ip_number" : {
|
||||
"type" : "c",
|
||||
"bit_len" : "8",
|
||||
"reset" : "0x0c",
|
||||
"description" : "IP identifier number"
|
||||
},
|
||||
"mfr_number" : {
|
||||
"type" : "c",
|
||||
"bit_len" : "8",
|
||||
"reset" : "0xFF",
|
||||
"description" : "Manufacturer number"
|
||||
|
||||
},
|
||||
"reserved" : {
|
||||
"type" : "rsv",
|
||||
"bit_len" : "16",
|
||||
"description" : "Reserved bits"
|
||||
}
|
||||
}
|
||||
},
|
||||
"ip_ver" : {
|
||||
"address" : "1",
|
||||
"width" : "32",
|
||||
"description" : "Bits[7:0] = Minor version number, Bits[15:8] = Major version number, etc.",
|
||||
"fields": {
|
||||
"minor_number" : {
|
||||
"type" : "c",
|
||||
"bit_len" : "8",
|
||||
"reset" : "0x00",
|
||||
"description" : "Minor number"
|
||||
},
|
||||
"major_number" : {
|
||||
"type" : "c",
|
||||
"bit_len" : "8",
|
||||
"reset" : "0x06",
|
||||
"description" : "Major number"
|
||||
|
||||
},
|
||||
"reserved" : {
|
||||
"type" : "rsv",
|
||||
"bit_len" : "16",
|
||||
"description" : "Reserved bits"
|
||||
}
|
||||
}
|
||||
},
|
||||
"control" : {
|
||||
"address" : "2",
|
||||
"width" : "3",
|
||||
"description" : "Start configuration",
|
||||
"fields" : {
|
||||
"msb" : {
|
||||
"type" : "w",
|
||||
"bit_len" : "1",
|
||||
"reset" : "0",
|
||||
"description" : "Shift out data MSB first"
|
||||
},
|
||||
"cpu_mode" : {
|
||||
"type" : "w",
|
||||
"bit_len" : "1",
|
||||
"reset" : "0",
|
||||
"description" : "Set CPU mode, with data from writes to tx_word register"
|
||||
},
|
||||
"ps_mode" : {
|
||||
"type" : "w",
|
||||
"bit_len" : "1",
|
||||
"reset" : "0",
|
||||
"description" : "Set print streamer mode, with data from the print streamer"
|
||||
}
|
||||
}
|
||||
},
|
||||
"start" : {
|
||||
"address" : "3",
|
||||
"width" : "1",
|
||||
"type" : "w0",
|
||||
"reset" : "0",
|
||||
"description" : "Start configuration"
|
||||
},
|
||||
"cfg_addr" : {
|
||||
"address" : "4",
|
||||
"width" : "32",
|
||||
"type" : "w",
|
||||
"reset" : "0",
|
||||
"description" : "Configuration data start address in memory"
|
||||
},
|
||||
"status" : {
|
||||
"address" : "5",
|
||||
"width" : "4",
|
||||
"description" : "Status",
|
||||
"fields" : {
|
||||
"busy" : {
|
||||
"type" : "r",
|
||||
"bit_len" : "1",
|
||||
"reset" : "0",
|
||||
"description" : "Interface is busy"
|
||||
},
|
||||
"unconfigured" : {
|
||||
"type" : "r",
|
||||
"bit_len" : "1",
|
||||
"reset" : "0",
|
||||
"description" : "Interface is unconfigured"
|
||||
},
|
||||
"ok_to_write" : {
|
||||
"type" : "r",
|
||||
"bit_len" : "1",
|
||||
"reset" : "0",
|
||||
"description" : "Okay to write (in CPU mode)"
|
||||
},
|
||||
"config_error" : {
|
||||
"type" : "r",
|
||||
"bit_len" : "1",
|
||||
"reset" : "0",
|
||||
"description" : "Error in configuration"
|
||||
}
|
||||
}
|
||||
},
|
||||
"tx_word" : {
|
||||
"address" : "6",
|
||||
"width" : "32",
|
||||
"type" : "wp",
|
||||
"reset" : "0",
|
||||
"description" : "TX a word over FPGA config interface"
|
||||
},
|
||||
"max_tx_word_len" : {
|
||||
"address" : "7",
|
||||
"width" : "32",
|
||||
"type" : "w",
|
||||
"reset" : "0x40000",
|
||||
"description" : "Maximum number of words to transmit before timing out"
|
||||
}
|
||||
}
|
||||
}]
|
||||
387
generic_ip/hmb_fpga_cfg/6/src/hmb_fpga_cfg_6.vhd
Normal file
387
generic_ip/hmb_fpga_cfg/6/src/hmb_fpga_cfg_6.vhd
Normal file
|
|
@ -0,0 +1,387 @@
|
|||
-------------------------------------------------------------------------------
|
||||
--! @file
|
||||
--! @brief SOM FPGA configuration interface for the HMB FPGA of GMA
|
||||
--!
|
||||
--! @details This block is the configuration interface for programming the off
|
||||
--! SOM FPGA on the MMB board of the GMA project. It has a master connection to
|
||||
--! main memory, and the CPU can instigate a configuration by supplying
|
||||
--! a start address in memory where the raw binary image is located. The logic
|
||||
--! then reads contiguous memory, programming the remote FPGA until returned
|
||||
--! status indicates it is done.
|
||||
--!
|
||||
--! @b Clock/resets:
|
||||
--! @li clk : nominally 100MHz
|
||||
--! @li rst_n : active low reset for clk (asynchronous assert)
|
||||
--!
|
||||
--! @b Interfaces:
|
||||
--! @li Avalon MM slave avs_csr_* : Control and status register memory mapped bus
|
||||
--! @li Avalon MM master avm_rx_* : Avalon bus interface to memory system
|
||||
--! @li ps_* : Interface from print streamer for configuring from virtual memory
|
||||
--! @li cfg_* : Intel-Altera FPGA configuration interface
|
||||
--!
|
||||
--! @b Clock-crossing considerations:
|
||||
--! @li The input signals from the FPGA interface (cfg_config_done, cfg_nstatus
|
||||
--! cfg_nstatus (unused) and cfg_init_done(unused) are asynchronous to this block's
|
||||
--! clock and need synchronisation. They are all single bit, mutually exclusive
|
||||
--! signals.
|
||||
--!
|
||||
--! @b Language build standard requirements:
|
||||
--! @li VHDL 2008
|
||||
--!
|
||||
--! @author Simon Southwell
|
||||
--! @copyright (c) 2018 Global Inkjet Systems
|
||||
--! @date 2018-1-2
|
||||
-------------------------------------------------------------------------------
|
||||
-- altera vhdl_input_version vhdl_2008
|
||||
|
||||
library ieee;
|
||||
use ieee.std_logic_1164.all;
|
||||
use ieee.numeric_std.all;
|
||||
|
||||
entity hmb_fpga_cfg_6 is
|
||||
generic (
|
||||
DEVICE_FAMILY : string := "Cyclone V" -- "Cyclone 10 LP"
|
||||
);
|
||||
port(
|
||||
|
||||
clk : in std_logic;
|
||||
rst_n : in std_logic;
|
||||
|
||||
avs_csr_address : in std_logic_vector(3 downto 0);
|
||||
avs_csr_write : in std_logic;
|
||||
avs_csr_writedata : in std_logic_vector(31 downto 0);
|
||||
avs_csr_read : in std_logic;
|
||||
avs_csr_readdata : out std_logic_vector(31 downto 0);
|
||||
|
||||
avm_rx_waitrequest : in std_logic;
|
||||
avm_rx_burstcount : out std_logic_vector(11 downto 0);
|
||||
avm_rx_address : out std_logic_vector(31 downto 0);
|
||||
avm_rx_read : out std_logic;
|
||||
avm_rx_readdata : in std_logic_vector(31 downto 0);
|
||||
avm_rx_readdatavalid : in std_logic;
|
||||
|
||||
ps_wr : in std_logic;
|
||||
ps_wr_data : in std_logic_vector(31 downto 0);
|
||||
ps_rdy : out std_logic;
|
||||
|
||||
cfg_dclk : out std_logic;
|
||||
cfg_data : out std_logic;
|
||||
cfg_config_done : in std_logic;
|
||||
cfg_nstatus : in std_logic; -- Unused at present (will need sync'ing if used later)
|
||||
cfg_nconfig : out std_logic;
|
||||
cfg_init_done : in std_logic; -- Unused at present (will need sync'ing if used later)
|
||||
cfg_oe : out std_logic
|
||||
);
|
||||
end entity hmb_fpga_cfg_6;
|
||||
|
||||
architecture rtl of hmb_fpga_cfg_6 is
|
||||
|
||||
constant zero : std_logic_vector(31 downto 0) := 32x"00000000";
|
||||
constant one : std_logic_vector(31 downto 0) := 32x"00000001";
|
||||
|
||||
constant TICKS_TCFG : std_logic_vector(11 downto 0) := 12x"FFF"; -- 41us @ 100 MHz, 51us @80MHz, 68us @60MHz : spec > 40us
|
||||
constant TICKS_TCF2CK : std_logic_vector(11 downto 0) := 12x"FFF"; -- 41us @ 100 MHz, 51us @80MHz, 68us @60MHz : spec > 40us
|
||||
constant TICKS_PER_WORD : std_logic_vector(11 downto 0) := 12x"040"; -- 2 x 32 bits
|
||||
|
||||
signal mem_wr_addr : std_logic_vector(5 downto 0);
|
||||
signal mem_rd_addr : std_logic_vector(5 downto 0);
|
||||
signal mem_rd_data : std_logic_vector(31 downto 0);
|
||||
signal mem_wr_data : std_logic_vector(31 downto 0);
|
||||
signal mem_wren : std_logic;
|
||||
signal cfg_addr : std_logic_vector(31 downto 0);
|
||||
signal start : std_logic;
|
||||
signal status_busy : std_logic;
|
||||
signal status_unconfigured : std_logic;
|
||||
|
||||
signal stop_rx : std_logic;
|
||||
signal wr_buf_sel : std_logic;
|
||||
signal buf_full : std_logic_vector(1 downto 0);
|
||||
signal next_buf_free : std_logic;
|
||||
signal this_buf_free : std_logic;
|
||||
signal next_buf_rdy : std_logic;
|
||||
signal buf_avail : std_logic;
|
||||
signal next_buf_avail : std_logic;
|
||||
signal clr_buff : std_logic_vector(1 downto 0);
|
||||
|
||||
signal count : std_logic_vector(11 downto 0);
|
||||
signal count_is_zero : std_logic;
|
||||
signal count_is_one : std_logic;
|
||||
signal nconfig_pulsed : std_logic;
|
||||
signal rdy_delay_done : std_logic;
|
||||
signal shift_reg : std_logic_vector(31 downto 0);
|
||||
signal control_msb : std_logic;
|
||||
signal control_cpu_mode : std_logic;
|
||||
signal control_ps_mode : std_logic;
|
||||
signal status_ok_to_write : std_logic;
|
||||
signal mem_wr_addr_is_0 : std_logic; -- @suppress "signal mem_wr_addr_is_0 is never read" - used for simulations
|
||||
|
||||
signal cfg_config_done_sync : std_logic_vector(1 downto 0);
|
||||
signal cfg_config_done_last : std_logic;
|
||||
|
||||
signal avm_rx_read_int : std_logic;
|
||||
|
||||
signal max_tx_word_len : std_logic_vector(31 downto 0);
|
||||
signal status_config_error : std_logic;
|
||||
signal word_count : std_logic_vector(31 downto 0);
|
||||
|
||||
signal dma_mode : std_logic;
|
||||
signal tx_word_pulse : std_logic;
|
||||
signal tx_word : std_logic_vector(31 downto 0);
|
||||
|
||||
begin
|
||||
|
||||
this_buf_free <= (not buf_full(0) and not wr_buf_sel) or (not buf_full(1) and wr_buf_sel);
|
||||
next_buf_free <= (not buf_full(1) and not wr_buf_sel) or (not buf_full(0) and wr_buf_sel);
|
||||
buf_avail <= (buf_full(1) and mem_rd_addr(5)) or (buf_full(0) and not mem_rd_addr(5));
|
||||
next_buf_avail <= (buf_full(1) and not mem_rd_addr(5)) or (buf_full(0) and mem_rd_addr(5));
|
||||
count_is_zero <= '0' when count /= zero(11 downto 0) else '1';
|
||||
count_is_one <= '0' when count /= one(11 downto 0) else '1';
|
||||
mem_wr_addr_is_0 <= '0' when mem_wr_addr /= zero(5 downto 0) else '1';
|
||||
status_ok_to_write <= status_busy and not (buf_full(1) and buf_full(0));
|
||||
|
||||
-- Flag to indicate that, at the end of a block, the next buffer to use is available for a full load of data
|
||||
-- so long as we're still active. In CPU mode, need look-ahead (its not the master) so need to use this_buf_free.
|
||||
next_buf_rdy <= '1' when mem_wr_addr(5) /= wr_buf_sel and status_busy = '1' and ((control_cpu_mode and this_buf_free) or (not control_cpu_mode and next_buf_free)) = '1' else '0';
|
||||
|
||||
-- DMA is the default if CPU and PS mode are not selected
|
||||
dma_mode <= not control_cpu_mode and not control_ps_mode;
|
||||
|
||||
hmb_fpga_cfg_csr_regs_0 : entity work.hmb_fpga_cfg_6_csr_regs
|
||||
generic map(
|
||||
ADDR_DECODE_WIDTH => 4
|
||||
)
|
||||
port map(
|
||||
-- Clock and reset
|
||||
clk => clk,
|
||||
rst_n => rst_n,
|
||||
|
||||
control_msb => control_msb,
|
||||
control_cpu_mode => control_cpu_mode,
|
||||
control_ps_mode => control_ps_mode,
|
||||
|
||||
tx_word_pulse => tx_word_pulse,
|
||||
tx_word => tx_word,
|
||||
tx_word_in => (others => '0'),
|
||||
|
||||
max_tx_word_len => max_tx_word_len,
|
||||
|
||||
cfg_addr => cfg_addr,
|
||||
start => start,
|
||||
status_busy => status_busy,
|
||||
status_unconfigured => status_unconfigured,
|
||||
status_ok_to_write => status_ok_to_write,
|
||||
status_config_error => status_config_error,
|
||||
|
||||
-- Slave bus port
|
||||
avs_address => avs_csr_address,
|
||||
avs_write => avs_csr_write,
|
||||
avs_writedata => avs_csr_writedata,
|
||||
avs_read => avs_csr_read,
|
||||
avs_readdata => avs_csr_readdata
|
||||
);
|
||||
|
||||
dp_mem_inst : entity work.dp_ram
|
||||
generic map (
|
||||
DATA_WIDTH => 32,
|
||||
DEPTH => 64,
|
||||
REGISTER_OUTPUT => "UNREGISTERED",
|
||||
READ_WRITE_MODE => "DONT_CARE",
|
||||
DEVICE_FAMILY => DEVICE_FAMILY
|
||||
)
|
||||
port map(
|
||||
clk => clk,
|
||||
wrdata => mem_wr_data,
|
||||
rdaddr => mem_rd_addr,
|
||||
wraddr => mem_wr_addr,
|
||||
wren => mem_wren,
|
||||
rddata => mem_rd_data
|
||||
);
|
||||
|
||||
mem_wren <= (dma_mode and avm_rx_readdatavalid) or (control_ps_mode and ps_wr) or (control_cpu_mode and tx_word_pulse and status_ok_to_write);
|
||||
mem_wr_data <= tx_word when tx_word_pulse = '1' else
|
||||
avm_rx_readdata when ps_wr = '0' else ps_wr_data;
|
||||
|
||||
-----------------------------------------
|
||||
-- Read from memory
|
||||
-----------------------------------------
|
||||
|
||||
avm_rx_burstcount <= 12x"020";
|
||||
avm_rx_read <= avm_rx_read_int and status_busy;
|
||||
|
||||
process(clk, rst_n) is
|
||||
begin
|
||||
|
||||
if rst_n = '0' then
|
||||
|
||||
status_unconfigured <= '1';
|
||||
status_busy <= '0';
|
||||
stop_rx <= '0';
|
||||
wr_buf_sel <= '0';
|
||||
avm_rx_read_int <= '0';
|
||||
buf_full <= (others => '0');
|
||||
clr_buff <= (others => '0');
|
||||
|
||||
cfg_dclk <= '0';
|
||||
cfg_data <= '0';
|
||||
cfg_nconfig <= '1';
|
||||
count <= (others => '0');
|
||||
nconfig_pulsed <= '0';
|
||||
rdy_delay_done <= '0';
|
||||
mem_rd_addr <= (others => '0');
|
||||
cfg_oe <= '0';
|
||||
|
||||
cfg_config_done_sync <= (others => '0');
|
||||
cfg_config_done_last <= '1';
|
||||
|
||||
status_config_error <= '0';
|
||||
word_count <= (others => '0');
|
||||
|
||||
ps_rdy <= '0';
|
||||
|
||||
elsif (clk'event and clk = '1') then
|
||||
|
||||
-----------------------------------------
|
||||
-- Read logic
|
||||
-----------------------------------------
|
||||
|
||||
status_busy <= (status_busy or start) and not stop_rx;
|
||||
avm_rx_read_int <= avm_rx_read_int and avm_rx_waitrequest;
|
||||
buf_full <= buf_full and not clr_buff;
|
||||
|
||||
-- Increment the read address each time a data word turns up
|
||||
if (dma_mode = '1' and avm_rx_readdatavalid = '1') or
|
||||
(control_ps_mode = '1' and ps_wr = '1') or
|
||||
(control_cpu_mode = '1' and tx_word_pulse = '1' and status_ok_to_write = '1') then
|
||||
mem_wr_addr <= std_logic_vector(unsigned(mem_wr_addr) + 1);
|
||||
end if;
|
||||
|
||||
-- Send out the first transfer request on the start pulse. Ignore if already busy.
|
||||
if start = '1' and status_busy = '0' then
|
||||
mem_wr_addr <= (others => '0');
|
||||
avm_rx_address <= cfg_addr;
|
||||
avm_rx_read_int <= dma_mode;
|
||||
ps_rdy <= control_ps_mode;
|
||||
wr_buf_sel <= '0';
|
||||
buf_full <= "00";
|
||||
cfg_oe <= '0';
|
||||
status_unconfigured <= '1';
|
||||
status_config_error <= '0';
|
||||
word_count <= max_tx_word_len;
|
||||
end if;
|
||||
|
||||
-- When the read block transfer has completed, start another one if still busy, and the
|
||||
-- buffer we will write is free.
|
||||
if next_buf_rdy = '1' then
|
||||
mem_wr_addr <= (others => '0');
|
||||
mem_wr_addr(5) <= not wr_buf_sel;
|
||||
avm_rx_address <= std_logic_vector(unsigned(avm_rx_address) + 128);
|
||||
avm_rx_read_int <= dma_mode;
|
||||
ps_rdy <= control_ps_mode;
|
||||
wr_buf_sel <= not wr_buf_sel;
|
||||
buf_full <= (buf_full(1) or wr_buf_sel) & (buf_full(0) or not wr_buf_sel);
|
||||
end if;
|
||||
|
||||
-- When data turns up from the print streamer, clear the ready state so no more comes
|
||||
-- until an internal buffer is ready.
|
||||
if ps_wr = '1' then
|
||||
ps_rdy <= '0';
|
||||
end if;
|
||||
|
||||
-----------------------------------------
|
||||
-- Write logic
|
||||
-----------------------------------------
|
||||
|
||||
stop_rx <= '0';
|
||||
clr_buff <= (others => '0');
|
||||
|
||||
-- Clear config pulsed state at start
|
||||
if start = '1' and status_busy = '0' then
|
||||
nconfig_pulsed <= '0';
|
||||
rdy_delay_done <= '0';
|
||||
mem_rd_addr <= (others => '0');
|
||||
count <= TICKS_TCFG;
|
||||
end if;
|
||||
|
||||
-- Decrement the counter whenever the count is non-zero
|
||||
if status_busy = '1' and count_is_zero = '0' then
|
||||
count <= std_logic_vector(unsigned(count) - 1);
|
||||
end if;
|
||||
|
||||
-- Clear the nCONFIG if not yet pulse and count is 0, else set back to 1
|
||||
if count_is_zero = '0' and nconfig_pulsed = '0' then
|
||||
cfg_nconfig <= '0';
|
||||
end if;
|
||||
|
||||
-- On the last count, set the nconfig output, and flag that it's done.
|
||||
if count_is_one = '1' and nconfig_pulsed = '0' then
|
||||
cfg_nconfig <= '1';
|
||||
nconfig_pulsed <= '1';
|
||||
end if;
|
||||
|
||||
-- If config pulse done, but not the delay until first DCLK, then reset the counter when 0
|
||||
-- to count the delay. When it reaches 1, flag that delay as done, and enable the output.
|
||||
if nconfig_pulsed = '1' and rdy_delay_done = '0' then
|
||||
if count_is_zero = '1' then
|
||||
count <= TICKS_TCF2CK;
|
||||
elsif count_is_one = '1' then
|
||||
rdy_delay_done <= '1';
|
||||
cfg_oe <= '1';
|
||||
end if;
|
||||
end if;
|
||||
|
||||
cfg_config_done_sync <= cfg_config_done & cfg_config_done_sync(1);
|
||||
cfg_config_done_last <= cfg_config_done_sync(0);
|
||||
|
||||
if cfg_oe = '1' and cfg_config_done_sync(0) = '0' then
|
||||
cfg_data <= shift_reg(0);
|
||||
else
|
||||
cfg_data <= '0';
|
||||
end if;
|
||||
|
||||
cfg_dclk <= count(0) and rdy_delay_done;
|
||||
|
||||
if count(0) = '1' then
|
||||
shift_reg <= '0' & shift_reg(shift_reg'length - 1 downto 1);
|
||||
end if;
|
||||
|
||||
-- If delay until first DCLK expired, but still not completed
|
||||
-- configuration and initialisation, send the data to the device.
|
||||
if rdy_delay_done = '1' and cfg_config_done_sync(0) = '0' then
|
||||
|
||||
-- If the count is 0 (i.e. at start) and the first buffer is available, or count is 1 and the
|
||||
-- next buffer is available, reset the shift_reg register and counter, and increment the address.
|
||||
if (count_is_zero = '1' and buf_avail = '1') or (count_is_one = '1' and next_buf_avail = '1') then
|
||||
count <= TICKS_PER_WORD;
|
||||
|
||||
if control_msb = '1' then
|
||||
shift_reg <= mem_rd_data(7 downto 0) & mem_rd_data(15 downto 8) & mem_rd_data(23 downto 16) & mem_rd_data(31 downto 24);
|
||||
else
|
||||
shift_reg <= mem_rd_data;
|
||||
end if;
|
||||
mem_rd_addr <= std_logic_vector(unsigned(mem_rd_addr) + 1);
|
||||
word_count <= std_logic_vector(unsigned(word_count) - 1);
|
||||
|
||||
-- If the address is about to move from one buffer to the next, send a clear buffer pulse to
|
||||
-- update the state for the read logic.
|
||||
if mem_rd_addr(4 downto 0) = std_logic_vector(to_unsigned(31, 5)) then
|
||||
clr_buff <= mem_rd_addr(5) & not mem_rd_addr(5);
|
||||
end if;
|
||||
end if;
|
||||
end if;
|
||||
|
||||
if word_count = 32x"0" and status_busy = '1' then
|
||||
stop_rx <= '1';
|
||||
status_config_error <= '1';
|
||||
rdy_delay_done <= '0';
|
||||
end if;
|
||||
|
||||
-- When the configuration is completed, send a stop pulse to clear the busy status
|
||||
if cfg_config_done_sync(0) = '1' and cfg_config_done_last = '0' then
|
||||
stop_rx <= '1';
|
||||
status_unconfigured <= '0';
|
||||
rdy_delay_done <= '0';
|
||||
end if;
|
||||
end if;
|
||||
end process;
|
||||
|
||||
end architecture rtl;
|
||||
1
generic_ip/hmb_fpga_cfg/versions.txt
Normal file
1
generic_ip/hmb_fpga_cfg/versions.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
v6 - fpga vendor independent. Uses dp_ram from common/1
|
||||
Loading…
Add table
Add a link
Reference in a new issue