• 0

Problem with XDC


Question

Hi, I'm just trying to make a led blinking but I am having problem with the XDC.

This is my code:

module blinking (clk, LED);

  input clk;
  output LED;

  reg [31:0] counter;
  reg LED_status;

  initial begin
    counter <= 32'b0;
    LED_status <= 1'b0;
  end

  always @ (posedge clk) 
    begin
      counter <= counter + 1'b1;
      if (counter > 100000000)
        begin
          LED_status <= !LED_status;
          counter <= 32'b0;
        end


    end

  assign LED = LED_status;

endmodule 

 

So, I think my XDC should be:

set_property LOC F14 [ get_ports clk]
set_property LOC AH13 [ get_ports LED]

But I'm getting these errors:

image.thumb.png.6bd0ecf36afcc179c0497413f4503732.png

What's the problem with my XDC file ?

Thanks in advance!

 

Edited by Juan
Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Hi @Juan,

It looks like Vivado is complaining that your declared clock pin is not actually on a clock line. If you use a dedicated clock pin (usually at the top of .xdc files that Digilent provides for our boards, github link), that should appease Vivado.

What board are you using?

Thanks,
JColvin

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