Hi!
I'm trying to implement an add-compare-select (ACS) unit in a Spartan3 but I am not satisfied with the speed. The code looks like this:
... type sum_array is array(0 to 7) of signed(13 downto 0); signal state_reg : sum_array; ...
process(clk, rst) is
variable sum1, sum2, sum3, sum4 : sum_array;
begin if rst = '1' then .... elsif clk'event and clk = '1' then
...
sum1(0) := state_reg(a1) + gamma(a2); sum2(0) := state_reg(b1) + gamma(b2); sum3(0) := state_reg(c1) + gamma(c2); sum4(0) := state_reg(d1) + gamma(d2);
state_reg(0)