ClkOutMMCM.v 639 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. module clkOutMMCM(
  2. input Rst_i,
  3. input [2:0]clkNum,
  4. input clk0out,
  5. input clk1out,
  6. input clk2out,
  7. input clk3out,
  8. input clk4out,
  9. input clk5out,
  10. input clk6out,
  11. output reg clkOutMMCM
  12. );
  13. always @(*) begin
  14. if (Rst_i) begin
  15. clkOutMMCM = 0;
  16. end
  17. else begin
  18. case (clkNum)
  19. 6: clkOutMMCM = clk0out;
  20. 1: clkOutMMCM = clk1out;
  21. 2: clkOutMMCM = clk2out;
  22. 3: clkOutMMCM = clk3out;
  23. 4: clkOutMMCM = clk4out;
  24. 5: clkOutMMCM = clk5out;
  25. 0: clkOutMMCM = clk6out;
  26. default: clkOutMMCM = 0;
  27. endcase
  28. end
  29. end
  30. endmodule