URL
https://opencores.org/ocsvn/lattice6502/lattice6502/trunk
Subversion Repositories lattice6502
[/] [lattice6502/] [ghdl/] [Makefile] - Rev 4
Go to most recent revision | Compare with Previous | Blame | View Log
# This is to do all the necessary stuff to update and run the files
wform.vcd : testbench processor p65c02 ghdl_rom ghdl_ram UART_TX UART_RX
ghdl -r testbench --vcd=wform.vcd --assert-level=none --stop-time=1ms
65C02.o : 65C02.vhd
ghdl -a 65C02.vhd
p65c02 : 65C02.o
ghdl -e p65c02
ghdl_rom.o : ghdl_rom.vhd
ghdl -a ghdl_rom.vhd
ghdl_rom : ghdl_rom.o
ghdl -e ghdl_rom
ghdl_ram.o : ghdl_ram.vhd
ghdl -a ghdl_ram.vhd
ghdl_ram : ghdl_ram.o
ghdl -e ghdl_ram
UART_TX.o : UART_TX.vhd
ghdl -a UART_TX.vhd
UART_TX : UART_TX.o
ghdl -e UART_TX
UART_RX.o : UART_RX.vhd
ghdl -a UART_RX.vhd
UART_RX : UART_RX.o
ghdl -e UART_RX
Processor.o : ghdl_processor.vhd 65C02.o ghdl_ram.o ghdl_rom.o UART_TX.o UART_RX.o
ghdl -a ghdl_processor.vhd
processor : Processor.o p65c02 ghdl_rom ghdl_ram UART_TX UART_RX
ghdl -e processor
Test_bench.o : Test_bench.vhd
ghdl -a Test_bench.vhd
testbench : Test_bench.o processor
ghdl -e testbench
# gtkwave wform.vcd wave_setup.sav
# crasm -o asm -x asm_code>list
# sed -f sedscript asm
# sed -f sedscript asm_code>code
# crasm -o *.o -x *.asm > *.lst
# sed -f sedscript *.o>*.bin
# asm2bin file
# crasm -o $1.o -x $1.asm > $1*.lst
# sed -f sedscript $1.o > $1.bin
Go to most recent revision | Compare with Previous | Blame | View Log