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

Use 'tech_' prefix for tech_flash_* word width functions.

parent 898964c0
Branches
No related tags found
No related merge requests found
......@@ -35,7 +35,7 @@ ENTITY tech_flash_asmi_parallel IS
g_technology : NATURAL := c_tech_select_default
);
PORT (
addr : IN STD_LOGIC_VECTOR (flash_addr_w(g_technology)-1 DOWNTO 0);
addr : IN STD_LOGIC_VECTOR (tech_flash_addr_w(g_technology)-1 DOWNTO 0);
clkin : IN STD_LOGIC ;
datain : IN STD_LOGIC_VECTOR (7 DOWNTO 0);
rden : IN STD_LOGIC ;
......
......@@ -109,14 +109,14 @@ PACKAGE tech_flash_component_pkg IS
);
end component ip_arria10_remote_update;
function flash_addr_w( technology: in integer ) return integer;
function flash_data_w( technology: in integer ) return integer;
function tech_flash_addr_w( technology: in integer ) return integer;
function tech_flash_data_w( technology: in integer ) return integer;
END tech_flash_component_pkg;
package body tech_flash_component_pkg is
function flash_addr_w( technology : in integer ) return integer is
function tech_flash_addr_w( technology : in integer ) return integer is
begin
if technology = c_tech_stratixiv then
return 24;
......@@ -126,7 +126,7 @@ package body tech_flash_component_pkg is
end if;
end;
function flash_data_w( technology : in integer ) return integer is
function tech_flash_data_w( technology : in integer ) return integer is
begin
if technology = c_tech_stratixiv then
return 24;
......
......@@ -36,7 +36,7 @@ ENTITY tech_flash_remote_update IS
);
PORT (
clock : IN STD_LOGIC;
data_in : IN STD_LOGIC_VECTOR (flash_data_w(g_technology)-1 DOWNTO 0);
data_in : IN STD_LOGIC_VECTOR (tech_flash_data_w(g_technology)-1 DOWNTO 0);
param : IN STD_LOGIC_VECTOR (2 DOWNTO 0);
read_param : IN STD_LOGIC;
reconfig : IN STD_LOGIC;
......@@ -44,7 +44,7 @@ ENTITY tech_flash_remote_update IS
reset_timer : IN STD_LOGIC;
write_param : IN STD_LOGIC;
busy : OUT STD_LOGIC;
data_out : OUT STD_LOGIC_VECTOR (flash_data_w(g_technology)-1 DOWNTO 0)
data_out : OUT STD_LOGIC_VECTOR (tech_flash_data_w(g_technology)-1 DOWNTO 0)
);
END tech_flash_remote_update;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment