Date: Mon, 19 Dec 2016 13:31:27 -0700 From: "Dale Scott" <dalescott@shaw.ca> To: <freebsd-questions@freebsd.org> Subject: ghdl and compatibility with linux pseudoterminal Message-ID: <002101d25a36$e0accac0$a2066040$@shaw.ca>
next in thread | raw e-mail | index | archive | help
Hi, I am trying to use the ghdl package to simulate a micro-coded cpu/sequencer[1] included as part of a FPGA design. The vhdl model for the cpu uses a pseudo-terminal[2] to communicate with the outside world (e.g. using minicom), and ghdl gives an error compiling the cpu with the pseudo-termnal code. Any suggestions? (or a more appropriate list?). dale@whizzer:~/ucodecpu % gmake ghdl -a --ieee=synopsys reg.vhd ghdl -a --ieee=synopsys regfile.vhd ghdl -a --ieee=synopsys alu.vhd ghdl -a --ieee=synopsys prog_cntr.vhd ghdl -a --ieee=synopsys ram.vhd ghdl -a --ieee=synopsys rom.vhd ghdl -a --ieee=synopsys memory.vhd ghdl -a --ieee=synopsys cpu.vhd ghdl -a --ieee=synopsys ulogic.vhd ghdl -a --ieee=synopsys ghdl_uart_pkg.vhd ghdl -a --ieee=synopsys ghdl_uart.vhd ghdl -a --ieee=synopsys ghdl_uart_tb.vhd gcc -c ghdl_pty.c ./uassem full_microcode 2> /dev/null ./gen_rom control.rom 8 32 controlrom.vhd ./gen_rom decision.rom 8 16 decisionrom.vhd ./massem basic_program.s 2> /dev/null ./gen_rom main.rom 14 16 mainrom.vhd ghdl -e -Wl,ghdl_pty.o --ieee=synopsys cpu ghdl: compilation error gmake: *** [Makefile:12: cpu] Error 1 dale@whizzer:~/ucodecpu % Fwiw, I had to comment out the "#include <linux/ioctl.h>" in ghdl_pty.c as "<linux/ioctl.h> not found". Thanks, Dale [1] http://minnie.tuhs.org/Programs/UcodeCPU/ghdl_download.html [2] https://groups.google.com/forum/#!msg/alt.sources/25Iy6XQxwBk/ujkYEBm5jrwJ --- Transparency with Trust Blog: http://www.dalescott.net <http://www.dalescott.net/> LinkedIn: https://ca.linkedin.com/in/dalescott
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?002101d25a36$e0accac0$a2066040$>