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
43baf0b2
Commit
43baf0b2
authored
Jan 25, 2012
by
Maciej Lipinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swcore: change in input_block (possible bug with flush), added old page allocator to the pkg
parent
2b125360
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
1 deletion
+23
-1
swc_swcore_pkg.vhd
modules/wrsw_swcore/swc_swcore_pkg.vhd
+21
-0
xswc_input_block.vhd
modules/wrsw_swcore/xswc_input_block.vhd
+2
-1
No files found.
modules/wrsw_swcore/swc_swcore_pkg.vhd
View file @
43baf0b2
...
...
@@ -121,6 +121,27 @@ package swc_swcore_pkg is
zero_o
:
out
std_logic
);
end
component
;
component
swc_page_allocator
generic
(
g_num_pages
:
integer
;
g_page_addr_bits
:
integer
;
g_use_count_bits
:
integer
);
port
(
clk_i
:
in
std_logic
;
rst_n_i
:
in
std_logic
;
alloc_i
:
in
std_logic
;
free_i
:
in
std_logic
;
force_free_i
:
in
std_logic
;
set_usecnt_i
:
in
std_logic
;
usecnt_i
:
in
std_logic_vector
(
g_use_count_bits
-1
downto
0
);
pgaddr_i
:
in
std_logic_vector
(
g_page_addr_bits
-1
downto
0
);
pgaddr_o
:
out
std_logic_vector
(
g_page_addr_bits
-1
downto
0
);
pgaddr_valid_o
:
out
std_logic
;
idle_o
:
out
std_logic
;
done_o
:
out
std_logic
;
nomem_o
:
out
std_logic
);
end
component
;
--component swc_page_allocator
component
swc_page_allocator_new
generic
(
...
...
modules/wrsw_swcore/xswc_input_block.vhd
View file @
43baf0b2
...
...
@@ -1387,7 +1387,8 @@ begin --arch
drdy
<=
((
not
(
fifo_empty
and
(
not
flush_with_valid_data
)))
and
(
not
mpm_full_i
)
and
not
write_ctrl_out
(
1
))
when
(
write_state
=
S_WRITE_MPM
)
else
'0'
;
flush_sig
<=
(
write_ctrl_out
(
1
))
when
(
write_state
=
S_WRITE_MPM
)
else
'0'
;
--flush_sig <= (write_ctrl_out(1)) when (write_state = S_WRITE_MPM) else '0';
flush_sig
<=
'1'
when
((
write_state
=
S_WRITE_MPM
)
and
(
write_ctrl_out
=
b"11"
))
else
'0'
;
mpm_flush
<=
flush_reg
or
flush_sig
;
...
...
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