DCM例化出错。。
时间:10-02
整理:3721RD
点击:
在DCM例化中,使用的VHDL语言,如下所示-- Insert DCM component declaration here
COMPONENT mydcm
PORT(
CLKIN_IN : IN std_logic;
CLKFX_OUT : OUT std_logic;
CLKIN_IBUFG_OUT : OUT std_logic;
CLK0_OUT : OUT std_logic;
LOCKED_OUT : OUT std_logic
);
END COMPONENT;
Inst_mydcm: mydcm PORT MAP(
CLKIN_IN => clk ,
CLKFX_OUT => clk50MHz,
CLKIN_IBUFG_OUT => open,
CLK0_OUT => open,
LOCKED_OUT => lock
);
结果报错Syntax error near "Inst_mydcm".请问各位大侠,哪里有问题啊?
COMPONENT mydcm
PORT(
CLKIN_IN : IN std_logic;
CLKFX_OUT : OUT std_logic;
CLKIN_IBUFG_OUT : OUT std_logic;
CLK0_OUT : OUT std_logic;
LOCKED_OUT : OUT std_logic
);
END COMPONENT;
Inst_mydcm: mydcm PORT MAP(
CLKIN_IN => clk ,
CLKFX_OUT => clk50MHz,
CLKIN_IBUFG_OUT => open,
CLK0_OUT => open,
LOCKED_OUT => lock
);
结果报错Syntax error near "Inst_mydcm".请问各位大侠,哪里有问题啊?
Inst_mydcm上面要加 begin,下面的实例可以查看下,是你正在用的例子讲解,中间有详细的源程序。
http://wenku.baidu.com/view/e637407c27284b73f242501a
你这个DCM没有用到反馈吗?把DCM的datasheet拿来好好看看再说。