Author Topic: Net "clk50" not found - only after adding extra "process" block (VHDL, Xilinx)  (Read 3630 times)

0 Members and 1 Guest are viewing this topic.

Offline tom66Topic starter

  • Super Contributor
  • ***
  • Posts: 7053
  • Country: gb
  • Electronics Hobbyist & FPGA/Embedded Systems EE
I'm a complete newb to FPGA VHDL, but decided to start playing with it... Was able to get a basic clock working (from example code, with a few modifications) but am having trouble with a new program.

I'm having an issue. I'm using Xilinx ISE 13.1, and getting this error in stage "implement design":
Code: [Select]
ERROR:ConstraintSystem:59 - Constraint <NET "clk50" PERIOD = 50 MHz;>
   [clock.ucf(1)]: NET "clk50" not found.  Please verify that:
   1. The specified design element actually exists in the original design.
   2. The specified object is spelled correctly in the constraint source file.

Here is my VHDL: http://pastebin.com/JR6ZGw8i

If I comment out this line in the 2nd process:
Code: [Select]
led_ser_out1 <= led_base_clock ;
and drive it directly from the currently non-functional process block with logic '0', I get the error. Otherwise, the code will work ok and generate a 2.5MHz square wave on the output 'led_ser_out1'.

I can't see what would be causing this error? It doesn't directly involve the signal at all.

I'm only using 3% of the floorspace on my XC3S200 FPGA (on a Spartan-3 Starter Kit board) so it's not like I'm running out of space any time soon.
« Last Edit: February 14, 2015, 01:09:28 am by tom66 »
 

Offline oohal

  • Newbie
  • Posts: 4
Disappearing nets usually means the synthesis tool has founds some way of "optimising" the net out of your design. I noticed you haven't initialised led_base_clock anywhere, so at a guess the synthesis tool isn't quite sure how to deal with the situation and responds by tying led_ser_out1 straight to VCC or GND. After that all the logic that should have gone into generating led_ser_out1 isn't doing anything so it (and the clk50 net) gets binned. It's been a while since I've done FPGA stuff so I'm not 100% sure why moving the assignment out of that process block helps things.

Try adding led_base_clock = '0'; to the reset handing logic and see if that fixes it.
 

Offline miguelvp

  • Super Contributor
  • ***
  • Posts: 5550
  • Country: us
clk50 is probably an input pin that needs to be placed in the pin planner and named that way. The manual of your dev board will tell you what pin has that input clock.

But I've never used a Xilinx board yet (although I did get my papilio duo just last week but no time to set it up and try it)

So I don't know if on the Xilinx IDE they refer to the pin association as the pin planner.
 

Offline kony

  • Regular Contributor
  • *
  • Posts: 242
  • Country: cz
Post also all user constraints (*.ucf) files associated with project.
 

Offline Anand

  • Contributor
  • Posts: 36
  • Country: 00
Your net is called "clk50in" not "clk50" in clock.ucf.
trashf.
 

Offline langwadt

  • Super Contributor
  • ***
  • Posts: 4778
  • Country: dk
if the logic clocked by clk50 doesn't do anything that eventually result in a change on an
output pin it gets optimized away and thus the clk50 not longer exist
 

Offline tom66Topic starter

  • Super Contributor
  • ***
  • Posts: 7053
  • Country: gb
  • Electronics Hobbyist & FPGA/Embedded Systems EE
miguelvp and others were right, ISE was optimising them out. Simply driving an LED with CLK50 solved this issue as the complier could no longer optimise out that net.

Thanks all.
 

Offline Bassman59

  • Super Contributor
  • ***
  • Posts: 2501
  • Country: us
  • Yes, I do this for a living
Here is my VHDL: http://pastebin.com/JR6ZGw8i

a) there is no need to instantiate input buffers, output buffers, or clock buffers. The tools are quite adept at inferring them when necessary. Use the UCF to set the IOSTANDARD.

b) There is no need to put the translate_on/off pragmas around the unisim library-use clause.

c) what are the signals low and high for?
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf