Commit 61fbf820 authored by Grzegorz Daniluk's avatar Grzegorz Daniluk

wrcore_pkg: move functions definition to the package body

parent c1c265d7
......@@ -11,25 +11,8 @@ use work.softpll_pkg.all;
package wrcore_pkg is
function f_pcs_data_width(pcs_16 : boolean)
return integer is
begin
if (pcs_16) then
return 16;
else
return 8;
end if;
end function;
function f_pcs_bts_width(pcs_16 : boolean)
return integer is
begin
if (pcs_16) then
return 5;
else
return 4;
end if;
end function;
function f_pcs_data_width(pcs_16 : boolean) return integer;
function f_pcs_bts_width(pcs_16 : boolean) return integer;
-----------------------------------------------------------------------------
--PPS generator
......@@ -629,3 +612,27 @@ package wrcore_pkg is
end component;
end wrcore_pkg;
package body wrcore_pkg is
function f_pcs_data_width(pcs_16 : boolean)
return integer is
begin
if (pcs_16) then
return 16;
else
return 8;
end if;
end function;
function f_pcs_bts_width(pcs_16 : boolean)
return integer is
begin
if (pcs_16) then
return 5;
else
return 4;
end if;
end function;
end wrcore_pkg;
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