Hello,

On 11/07/15 01:31, Vincent Mirian wrote:
I played with ghdl a little bit, however I do have the '--reprint'
command as an option. So I was unable to play with its functionality. I
am looking for hooks on where I can insert my code to the tool, however
I am lacking knowledge on the flow of the tool.  Perhaps some clarity on
the flow would help.

Just try:
ghdl --reprint myfile.vhdl


Also, I am using ghdl for Xilinx FPGAs, which have other
libraries/packages for their devices. I would need to add these
libraries to the tool for the vhdl to compile. Note that I have tried to
use the import command to import these libraries into a directory that I
would use for analysis, however it did not seem to function. I used the
following steps, at command prompt:
1- % mkdir lib
2- % ghdl -i --workdir=lib/ *.vhd ./primitive/*.vhd
3- % ghdl -a --work=lib/ fct_sim.vhd

At this point, I got the following error msg: " ghdl: bad character in
identifier"

--work define the name of the work library, so it should be a valid
identifier.  lib/ isn't but lib should be.


Then, I repeated steps 1 and 2, and for step three I did:
% ghdl -a fct_sim.vhd
and I got the following error: "fct_sim.vhd:38:9: cannot find resource
library "unisim"
fct_sim.vhd:39:12: primary unit "vcomponents" not found in library "unisim""

Use --work=unisim to build the Xilinx libraries.

Can anyone provide some clarity on the flow of GHDL, and show me the
steps to add the Xilinx libraries to the tool?

Also, I read that LLVM can be used with GHDL. Would it make my goal
easier if I incorporate LLVm with GHDL? My original goal is to replace
component in a vhdl with other functions, and analyse the connectivity
of the components.

No, you need to work on the AST, llvm is lower level.

Tristan.


_______________________________________________
Ghdl-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/ghdl-discuss

Reply via email to