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.

top_tb.sv 1.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. //------------------------------------------------------
  2. //
  3. // File : top.sv
  4. // Related Files :
  5. // Author(s) : Mueller
  6. // Email : muelleral82290@th-nuernberg.de
  7. // Organization : Georg-Simon-Ohm-Hochschule Nuernberg
  8. // Notes : Stimuli Modul
  9. //
  10. //------------------------------------------------------
  11. // History
  12. //------------------------------------------------------
  13. // Version| Author | Mod. Date | Changes Made:
  14. // v1.00 | Mueller | 27/04/2023 | first code
  15. //------------------------------------------------------
  16. //eoh
  17. //interface for LED
  18. //reg [2:0]rbg stores rgb values that depend on dip[3:2]
  19. //interface for DIPSCHALER
  20. // dip[3:2] -> select colour, dip[1] -> read ~ 1/write ~ 0, dip[0] -> on ~ 1/off ~ 0
  21. //interface for FRAM
  22. // sck -> 0 ~ cummonication enabled, 1 ~ communication disabled
  23. // clk -> system clock / timer
  24. // miso -> testbench output
  25. // mosi -> testbench input
  26. //testbenchclock replaces the oscillator on the board
  27. `timescale 10us/10ns
  28. module top_tb();
  29. // Interface
  30. led_if stim_led_if();
  31. dip_if stim_dip_if();
  32. fram_if stim_fram_if();
  33. clock_if stim_clock_if();
  34. // Instanziierungen
  35. top t1(stim_led_if, stim_dip_if, stim_fram_if, stim_clock_if);
  36. stimuli s1(stim_led_if, stim_dip_if, stim_clock_if);
  37. //fram_module f1(stim_fram_if);
  38. // assertions
  39. //`include "./hdl_src/sv/led_assert.txt"
  40. endmodule : top_tb