VHDL-Compiler
2002-07-13 23:09
szlig
Ich habe einen funktionierenden, freien VHDL-Compiler mit Simulationsprogramm gefunden. Allerdings ist keine Doku dabei.
http://cran.mit.edu/~enaroska/freehdl.tar.gz
Installation unter Linux mit:
Das Compilieren dauert sehr lange. Also nicht verzweifeln.
Ein Beispielprogramm:
Und das Makefile dazu:
Compiliert wird das Programm mit
Weitere Beispiele gibt's auf
http://www.csee.umbc.edu/help/VHDL/samples/samples.html
http://cran.mit.edu/~enaroska/freehdl.tar.gz
Installation unter Linux mit:
tar xfz freehdl.tar.gz
cd freehdl-20020129
./configure --silent
make -s
su
make -s install
echo /usr/local/lib/freehdl >>/etc/ld.so.conf
ldconfig
logout
Das Compilieren dauert sehr lange. Also nicht verzweifeln.
Ein Beispielprogramm:
library std;
use std.textio.all;
entity hello_world is
end;
architecture run_hello_world of hello_world is
begin
proc_hello_world: process is
variable
my_line: line;
begin
write(my_line, string'("hello world."));
writeline(output, my_line);
end process;
end;
Und das Makefile dazu:
LDFLAGS = -lfreehdl-kernel -lstdc++ -lfreehdl-std -lieee
%.cc: %.vhdl
freehdl-v2cc -o "$@" "$<"
Compiliert wird das Programm mit
make hello
Weitere Beispiele gibt's auf
http://www.csee.umbc.edu/help/VHDL/samples/samples.html