Re: question on synthesis



> isn't the
check (in first if statement) on event attribute redundant?

Yes, but compare this (a more common pattern)

process(CLK,RESET)
begin
if (CLK'event and CLK='1') then
...

Now the CLK'event is not redundant any more. You can leave CLK'event in
your case for readability purposes.

--

Statements which can be converted to a truth table can also be
synthesized, like

Shifter:
process(clk=
begin
if clk'event and clk='1' then
for i=1 to v'high loop
v(i-1)<=v(i)
end loop;
end if;
end process;
A synchronous barrel shifter, the shift is done in parallel here.

The synthesizable subset of VHDL depends on the synthesis tool. AFAIK
there is a standard (in progress) which should contain the least common
denominator.

Hubble.

.



Relevant Pages

  • Re: Need syntax/small footprint help
    ... >But actually this is, I think, redundant. ... it is not inside a loop. ... structures has been pre-conditioned via a sort engine ... in regx then this should work... ...
    (comp.lang.perl.misc)
  • Re: How to open multiple files through single ifstream object
    ... I can not create ifstream objects before ... So I am using loop to handle each file. ... Files are automatically closed, so this is redundant, too, if the function ... you'd have to reset the streamstate, ...
    (microsoft.public.vc.language)
  • Re: One more Deaf Grandma topic
    ... Eliminating redundancy is a good thing - it generally ... makes the program easier to read and update. ... calling gets once before enterting the loop, ... this elsif line has a completely redundant clause. ...
    (comp.lang.ruby)
  • Re: Inherent inefficiency in domestic "for" loop?
    ... the right conditions, execute 0 iterations. ... performing the extra redundant evaluation isn't faster. ... If you want a do while loop, you known where to find it. ... And if correctness is unimportant, ...
    (comp.lang.c)