B
blakaxe@gmail.com
Guest
This is a snippet of my code
always @(*)
begin
for(i=ring_length;i>0;i=i-1)
begin
if(i==ring_length) result = connect[ring_length];
else result = result ^ (connect & gen_poly);
end
end
This following statement produces a huge XOR gate with anywhere
between 0-15 inputs depending on my value of i.
result = result ^ (connect & gen_poly);
How do I make sure that it is implemented as an XOR tree with only 2
input XOR gates?
I am using the Altera Quartus synthesis tool.
Thanks
always @(*)
begin
for(i=ring_length;i>0;i=i-1)
begin
if(i==ring_length) result = connect[ring_length];
else result = result ^ (connect & gen_poly);
end
end
This following statement produces a huge XOR gate with anywhere
between 0-15 inputs depending on my value of i.
result = result ^ (connect & gen_poly);
How do I make sure that it is implemented as an XOR tree with only 2
input XOR gates?
I am using the Altera Quartus synthesis tool.
Thanks