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.

51 lines
2.1 KiB

  1. SIM_SRC = ../sim
  2. SYN_SRC = ../syn
  3. VHD08_SRC = vhdl_2008
  4. VHD_STD = 02
  5. .PHONY: sim
  6. sim: vhdl2008 osvvm queuet simt spit
  7. .PHONY: vhdl2008
  8. vhdl2008 : $(VHD08_SRC)/env_c.vhdl $(VHD08_SRC)/numeric_std_additions.vhdl $(VHD08_SRC)/numeric_std_unsigned_c.vhdl \
  9. $(VHD08_SRC)/standard_additions_c.vhdl $(VHD08_SRC)/standard_textio_additions_c.vhdl $(VHD08_SRC)/std_logic_1164_additions.vhdl
  10. ghdl -a --std=$(VHD_STD) --work=ieee_proposed $(VHD08_SRC)/standard_additions_c.vhdl \
  11. $(VHD08_SRC)/standard_textio_additions_c.vhdl $(VHD08_SRC)/std_logic_1164_additions.vhdl $(VHD08_SRC)/numeric_std_additions.vhdl \
  12. $(VHD08_SRC)/numeric_std_unsigned_c.vhdl $(VHD08_SRC)/env_c.vhdl
  13. .PHONY: osvvm
  14. osvvm : vhdl2008 osvvm_2.1/SortListPkg_int.vhd osvvm_2.1/RandomBasePkg.vhd osvvm_2.1/RandomPkg.vhd
  15. ghdl -a --std=$(VHD_STD) --work=osvvm --ieee=synopsys osvvm_2.1/SortListPkg_int.vhd osvvm_2.1/RandomBasePkg.vhd osvvm_2.1/RandomPkg.vhd
  16. queuet : QueueT.vhd $(SIM_SRC)/QueueP.vhd $(SIM_SRC)/AssertP.vhd
  17. ghdl -a --std=$(VHD_STD) --work=libvhdl $(SIM_SRC)/AssertP.vhd $(SIM_SRC)/QueueP.vhd
  18. ghdl -a --std=$(VHD_STD) QueueT.vhd
  19. ghdl -e --std=$(VHD_STD) QueueT
  20. ghdl -r --std=$(VHD_STD) QueueT
  21. simt : vhdl2008 osvvm SimT.vhd $(SIM_SRC)/QueueP.vhd $(SIM_SRC)/AssertP.vhd $(SIM_SRC)/SimP.vhd
  22. ghdl -a --std=$(VHD_STD) --work=libvhdl $(SIM_SRC)/QueueP.vhd $(SIM_SRC)/AssertP.vhd $(SIM_SRC)/SimP.vhd
  23. ghdl -a --std=$(VHD_STD) --ieee=synopsys SimT.vhd
  24. ghdl -e --std=$(VHD_STD) --ieee=synopsys SimT
  25. ghdl -r --std=$(VHD_STD) SimT
  26. spit : vhdl2008 osvvm SpiT.vhd $(SIM_SRC)/AssertP.vhd $(SIM_SRC)/SimP.vhd $(SIM_SRC)/QueueP.vhd $(SYN_SRC)/SpiSlaveE.vhd $(SYN_SRC)/SpiMasterE.vhd
  27. ghdl -a --std=$(VHD_STD) --work=libvhdl $(SIM_SRC)/AssertP.vhd $(SIM_SRC)/SimP.vhd $(SIM_SRC)/QueueP.vhd
  28. ghdl -a --std=$(VHD_STD) -fpsl $(SYN_SRC)/SpiSlaveE.vhd $(SYN_SRC)/SpiMasterE.vhd
  29. ghdl -a --std=$(VHD_STD) --ieee=synopsys -fpsl SpiT.vhd
  30. ghdl -e --std=$(VHD_STD) --ieee=synopsys SpiT
  31. ghdl -r --std=$(VHD_STD) SpiT --wave=spit.ghw
  32. .PHONY: clean
  33. clean:
  34. rm -f *.o
  35. rm -f *.cf
  36. rm -f *.ghw
  37. rm -f queuet
  38. rm -f stringt
  39. rm -f simt
  40. rm -f spit
  41. .PHONY: distclean
  42. distclean: clean
  43. rm -f $(VHD08_SRC)/*.vhdl