Library of reusable VHDL components
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.5 KiB

  1. SIM_SRC = ../sim
  2. SYN_SRC = ../syn
  3. VHD_STD = 02
  4. .PHONY: sim
  5. sim: vhdl2008 queuet simt spit
  6. .PHONY: vhdl2008
  7. vhdl2008 : env_c.vhd numeric_std_additions.vhd numeric_std_unsigned_c.vhd standard_additions_c.vhd standard_textio_additions_c.vhd std_logic_1164_additions.vhd
  8. ghdl -a --std=$(VHD_STD) --work=ieee_proposed standard_additions_c.vhd standard_textio_additions_c.vhd std_logic_1164_additions.vhd numeric_std_additions.vhd numeric_std_unsigned_c.vhd env_c.vhd
  9. queuet : QueueT.vhd $(SIM_SRC)/QueueP.vhd $(SIM_SRC)/AssertP.vhd
  10. ghdl -a --std=$(VHD_STD) --work=libvhdl $(SIM_SRC)/AssertP.vhd $(SIM_SRC)/QueueP.vhd
  11. ghdl -a --std=$(VHD_STD) QueueT.vhd
  12. ghdl -e --std=$(VHD_STD) QueueT
  13. ghdl -r --std=$(VHD_STD) QueueT
  14. simt : vhdl2008 SimT.vhd $(SIM_SRC)/AssertP.vhd $(SIM_SRC)/SimP.vhd
  15. ghdl -a --std=$(VHD_STD) --work=libvhdl $(SIM_SRC)/AssertP.vhd $(SIM_SRC)/SimP.vhd
  16. ghdl -a --std=$(VHD_STD) SimT.vhd
  17. ghdl -e --std=$(VHD_STD) SimT
  18. ghdl -r --std=$(VHD_STD) SimT
  19. spit : vhdl2008 SpiT.vhd $(SIM_SRC)/AssertP.vhd $(SIM_SRC)/SimP.vhd $(SYN_SRC)/SpiSlaveE.vhd $(SYN_SRC)/SpiMasterE.vhd
  20. ghdl -a --std=$(VHD_STD) --work=libvhdl $(SIM_SRC)/AssertP.vhd $(SIM_SRC)/SimP.vhd
  21. ghdl -a --std=$(VHD_STD) -fpsl $(SYN_SRC)/SpiSlaveE.vhd $(SYN_SRC)/SpiMasterE.vhd
  22. ghdl -a --std=$(VHD_STD) -fpsl SpiT.vhd
  23. ghdl -e --std=$(VHD_STD) SpiT
  24. ghdl -r --std=$(VHD_STD) SpiT --wave=spit.ghw
  25. .PHONY: clean
  26. clean:
  27. rm -f *.o
  28. rm -f *.cf
  29. rm -f *.ghw
  30. rm -f queuet
  31. rm -f stringt
  32. rm -f simt
  33. rm -f spit