Compare commits
4 Commits
d33b027e28
...
dfcd35b152
Author | SHA1 | Date | |
---|---|---|---|
dfcd35b152 | |||
cbda2c1302 | |||
d3b2ea88b5 | |||
bf1e95a576 |
@ -190,7 +190,7 @@ begin
|
|||||||
delay_cnt := delay_cnt + 1;
|
delay_cnt := delay_cnt + 1;
|
||||||
end if;
|
end if;
|
||||||
when LOADPAGE =>
|
when LOADPAGE =>
|
||||||
run_command_single(32, 8, 34, 258, FLASHROM_COMMAND_CONT_ARRAY_READ & page);
|
run_command_single(32, 8, 40, 259, FLASHROM_COMMAND_CONT_ARRAY_READ & page);
|
||||||
if spif_data_next = '1' or command_is_latched then
|
if spif_data_next = '1' or command_is_latched then
|
||||||
command_is_latched <= true;
|
command_is_latched <= true;
|
||||||
spif_data_in_length <= 8;
|
spif_data_in_length <= 8;
|
||||||
|
@ -129,6 +129,7 @@ begin
|
|||||||
data_next <= '1';
|
data_next <= '1';
|
||||||
else
|
else
|
||||||
delayCycle <= '1';
|
delayCycle <= '1';
|
||||||
|
pseudoEdge <= true;
|
||||||
end if;
|
end if;
|
||||||
else
|
else
|
||||||
bitCounter <= bitCounter + 1;
|
bitCounter <= bitCounter + 1;
|
||||||
|
@ -40,7 +40,15 @@ entity top is
|
|||||||
mem_dqs : inout std_logic_vector(1 downto 0) := (others => '0'); -- .mem_dqs
|
mem_dqs : inout std_logic_vector(1 downto 0) := (others => '0'); -- .mem_dqs
|
||||||
mem_dqs_n : inout std_logic_vector(1 downto 0) := (others => '0'); -- .mem_dqs_n
|
mem_dqs_n : inout std_logic_vector(1 downto 0) := (others => '0'); -- .mem_dqs_n
|
||||||
mem_odt : out std_logic_vector(0 downto 0); -- .mem_odt
|
mem_odt : out std_logic_vector(0 downto 0); -- .mem_odt
|
||||||
oct_rzqin : in std_logic -- oct.rzqin
|
oct_rzqin : in std_logic; -- oct.rzqin
|
||||||
|
|
||||||
|
-- SPI Flash Hardware Signals
|
||||||
|
flash_si : out std_logic; -- spi serial in
|
||||||
|
flash_so : in std_logic; -- spi serial out
|
||||||
|
flash_sck : out std_logic; -- spi clock
|
||||||
|
flash_reset_n : out std_logic; -- spi hard reset
|
||||||
|
flash_cs_n : out std_logic; -- spi chip select
|
||||||
|
flash_wp_n : out std_logic -- spi write protect
|
||||||
);
|
);
|
||||||
|
|
||||||
end entity top;
|
end entity top;
|
||||||
@ -51,12 +59,13 @@ architecture RTL of top is
|
|||||||
|
|
||||||
-- WB config
|
-- WB config
|
||||||
constant masters : natural := 3;
|
constant masters : natural := 3;
|
||||||
constant slaves : natural := 2;
|
constant slaves : natural := 3;
|
||||||
constant INTERCON_ID_SRAM : natural := 0;
|
constant INTERCON_ID_SRAM : natural := 0;
|
||||||
constant INTERCON_ID_DDR3 : natural := 1;
|
constant INTERCON_ID_DDR3 : natural := 1;
|
||||||
constant INTERCON_ID_GPIO : natural := 2;
|
constant INTERCON_ID_FLASH : natural := 2;
|
||||||
constant INTERCON_ID_UART : natural := 3;
|
-- constant INTERCON_ID_GPIO : natural := 2;
|
||||||
constant INTERCON_ID_NS16550 : natural := 4;
|
-- constant INTERCON_ID_UART : natural := 3;
|
||||||
|
-- constant INTERCON_ID_NS16550 : natural := 4;
|
||||||
|
|
||||||
constant in_simulation : boolean := false
|
constant in_simulation : boolean := false
|
||||||
--pragma synthesis_off
|
--pragma synthesis_off
|
||||||
@ -297,6 +306,22 @@ begin
|
|||||||
end if;
|
end if;
|
||||||
end process wb2avl;
|
end process wb2avl;
|
||||||
|
|
||||||
|
-- Non Volatile Memory
|
||||||
|
flashrom_wb_inst : entity work.flashrom_wb
|
||||||
|
port map(
|
||||||
|
clk => clk,
|
||||||
|
rst => rst,
|
||||||
|
clr => '0',
|
||||||
|
wb_in => intercon_slave_i(INTERCON_ID_FLASH),
|
||||||
|
wb_out => intercon_slave_o(INTERCON_ID_FLASH),
|
||||||
|
spi_si => flash_si,
|
||||||
|
spi_so => flash_so,
|
||||||
|
spi_sck => flash_sck,
|
||||||
|
spi_reset_n => flash_reset_n,
|
||||||
|
spi_cs_n => flash_cs_n,
|
||||||
|
spi_wp_n => flash_wp_n
|
||||||
|
);
|
||||||
|
|
||||||
-- Intercon
|
-- Intercon
|
||||||
crossbar_inst : entity ip.crossbar
|
crossbar_inst : entity ip.crossbar
|
||||||
generic map(
|
generic map(
|
||||||
@ -311,11 +336,15 @@ begin
|
|||||||
slave_o => intercon_master_i,
|
slave_o => intercon_master_i,
|
||||||
master_i => intercon_slave_o,
|
master_i => intercon_slave_o,
|
||||||
master_o => intercon_slave_i,
|
master_o => intercon_slave_i,
|
||||||
address => (0 => x"00000000", -- SRAM
|
address => (
|
||||||
1 => x"80000000"
|
INTERCON_ID_SRAM => x"00000000",
|
||||||
|
INTERCON_ID_DDR3 => x"10000000",
|
||||||
|
INTERCON_ID_FLASH => x"90000000"
|
||||||
),
|
),
|
||||||
mask => (0 => x"ffff0000",
|
mask => (
|
||||||
1 => x"f0000000"
|
INTERCON_ID_SRAM => x"ffff0000",
|
||||||
|
INTERCON_ID_DDR3 => x"f0000000",
|
||||||
|
INTERCON_ID_FLASH => x"f0000000"
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
end architecture RTL;
|
end architecture RTL;
|
||||||
|
Loading…
Reference in New Issue
Block a user