Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
wr-switch-hdl
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
white-rabbit
wr-switch-hdl
Commits
ed6aeb40
Commit
ed6aeb40
authored
Mar 18, 2012
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new allocator
parent
58d24af2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
127 additions
and
87 deletions
+127
-87
swc_multiport_page_allocator.vhd
...rsw_swcore/new_allocator/swc_multiport_page_allocator.vhd
+13
-6
swc_page_alloc.vhd
modules/wrsw_swcore/new_allocator/swc_page_alloc.vhd
+114
-81
No files found.
modules/wrsw_swcore/swc_multiport_page_allocator.vhd
→
modules/wrsw_swcore/
new_allocator/
swc_multiport_page_allocator.vhd
View file @
ed6aeb40
...
...
@@ -6,7 +6,7 @@
-- Author : Tomasz Wlostowski
-- Company : CERN BE-Co-HT
-- Created : 2010-04-08
-- Last update: 2012-03-1
6
-- Last update: 2012-03-1
5
-- Platform : FPGA-generic
-- Standard : VHDL'87
-------------------------------------------------------------------------------
...
...
@@ -109,7 +109,12 @@ architecture syn of swc_multiport_page_allocator is
pgaddr_o
:
out
std_logic_vector
(
g_page_addr_width
-1
downto
0
);
free_last_usecnt_o
:
out
std_logic
;
done_o
:
out
std_logic
;
nomem_o
:
out
std_logic
);
nomem_o
:
out
std_logic
;
dbg_double_free_o
:
out
std_logic
;
dbg_double_force_free_o
:
out
std_logic
;
dbg_q_write_o
:
out
std_logic
;
dbg_q_read_o
:
out
std_logic
;
dbg_initializing_o
:
out
std_logic
);
end
component
;
type
t_port_state
is
record
...
...
@@ -153,7 +158,6 @@ architecture syn of swc_multiport_page_allocator is
signal
dbg_double_force_free
,
dbg_double_free
:
std_logic
;
signal
dbg_q_read
,
dbg_q_write
,
dbg_initializing
:
std_logic
;
signal
dbg_rd_ptr
,
dbg_wr_ptr
:
std_logic_vector
(
g_page_addr_width
-1
downto
0
);
function
f_bool_2_sl
(
x
:
boolean
)
return
std_logic
is
begin
...
...
@@ -295,7 +299,12 @@ begin -- syn
pgaddr_i
=>
pg_addr
,
pgaddr_o
=>
pg_addr_alloc
,
done_o
=>
pg_done
,
nomem_o
=>
pg_nomem
);
nomem_o
=>
pg_nomem
,
dbg_double_force_free_o
=>
dbg_double_force_free
,
dbg_double_free_o
=>
dbg_double_free
,
dbg_q_read_o
=>
dbg_q_read
,
dbg_q_write_o
=>
dbg_q_write
,
dbg_initializing_o
=>
dbg_initializing
);
nomem_o
<=
pg_nomem
;
pgaddr_alloc_o
<=
pg_addr_alloc
;
...
...
@@ -342,8 +351,6 @@ begin -- syn
tap_out_o
<=
f_slv_resize
(
dbg_wr_ptr
&
dbg_rd_ptr
&
dbg_q_write
&
dbg_q_read
&
dbg_initializing
&
...
...
modules/wrsw_swcore/swc_page_alloc.vhd
→
modules/wrsw_swcore/
new_allocator/
swc_page_alloc.vhd
View file @
ed6aeb40
This diff is collapsed.
Click to expand it.
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