⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dcm_dsgn.v

📁 如何使用ISE和FPGA使用指南
💻 V
字号:
module dcm_dsgn (clk_33, clk_25, reset, dcm_reset, dcm_lock, din_clk33, din_clk25,                  dout_clk33, dout_clk25, pot_bist );    input clk_33, clk_25;    input reset, dcm_reset, pot_bist;    input din_clk33, din_clk25;    output dcm_lock;    output dout_clk33, dout_clk25;    reg dout_clk33, dout_clk25;    // The following clocks are the output clocks from the DCMs    wire clk_33to25_dcm, clk_25_dcm;    // The following clocks are the output clocks from the BUFG and BUFGMUX    wire clk_33_buf, clk_25_buf;        reg d0_clk33, d0_clk25;    reg d1_clk33, d1_clk25;    // DCM & BUFGMUX instantiations:// FILL IN COMPONENT INSTANTIATIONS HERE
dcm_33 dcm_33_inst (    .CLKIN_IN(clk_33),     .CLKIN_IBUFG_OUT(),     .clk_33to25_dcm(clk_33to25_dcm),     .CLK0_OUT(clk_33_buf)    );
	 
dcm_25 dcm_25_inst (    .CLKIN_IN(clk_25),     .RST_IN(dcm_reset),     .CLKIN_IBUFG_OUT(),     .clk_25_dcm(clk_25_dcm),     .LOCKED_OUT(dcm_lock)    );
	 
BUFGMUX clk_25_mux (      .O(clk_25_buf),    // Clock MUX output      .I0(clk_25_dcm),  // Clock0 input      .I1(clk_33to25_dcm),  // Clock1 input      .S(pot_bist)     // Clock select input   );
// Dummy registers on each clock network    always @ (posedge clk_33_buf, posedge reset)    begin	if (reset) begin	      d0_clk33 <= 0;		 d1_clk33	<= 0;		 dout_clk33 <= 0;  end	    else begin	      d0_clk33 <= din_clk33;		 d1_clk33 <= d0_clk33;		 dout_clk33 <= d1_clk33;	end    end // always @ (posedge clk_33_buf, posedge reset)        always @ (posedge clk_25_buf, posedge reset)    begin	if (reset) begin	      d0_clk25 <= 0;		 d1_clk25	<= 0;		 dout_clk25 <= 0; end	    else begin	      d0_clk25 <= din_clk25;		 d1_clk25 <= d0_clk25;		 dout_clk25 <= d1_clk25;	 end    end // always @ (posedge clk_25_buf, posedge reset)    endmodule // dcm_dsgn                 	          

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -