Commit 6fdc725f authored by Greg Daniluk's avatar Greg Daniluk

add SPI gpio to golden for accessing FLASH

parent f3132a44
fetchto = "ip_cores" fetchto = "ip_cores"
modules = {"local" : [ "platform" ], modules = {
"git" : "git://ohwr.org/hdl-core-lib/wr-cores.git" "git" : "git://ohwr.org/hdl-core-lib/wr-cores.git::spi-flash",
"git" : "git://ohwr.org/hdl-core-lib/general-cores.git::proposed_master"
} }
...@@ -11,5 +11,7 @@ syn_project = "spec_init.xise" ...@@ -11,5 +11,7 @@ syn_project = "spec_init.xise"
modules = { "local" : modules = { "local" :
[ "../top", [ "../top",
"../platform/xilinx/chipscope" ] "../ip_cores/general-cores",
"../ip_cores/gn4124-core",
"../ip_cores/wr-cores" ]
} }
...@@ -31,6 +31,14 @@ NET "BUTTON1_I" IOSTANDARD = "LVCMOS18"; ...@@ -31,6 +31,14 @@ NET "BUTTON1_I" IOSTANDARD = "LVCMOS18";
NET "BUTTON2_I" LOC = D21; NET "BUTTON2_I" LOC = D21;
NET "BUTTON2_I" IOSTANDARD = "LVCMOS18"; NET "BUTTON2_I" IOSTANDARD = "LVCMOS18";
NET "SPI_NCS_O" LOC = AA3;
NET "SPI_NCS_O" IOSTANDARD = "LVCMOS25";
NET "SPI_SCLK_O" LOC = Y20;
NET "SPI_SCLK_O" IOSTANDARD = "LVCMOS25";
NET "SPI_MOSI_O" LOC = AB20;
NET "SPI_MOSI_O" IOSTANDARD = "LVCMOS25";
NET "SPI_MISO_I" LOC = AA20;
NET "SPI_MISO_I" IOSTANDARD = "LVCMOS25";
NET "L_RST_N" LOC = N20; NET "L_RST_N" LOC = N20;
NET "L_RST_N" IOSTANDARD = "LVCMOS18"; NET "L_RST_N" IOSTANDARD = "LVCMOS18";
......
...@@ -87,6 +87,11 @@ entity spec_init is ...@@ -87,6 +87,11 @@ entity spec_init is
button1_i : in std_logic; button1_i : in std_logic;
button2_i : in std_logic; button2_i : in std_logic;
spi_sclk_o : out std_logic;
spi_ncs_o : out std_logic;
spi_mosi_o : out std_logic;
spi_miso_i : in std_logic;
------------------------------------------------------------------------- -------------------------------------------------------------------------
-- SFP pins -- SFP pins
------------------------------------------------------------------------- -------------------------------------------------------------------------
...@@ -388,6 +393,10 @@ begin ...@@ -388,6 +393,10 @@ begin
memsize_i => "0000", memsize_i => "0000",
btn1_i => button1_i, btn1_i => button1_i,
btn2_i => button2_i, btn2_i => button2_i,
spi_sclk_o => spi_sclk_o,
spi_ncs_o => spi_ncs_o,
spi_mosi_o => spi_mosi_o,
spi_miso_i => spi_miso_i,
slave_i => periph_slv_in, slave_i => periph_slv_in,
slave_o => periph_slv_out, slave_o => periph_slv_out,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment