G
GomoX
Hey everyone,
As an assignment for a course in my CS degree, I have to build a D
latch, a D flip flop and a 1 bit register with VHDL. I have been given
the "process" versions of those and I have to rewrite them using
elementary gates and feedback connections.
My teachers are not really profficient in the topic (sadly) but we are
going through hoops to get stuff working. I have read on several pages
that because of limitations in VHDL simulations, basic sequential
circuits such as the latch/ff should not be implemented with gates but
using processes instead.
We are sure that the circuits we described using the component-based
approach in VHDL correctly mimic the hardware versions of those.
Still, behaviours are erratic and GHDL is giving away cryptic "stop-
delta" compilation errors that we can't fix.
This appears to be somewhat confirmed by the fact that this page (the
only one I've been able to find that provides a gate-based
implementation of latches and ffs) does it with some obscure library
reference that I have not available (lsi_10k) and a complicated
definitions instead of usual signaling and port mapping with and's and
not's.
http://esd.cs.ucr.edu/labs/tutorial/dff_gate.vhd
Feel free to browse through the code by checking out with anonymous
SVN:
$ svn checkout http://orga1-2007.googlecode.com/svn/trunk/tp1/
orga1-2007
You can then run "make tb_reg1bit" and examine the resulting VCD to
see what's going on.
I am using this version at home, but the same problems arise with the
debian etch versions at my college:
GHDL 0.26 (20070408) [Sokcho edition]
Compiled with GNAT Version: 4.1.220061115prerelease
My knowledge of VHDL is very close to nil and documentation appears
very sparse on the web. I could really use some help, so thanks in
advance for reading.
Gonzalo
As an assignment for a course in my CS degree, I have to build a D
latch, a D flip flop and a 1 bit register with VHDL. I have been given
the "process" versions of those and I have to rewrite them using
elementary gates and feedback connections.
My teachers are not really profficient in the topic (sadly) but we are
going through hoops to get stuff working. I have read on several pages
that because of limitations in VHDL simulations, basic sequential
circuits such as the latch/ff should not be implemented with gates but
using processes instead.
We are sure that the circuits we described using the component-based
approach in VHDL correctly mimic the hardware versions of those.
Still, behaviours are erratic and GHDL is giving away cryptic "stop-
delta" compilation errors that we can't fix.
This appears to be somewhat confirmed by the fact that this page (the
only one I've been able to find that provides a gate-based
implementation of latches and ffs) does it with some obscure library
reference that I have not available (lsi_10k) and a complicated
definitions instead of usual signaling and port mapping with and's and
not's.
http://esd.cs.ucr.edu/labs/tutorial/dff_gate.vhd
Feel free to browse through the code by checking out with anonymous
SVN:
$ svn checkout http://orga1-2007.googlecode.com/svn/trunk/tp1/
orga1-2007
You can then run "make tb_reg1bit" and examine the resulting VCD to
see what's going on.
I am using this version at home, but the same problems arise with the
debian etch versions at my college:
GHDL 0.26 (20070408) [Sokcho edition]
Compiled with GNAT Version: 4.1.220061115prerelease
My knowledge of VHDL is very close to nil and documentation appears
very sparse on the web. I could really use some help, so thanks in
advance for reading.
Gonzalo