cryptography ip-cores in vhdl / verilog
vhdl
osvvm
fpga
ghdl
testbenches
verilog
cryptography

Makefile 1.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. # ======================================================================
  2. # AES encryption/decryption
  3. # Copyright (C) 2019 Torsten Meissner
  4. #-----------------------------------------------------------------------
  5. # This program is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 2 of the License, or
  8. # (at your option) any later version.
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. # GNU General Public License for more details.
  13. # You should have received a copy of the GNU General Public License
  14. # along with this program; if not, write to the Free Software
  15. # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  16. # ======================================================================
  17. RTL_SRC := \
  18. ../../rtl/vhdl/aes_pkg.vhd \
  19. ../../rtl/vhdl/aes.vhd \
  20. ../../rtl/vhdl/aes_enc.vhd \
  21. ../../rtl/vhdl/aes_dec.vhd
  22. SIM_SRC := \
  23. tb_aes.vhd
  24. .PHONY: sim
  25. sim: tb_aes.ghw
  26. .PHONY: compile
  27. compile: tb_aes
  28. work:
  29. mkdir work
  30. tb_aes: ${RTL_SRC} ${SIM_SRC} | work
  31. ghdl -a --std=08 -fpsl --workdir=work ${RTL_SRC} ${SIM_SRC}
  32. ghdl -e --std=08 -fpsl --workdir=work $@
  33. tb_aes.ghw: tb_aes
  34. ghdl -r tb_aes --wave=$@ --assert-level=error \
  35. --psl-report=$(basename $@)_psl_coverage_report.json
  36. .PHONY: wave
  37. wave: tb_aes.ghw
  38. gtkwave -S tb_aes.tcl tb_aes.ghw
  39. .PHONY: clean
  40. clean:
  41. echo "# cleaning simulation files"
  42. rm -f tb_aes
  43. rm -f tb_aes.ghw
  44. rm -f *.o
  45. rm -f *.json
  46. rm -rf work/