Do you have a question? Post it now! No Registration Necessary
Subject
- Posted on
Re: Starter Question and Opinion on VHDL
- 07-04-2003
- Brad Smallridge
July 4, 2003, 7:51 pm

A follow up:
Someone sent this solution to me and said it would provide no assymetrical
delays and would be better than a long elsif chain. Does anyone else have
any experience with this? It seems to me that a good fitter would render the
same solution.
Hi,
A clean way of doing this is:
CASE fastclkcnt IS
WHEN 2 =>
mrasnext <= '0';
mcasnext <= '1';
mwenext <= '0';
mdqmnext <= '1';
WHEN 4 =>
mrasnext <= '0';
mcasnext <= '1';
mwenext <= '0';
mdqmnext <= '1';
WHEN 12 =>
mrasnext <= '0';
mcasnext <= '1';
mwenext <= '0';
mdqmnext <= '1';
WHEN OTHERS =>
END CASE;
like this you make a decoder-mux arrangement
equal to all signals, so no strugle with assimetric
delays. (a long elseif chain is not a good solution).
Someone sent this solution to me and said it would provide no assymetrical
delays and would be better than a long elsif chain. Does anyone else have
any experience with this? It seems to me that a good fitter would render the
same solution.
Hi,
A clean way of doing this is:
CASE fastclkcnt IS
WHEN 2 =>
mrasnext <= '0';
mcasnext <= '1';
mwenext <= '0';
mdqmnext <= '1';
WHEN 4 =>
mrasnext <= '0';
mcasnext <= '1';
mwenext <= '0';
mdqmnext <= '1';
WHEN 12 =>
mrasnext <= '0';
mcasnext <= '1';
mwenext <= '0';
mdqmnext <= '1';
WHEN OTHERS =>
END CASE;
like this you make a decoder-mux arrangement
equal to all signals, so no strugle with assimetric
delays. (a long elseif chain is not a good solution).

Re: Starter Question and Opinion on VHDL

"Better" is a style choice. The "assymetrical delays" (sic) is a
canard caused by the respondent's lack of understanding of VHDL
signal assignment, I suspect. The meaning of the VHDL is the
same in both cases. As you say, a good synthesis tool should
give the same results for both (it's not really a "fitter"
problem).
Finally, any design that relies on symmetry of delay through
synthesised asynchronous logic deserves to fail.
--
Jonathan Bromley, Consultant
DOULOS - Developing Design Know-how
Jonathan Bromley, Consultant
DOULOS - Developing Design Know-how
We've slightly trimmed the long signature. Click to see the full one.
Site Timeline
- » division
- — Next thread in » Field-Programmable Gate Arrays
-
- » information required
- — Previous thread in » Field-Programmable Gate Arrays
-
- » Achronix Semiconductor in Talks for Merger
- — Newest thread in » Field-Programmable Gate Arrays
-
- » Re: OT: The Deep State defined
- — The site's Newest Thread. Posted in » Electronics Design
-