Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit core collection
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
30
Issues
30
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit core collection
Commits
61fbf820
Commit
61fbf820
authored
Dec 10, 2014
by
Grzegorz Daniluk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wrcore_pkg: move functions definition to the package body
parent
c1c265d7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
19 deletions
+26
-19
wrcore_pkg.vhd
modules/wrc_core/wrcore_pkg.vhd
+26
-19
No files found.
modules/wrc_core/wrcore_pkg.vhd
View file @
61fbf820
...
...
@@ -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
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment