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
1fe6cd58
Commit
1fe6cd58
authored
Feb 20, 2014
by
Maciej Lipinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[swcore/mulit_alloc] removing random slowing down of alloc arbitere
parent
d6adcb9c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
22 deletions
+22
-22
swc_multiport_page_allocator.vhd
.../optimized_new_allocator/swc_multiport_page_allocator.vhd
+22
-22
No files found.
modules/wrsw_swcore/optimized_new_allocator/swc_multiport_page_allocator.vhd
View file @
1fe6cd58
...
...
@@ -402,37 +402,37 @@ begin -- syn
end
process
;
-- p_arbitrate : process(clk_i)
-- begin
-- if rising_edge(clk_i) then
-- if rst_n_i = '0'then
-- arb_grant <= (others => '0');
-- else
-- f_rr_arbitrate(arb_req, arb_grant, arb_grant);
-- end if;
-- end if;
-- end process;
p_arbitrate
:
process
(
clk_i
)
variable
seed1
,
seed2
:
positive
;
-- Seed values for random generator
variable
rand
:
real
;
-- Random real-number value in range 0 to 1.0
p_arbitrate
:
process
(
clk_i
)
begin
if
rising_edge
(
clk_i
)
then
if
rst_n_i
=
'0'
then
arb_grant
<=
(
others
=>
'0'
);
else
UNIFORM
(
seed1
,
seed2
,
rand
);
if
(
rand
<
0
.
05
)
then
f_rr_arbitrate
(
arb_req
,
arb_grant
,
arb_grant
);
else
arb_grant
<=
(
others
=>
'0'
);
end
if
;
f_rr_arbitrate
(
arb_req
,
arb_grant
,
arb_grant
);
end
if
;
end
if
;
end
process
;
-- p_arbitrate : process(clk_i)
-- variable seed1, seed2 : positive; -- Seed values for random generator
-- variable rand : real; -- Random real-number value in range 0 to 1.0
-- begin
-- if rising_edge(clk_i) then
-- if rst_n_i = '0'then
-- arb_grant <= (others => '0');
-- else
-- UNIFORM(seed1, seed2, rand);
--
-- if(rand < 0.05) then
-- f_rr_arbitrate(arb_req, arb_grant, arb_grant);
-- else
-- arb_grant <= (others => '0');
-- end if;
--
-- end if;
-- end if;
-- end process;
p_req_vec_reg
:
process
(
clk_i
)
begin
if
rising_edge
(
clk_i
)
then
...
...
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