Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Gateware
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
12
Issues
12
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Switch - Gateware
Commits
2577f9e4
Commit
2577f9e4
authored
Dec 09, 2010
by
Maciej Lipinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swcore: allocator's\ memory init
parent
0c8fe09b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
2 deletions
+26
-2
swc_page_alloc.vhd
swc_page_alloc.vhd
+26
-2
No files found.
swc_page_alloc.vhd
View file @
2577f9e4
...
...
@@ -236,10 +236,15 @@ architecture syn of swc_page_allocator is
-- signal tmp_pgs : std_logic_vector(1023 downto 0);
signal
tmp_dbg_dealloc
:
std_logic
;
-- used for symulation debugging, don't remove
signal
was_reset
:
std_logic
;
signal
first_addr
:
std_logic
;
signal
ones
:
std_logic_vector
(
c_l1_bitmap_addrbits
-1
downto
0
);
-- signal tmp_dbg_alloc : std_logic;
begin
-- syn
ones
<=
(
others
=>
'1'
);
tmp_dbg_dealloc
<=
'1'
when
(
state
=
FREE_RELEASE_PAGE
)
else
'0'
;
-- this guy is responsible for decoding
...
...
@@ -325,8 +330,27 @@ begin -- syn
-- bugfix by ML (two consecutive page free of the same page addr)
page_freeing_in_last_operation
<=
'0'
;
previously_freed_page
<=
(
others
=>
'0'
);
else
was_reset
<=
'1'
;
first_addr
<=
'1'
;
elsif
(
was_reset
=
'1'
)
then
if
(
first_addr
=
'1'
)
then
l0_wr_data
<=
(
others
=>
'1'
);
l0_wr
<=
'1'
;
first_addr
<=
'0'
;
elsif
(
l0_wr_addr
=
ones
)
then
was_reset
<=
'0'
;
else
l0_wr_addr
<=
std_logic_vector
(
unsigned
(
l0_wr_addr
)
+
1
);
end
if
;
else
-- main finite state machine
case
state
is
...
...
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