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.

43 lines
1.8 KiB

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