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.

41 lines
1.5 KiB

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