John Lamiet

Code for DCM Tutorial

Recommended Posts

I read the tutorial and it makes sense,  I created the DCM using the clock wizard but can't get the code to compile.  I get an error "ERROR:Xst:2035 - Port <clk> has illegal connections. This port is connected to an input buffer and other components.".

 

Does anyone know what I need to do to correct the error? Does anyone have an example of code that compiles and works?

myDCM.vhd

Share this post


Link to post
Share on other sites
Inst_SegDecComp: SegDecComp PORT MAP(

  clk => clk,

  inSignal => std_logic_vector(secCounter),

  outAnode => anode,

  outSeg => segments

);

 

The highlighted part should be myClk possibly. It doesn't like that you're connecting clk to the DCM and other logic modules. If that is what you're intending to do however you can get a copy of clk from the DCM CLK0 output.

  • Like 1

Share this post


Link to post
Share on other sites

Yep, that looks like the culprit, and I also don't see CLKIN_IBUFG_OUT connected to anything, you probably don't want to send that out of your top level port anyway.

 

Jack.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now