Skip to content
Snippets Groups Projects
Commit 3d24b62b authored by Eric Kooistra's avatar Eric Kooistra
Browse files

Ported IP for remu (ip_stratixiv_remote_update) and epcs...

Ported IP for remu (ip_stratixiv_remote_update) and epcs (ip_stratixiv_asmi_parallel) from src/ip in UniBoard to technology/altera/stratixiv and technology/flash in RadioHDL.
parent 56d97fc9
No related branches found
No related tags found
No related merge requests found
hdl_lib_name = ip_stratixiv
hdl_library_clause_name = ip_stratixiv_lib
hdl_lib_uses =
build_sim_dir = $HDL_BUILD_DIR
build_synth_dir =
synth_files =
ip_stratixiv_asmi_parallel.vhd
ip_stratixiv_remote_update.vhd
test_bench_files =
This diff is collapsed.
This diff is collapsed.
hdl_lib_name = tech_flash
hdl_library_clause_name = tech_flash_lib
hdl_lib_uses = technology ip_stratixiv
build_sim_dir = $HDL_BUILD_DIR
build_synth_dir =
synth_files =
tech_flash_component_pkg.vhd
tech_flash_asmi_parallel.vhd
tech_flash_remote_update.vhd
test_bench_files =
-------------------------------------------------------------------------------
--
-- Copyright (C) 2014
-- ASTRON (Netherlands Institute for Radio Astronomy) <http://www.astron.nl/>
-- P.O.Box 2, 7990 AA Dwingeloo, The Netherlands
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
--
-------------------------------------------------------------------------------
-- Purpose : Active Serial Memory Interface to flash device
LIBRARY ieee, technology_lib;
USE ieee.std_logic_1164.all;
USE work.tech_flash_component_pkg.ALL;
USE technology_lib.technology_pkg.ALL;
USE technology_lib.technology_select_pkg.ALL;
-- Declare IP libraries to ensure default binding in simulation. The IP library clause is ignored by synthesis.
LIBRARY ip_stratixiv_lib;
ENTITY tech_flash_asmi_parallel IS
GENERIC (
g_technology : NATURAL := c_tech_select_default
);
PORT (
addr : IN STD_LOGIC_VECTOR (23 DOWNTO 0);
clkin : IN STD_LOGIC ;
datain : IN STD_LOGIC_VECTOR (7 DOWNTO 0);
rden : IN STD_LOGIC ;
read : IN STD_LOGIC ;
sector_erase : IN STD_LOGIC ;
shift_bytes : IN STD_LOGIC ;
wren : IN STD_LOGIC ;
write : IN STD_LOGIC ;
busy : OUT STD_LOGIC ;
data_valid : OUT STD_LOGIC ;
dataout : OUT STD_LOGIC_VECTOR (7 DOWNTO 0);
illegal_erase : OUT STD_LOGIC ;
illegal_write : OUT STD_LOGIC
);
END tech_flash_asmi_parallel;
ARCHITECTURE str OF tech_flash_asmi_parallel IS
BEGIN
gen_stratixiv : IF g_technology=c_tech_stratixiv GENERATE
u0 : ip_stratixiv_asmi_parallel
PORT MAP (addr, clkin, datain, rden, read, sector_erase, shift_bytes, wren, write, busy, data_valid, dataout, illegal_erase, illegal_write)
END GENERATE;
END ARCHITECTURE;
\ No newline at end of file
-------------------------------------------------------------------------------
--
-- Copyright (C) 2014
-- ASTRON (Netherlands Institute for Radio Astronomy) <http://www.astron.nl/>
-- P.O.Box 2, 7990 AA Dwingeloo, The Netherlands
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
--
-------------------------------------------------------------------------------
-- Purpose: IP components declarations for various devices that get wrapped by the tech components
LIBRARY IEEE;
USE IEEE.STD_LOGIC_1164.ALL;
PACKAGE tech_flash_component_pkg IS
-----------------------------------------------------------------------------
-- stratixiv
-----------------------------------------------------------------------------
COMPONENT ip_stratixiv_asmi_parallel IS
PORT (
addr : IN STD_LOGIC_VECTOR (23 DOWNTO 0);
clkin : IN STD_LOGIC ;
datain : IN STD_LOGIC_VECTOR (7 DOWNTO 0);
rden : IN STD_LOGIC ;
read : IN STD_LOGIC ;
sector_erase : IN STD_LOGIC ;
shift_bytes : IN STD_LOGIC ;
wren : IN STD_LOGIC ;
write : IN STD_LOGIC ;
busy : OUT STD_LOGIC ;
data_valid : OUT STD_LOGIC ;
dataout : OUT STD_LOGIC_VECTOR (7 DOWNTO 0);
illegal_erase : OUT STD_LOGIC ;
illegal_write : OUT STD_LOGIC
);
COMPONENT ip_stratixiv_remote_update IS
PORT (
clock : IN STD_LOGIC ;
data_in : IN STD_LOGIC_VECTOR (23 DOWNTO 0);
param : IN STD_LOGIC_VECTOR (2 DOWNTO 0);
read_param : IN STD_LOGIC ;
reconfig : IN STD_LOGIC ;
reset : IN STD_LOGIC ;
reset_timer : IN STD_LOGIC ;
write_param : IN STD_LOGIC ;
busy : OUT STD_LOGIC ;
data_out : OUT STD_LOGIC_VECTOR (23 DOWNTO 0)
);
END COMPONENT;
END tech_flash_component_pkg;
-------------------------------------------------------------------------------
--
-- Copyright (C) 2014
-- ASTRON (Netherlands Institute for Radio Astronomy) <http://www.astron.nl/>
-- P.O.Box 2, 7990 AA Dwingeloo, The Netherlands
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
--
-------------------------------------------------------------------------------
-- Purpose : Remote update from flash device
LIBRARY ieee, technology_lib;
USE ieee.std_logic_1164.all;
USE work.tech_flash_component_pkg.ALL;
USE technology_lib.technology_pkg.ALL;
USE technology_lib.technology_select_pkg.ALL;
-- Declare IP libraries to ensure default binding in simulation. The IP library clause is ignored by synthesis.
LIBRARY ip_stratixiv_lib;
ENTITY tech_flash_remote_update IS
GENERIC (
g_technology : NATURAL := c_tech_select_default
);
PORT (
clock : IN STD_LOGIC;
data_in : IN STD_LOGIC_VECTOR (23 DOWNTO 0);
param : IN STD_LOGIC_VECTOR (2 DOWNTO 0);
read_param : IN STD_LOGIC;
reconfig : IN STD_LOGIC;
reset : IN STD_LOGIC;
reset_timer : IN STD_LOGIC;
write_param : IN STD_LOGIC;
busy : OUT STD_LOGIC;
data_out : OUT STD_LOGIC_VECTOR (23 DOWNTO 0)
);
END tech_flash_remote_update;
ARCHITECTURE str OF tech_flash_remote_update IS
BEGIN
gen_stratixiv : IF g_technology=c_tech_stratixiv GENERATE
u0 : ip_stratixiv_remote_update
PORT MAP (clock, data_in, param, read_param, reconfig, reset, reset_timer, write_param, busy, data_out);
END GENERATE;
END ARCHITECTURE;
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment