B
Brian Drummond
Guest
On Mon, 31 Dec 2012 10:50:08 +0000, Andrew Holme wrote:
(btw it's Ada not ADA, since it's a name not an acronym)
I am increasingly finding the synergy between Ada and VHDL to be very
useful. I can now use a high level language on both sides of the HW/SW
divide, even for low-level programming on AVR or MSP430 processors, and
(unless a customer specifically asks for C) no longer bother with the
tedious debugging and poor productivity that a low level language like C
used to give.
I have experimentally called Ada code from VHDL, and vice versa, using
the minimal VHPIDirect interface available in GHDL. The fact that GHDL
uses GCC, which has very good Ada support, makes this easy.
The link works both ways, but I haven't tried it with any other simulator.
This ought to allow me (when I get back to that project) to use the very
clean object-oriented facilities of Ada-2005 to give the sort of
constrained random test methodology that Janick Bergeron talks about in
his "Writing Testbenches" book. It's not that I don't appreciate the OSVVM
approach of doing it all in VHDL, but I believe that using inheritance
and class extension allow much more reuse and faster test development.
- Brian
Yes, which is seriously one of VHDL's strong points."rickman" wrote in message news:kbl7n3$c81$1@dont-email.me...
I think if you learn VHDL first, Verilog will feel like a breath of
fresh air... lol
VHDL plays ADA to Verilog's "C"
(btw it's Ada not ADA, since it's a name not an acronym)
I am increasingly finding the synergy between Ada and VHDL to be very
useful. I can now use a high level language on both sides of the HW/SW
divide, even for low-level programming on AVR or MSP430 processors, and
(unless a customer specifically asks for C) no longer bother with the
tedious debugging and poor productivity that a low level language like C
used to give.
I have experimentally called Ada code from VHDL, and vice versa, using
the minimal VHPIDirect interface available in GHDL. The fact that GHDL
uses GCC, which has very good Ada support, makes this easy.
The link works both ways, but I haven't tried it with any other simulator.
This ought to allow me (when I get back to that project) to use the very
clean object-oriented facilities of Ada-2005 to give the sort of
constrained random test methodology that Janick Bergeron talks about in
his "Writing Testbenches" book. It's not that I don't appreciate the OSVVM
approach of doing it all in VHDL, but I believe that using inheritance
and class extension allow much more reuse and faster test development.
- Brian