|

楼主 |
发表于 2014-4-23 18:22:13
|
显示全部楼层
我是这么实现的,对不?有别的方法么?
BUFGCTRL #(
.INIT_OUT(1), // Initial value of BUFGCTRL output ($VALUES;)
.PRESELECT_I0("TRUE"), // BUFGCTRL output uses I0 input ($VALUES;)
.PRESELECT_I1("FALSE") // BUFGCTRL output uses I1 input ($VALUES;)
)
BUFGCTRL_inst (
.O(o_cclk), // 1-bit output: Clock output
.CE0(o_wr_cmd | o_rd_cmd), // 1-bit input: Clock enable input for I0
.CE1(1'b1), // 1-bit input: Clock enable input for I1
.I0(~i_cclk), // 1-bit input: Primary clock
.I1(~i_cclk), // 1-bit input: Secondary clock
.IGNORE0(1'b0), // 1-bit input: Clock ignore input for I0
.IGNORE1(1'b0), // 1-bit input: Clock ignore input for I1
.S0(1'b1), // 1-bit input: Clock select for I0
.S1(1'b0) // 1-bit input: Clock select for I1
); |
|