Commit 1fe6cd58 authored by Maciej Lipinski's avatar Maciej Lipinski

[swcore/mulit_alloc] removing random slowing down of alloc arbitere

parent d6adcb9c
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment