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.

compile.tcl 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. ## -------------------------------------------------------------
  2. ##
  3. ## File : compile.tcl
  4. ## Author(s) : Baesig
  5. ## Gerstner
  6. ## Email : juergen.baesig@fh-nuernberg.de
  7. ## Gerstnermi46611@th-nuernberg.de
  8. ## Organization : Georg-Simon-Ohm-Hochschule Nuernberg
  9. ##
  10. ## Note :
  11. ##
  12. ## -------------------------------------------------------------
  13. ## History
  14. ## -------------------------------------------------------------
  15. ## Version| Author | Mod. Date | Changes Made:
  16. ## v1.00 | Baesig | 09/04/2012 | first code
  17. ## v1.01 | Gerstner | 20/09/2013 | modified
  18. ## -------------------------------------------------------------
  19. ##eoh
  20. .main clear
  21. echo
  22. # ----------------------------------------------------------
  23. echo "create workspace"
  24. if [file exists work] { vdel -all }
  25. vlib work
  26. vmap work ./work
  27. echo
  28. # ----------------------------------------------------------
  29. echo " Compile sv-Designfiles "
  30. vlog -work work ./hdl_src/sv/interface.sv
  31. vlog -work work ./hdl_src/sv/stimuli.sv
  32. vlog -work work ./hdl_src/sv/top_level.sv
  33. vlog -work work ./hdl_src/sv/top_tb.sv
  34. vlog -work work ./hdl_src/sv/timer.sv
  35. vlog -work work ./hdl_src/sv/SPI_Master_Control.sv
  36. vlog -work work ./hdl_src/sv/SPI_Master.sv
  37. vlog -work work ./hdl_src/sv/FRAM_Controller.sv
  38. vlog -work work ./hdl_src/sv/fram.sv
  39. echo
  40. # ----------------------------------------------------------
  41. echo " Run Simulation "
  42. source ./simulationsscripts/simulation.tcl