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
c2408157
Commit
c2408157
authored
Mar 19, 2012
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swcore: removed unnecessary files
parent
ed6aeb40
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
62 deletions
+0
-62
swc_page_alloc_old.vhd
modules/wrsw_swcore/old_allocator/swc_page_alloc_old.vhd
+0
-0
swc_block_alloc.vhd
modules/wrsw_swcore/swc_block_alloc.vhd
+0
-62
No files found.
modules/wrsw_swcore/swc_page_alloc_old.vhd
→
modules/wrsw_swcore/
old_allocator/
swc_page_alloc_old.vhd
View file @
c2408157
File moved
modules/wrsw_swcore/swc_block_alloc.vhd
deleted
100644 → 0
View file @
ed6aeb40
library
ieee
;
use
ieee
.
std_logic_1164
.
all
;
use
ieee
.
numeric_std
.
all
;
entity
swc_block_allocator
is
generic
(
g_num_blocks
:
integer
:
=
2048
;
g_log2_num_blocks
:
integer
:
=
13
;
g_usecount_bits
:
integer
:
=
4
);
port
(
clk_i
:
in
std_logic
;
rst_n_i
:
in
std_logic
;
idle_o
:
out
std_logic
;
alloc_rq_i
:
in
std_logic
;
alloc_size_i
:
in
std_logic_vector
(
7
downto
0
);
alloc_done_o
:
out
std_logic
;
alloc_nomem_o
:
out
std_logic
;
alloc_use_count_i
:
in
std_logic_vector
(
g_usecount_bits
-1
downto
0
);
alloc_addr_o
:
out
std_logic_vector
(
g_log2_num_blocks
-1
downto
0
);
free_rq_i
:
in
std_logic
;
free_addr_i
:
in
std_logic_vector
(
g_log2_num_blocks
-1
downto
0
);
free_done_o
:
out
std_logic
);
end
swc_block_allocator
;
architecture
syn
of
swc_block_allocator
is
constant
c_l1_size
:
integer
:
=
g_num_blocks
/
32
;
signal
l1_full
:
std_logic_vector
(
c_l1_size
-1
downto
0
);
-- 1 means block is
-- full
signal
l1_empty
:
std_logic_vector
(
c_l1_size
-1
downto
0
);
-- 1 means block is
-- empty
type
t_state
is
(
IDLE
,
ALLOC_LOOKUP_L1
);
begin
-- syn
process
(
clk_i
,
rst_n_i
)
begin
-- process
if
rising_edge
(
clk_i
)
then
if
(
rst_n_i
=
'0'
)
then
l1_full
<=
(
others
=>
'0'
);
l1_empty
<=
(
others
=>
'1'
);
else
end
if
;
end
if
;
end
process
;
end
syn
;
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