cryptography ip-cores in vhdl / verilog
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.

62 lines
1.6 KiB

  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. tb_aes: ${RTL_SRC} ${SIM_SRC}
  29. ghdl -a --std=08 -fpsl ${RTL_SRC} ${SIM_SRC}
  30. ghdl -e --std=08 -fpsl $@
  31. tb_aes.ghw: tb_aes
  32. ghdl -r tb_aes --wave=tb_aes.ghw --assert-level=error \
  33. --psl-report=$(basename $@)_psl_coverage_report.json
  34. .PHONY: wave
  35. wave: tb_aes.ghw
  36. gtkwave -S tb_aes.tcl tb_aes.ghw
  37. .PHONY: clean
  38. clean:
  39. echo "# cleaning simulation files"
  40. rm -f tb_aes
  41. rm -f tb_aes.ghw
  42. rm -f *.cf
  43. rm -f *.o
  44. rm -f *.json