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.

59 lines
2.6 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. wishbonet : vhdl2008 osvvm WishBoneT.vhd $(SYN_SRC)/WishBoneMasterE.vhd $(SYN_SRC)/WishBoneSlaveE.vhd
  33. ghdl -a --std=$(VHD_STD) --work=libvhdl $(SIM_SRC)/AssertP.vhd $(SIM_SRC)/SimP.vhd $(SIM_SRC)/QueueP.vhd
  34. ghdl -a --std=$(VHD_STD) -fpsl $(SYN_SRC)/WishBoneMasterE.vhd $(SYN_SRC)/WishBoneSlaveE.vhd
  35. ghdl -a --std=$(VHD_STD) --ieee=synopsys WishBoneT.vhd
  36. ghdl -e --std=$(VHD_STD) --ieee=synopsys WishBoneT
  37. ghdl -r --std=$(VHD_STD) --ieee=synopsys WishBoneT --wave=wishbonet.ghw
  38. .PHONY: clean
  39. clean:
  40. rm -f *.o
  41. rm -f *.cf
  42. rm -f *.ghw
  43. rm -f queuet
  44. rm -f stringt
  45. rm -f simt
  46. rm -f spit
  47. rm -f wishbonet
  48. .PHONY: distclean
  49. distclean: clean
  50. rm -f $(VHD08_SRC)/*.vhdl