| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- module clkOutMMCM(
- input Rst_i,
- input [2:0]clkNum,
- input clk0out,
- input clk1out,
- input clk2out,
- input clk3out,
- input clk4out,
- input clk5out,
- input clk6out,
- output reg [6:0] clkOutMMCM
- );
- always @(*) begin
- if (Rst_i) begin
- clkOutMMCM = 0;
- end
- else begin
- case (clkNum)
- 0: clkOutMMCM = clk0out;
- 1: clkOutMMCM = clk1out;
- 2: clkOutMMCM = clk2out;
- 3: clkOutMMCM = clk3out;
- 4: clkOutMMCM = clk4out;
- 5: clkOutMMCM = clk5out;
- 6: clkOutMMCM = clk6out;
- default: clkOutMMCM = 0;
- endcase
- end
- end
- endmodule
|