joc_06
Member level 2
Just a quickie here:
How can i and all the bits of a bus to each other in VHDL?
eg
I just dont want to have to hard code the width of the bus as it may change through parameter's
What i have at the moment is:
It works and simulates as id expect but in synthesis i am getting a crazy long combinatorial path which wont meet timing and i think it is due to this code. Note i have a few levels of this type of code in place.
Any idea's for a quick fix?
Thanks
John
How can i and all the bits of a bus to each other in VHDL?
eg
Code:
bus <= match(2) and match(1) and match(0);
I just dont want to have to hard code the width of the bus as it may change through parameter's
What i have at the moment is:
Code:
process (match)
variable result: std_logic;
begin
result := '1';
for i in match'range loop
result := result and match(i);
end loop;
element_match <= result;
end process;
It works and simulates as id expect but in synthesis i am getting a crazy long combinatorial path which wont meet timing and i think it is due to this code. Note i have a few levels of this type of code in place.
Any idea's for a quick fix?
Thanks
John