mirror of
https://github.com/antonblanchard/microwatt.git
synced 2026-01-11 23:43:15 +00:00
This require the s25fl128s.vhd flash model and FMF libraries, which will be built when passed to the Makefile via the FLASH_MODEL_PATH argument. Otherwise a dummy module is used which ties MISO to '1'. The model isn't included as I'm not sure its licence (GPL) is at this point, but it can be obtained from https://github.com/ozbenh/microspi FLASH_MODEL_PATH=<path to microspi>/model Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
29 lines
868 B
VHDL
29 lines
868 B
VHDL
library ieee;
|
|
use ieee.std_logic_1164.all;
|
|
|
|
entity s25fl128s is
|
|
generic (
|
|
LongTimming : boolean := true;
|
|
TimingModel : string := "";
|
|
tdevice_PU : time := 10 ns;
|
|
tdevice_PP256 : time := 10 ns;
|
|
tdevice_PP512 : time := 10 ns;
|
|
tdevice_WRR : time := 10 ns;
|
|
UserPreload : boolean := false
|
|
);
|
|
PORT (
|
|
SI : inout std_ulogic := 'Z';
|
|
SO : inout std_ulogic := 'Z';
|
|
SCK : in std_ulogic := 'Z';
|
|
CSNeg : in std_ulogic := 'Z';
|
|
RSTNeg : in std_ulogic := 'Z';
|
|
WPNeg : inout std_ulogic := 'Z';
|
|
HOLDNeg : inout std_ulogic := 'Z'
|
|
);
|
|
end entity;
|
|
|
|
architecture behaviour of s25fl128s is
|
|
begin
|
|
SO <= '1';
|
|
end architecture;
|