Am Freitag, 22. Juni 2012 08:00:48 UTC+2 schrieb Thomas Heller:
Up to now, I have always used processes to create flipflops:
process(clock)
begin
if rising_edge(clock) then
a <= b;
end if;
end process;
Is the following code exactly equivalent? It is much
less verbose and much more readable:
a <= b when rising_edge(clock);
Thanks,
Thomas
Hi Thomas.
We live in a time where reliable synthesis tools are available without costs.
Why didn't you just try it?
To save you the two minutes to test it I tell you the result observed with ISE14 XST:
Yes, it perfectly synthesizes a nice DFF.
No messages like "not a synchronous description" appeared.
But tell us one thing:
Are you really coding each simple FF separately?
What about Resets?
What about ClockEnables?
What about really complex algorithms that could be done within a single synchronous process?
Will the verbosity and readability of the code remain?
I truly appreciate the simpleness of the example and was really surprised that it worked. But I doubt that it has a great practical use, because it really only holds for this simple FF type.
Have a nice synthesis
Eilert