Code for DCM Tutorial

John Lamiet

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?


Link to comment
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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.