Advertisement
Guest User

Untitled

a guest
Feb 18th, 2020
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. `timescale 1ns / 1ps
  2. //////////////////////////////////////////////////////////////////////////////////
  3. // Company:
  4. // Engineer:
  5. //
  6. // Create Date: 17:06:27 02/18/2020
  7. // Design Name:
  8. // Module Name: main
  9. // Project Name:
  10. // Target Devices:
  11. // Tool versions:
  12. // Description:
  13. //
  14. // Dependencies:
  15. //
  16. // Revision:
  17. // Revision 0.01 - File Created
  18. // Additional Comments:
  19. //
  20. //////////////////////////////////////////////////////////////////////////////////
  21. module main(
  22. // outputs
  23. DISP_SEG,
  24. DISP_SEL,
  25. // inputs
  26. SEL,
  27. ADJ,
  28. RST,
  29. PSE,
  30. CLK
  31. );
  32.  
  33. input CLK;
  34. input PSE;
  35. input RST;
  36. input ADJ;
  37. input SEL;
  38. output [6:0] DISP_SEG;
  39. output [3:0] DISP_SEL;
  40.  
  41. wire FAST_CLK;
  42. wire ONE_CLK;
  43. wire TWO_CLK;
  44. wire BLINK_CLK;
  45. wire RST_S;
  46. wire PSE_S;
  47.  
  48. clock_divider clock_divider_(
  49. .CLK (CLK),
  50. .FAST_CLK (FAST_CLK),
  51. .ONE_CLK (ONE_CLK),
  52. .TWO_CLK (TWO_CLK),
  53. .BLINK_CLK (BLINK_CLK)
  54. );
  55.  
  56. debouncer debouncer_(
  57. .RST (RST),
  58. .PSE (PSE),
  59. .FAST_CLK (FAST_CLK),
  60. .RST_S (RST_S),
  61. .PSE_S (PSE_S)
  62. );
  63. endmodule
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement