top.v 436 B

12345678910111213141516171819202122232425262728
  1. `include "tmr.v"
  2. module top #(parameter CYCLES_SEC = 100_000_000) (
  3. input clk,
  4. input reset,
  5. input [2 : 0] apply,
  6. input [2 : 0] inject,
  7. input [2 : 0] mode,
  8. output [1 : 0] led
  9. );
  10. wire reset_n = ~reset;
  11. wire select;
  12. wire fault;
  13. assign led = {~select, select};
  14. tmr #(.CYCLES_SEC (CYCLES_SEC)) tmr_inst (
  15. .clk(clk),
  16. .reset_n(reset_n),
  17. .apply(apply),
  18. .inject(inject),
  19. .mode(mode),
  20. .select(select),
  21. .fault(fault)
  22. );
  23. endmodule