Juan Posted September 4, 2020 Share Posted September 4, 2020 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: What's the problem with my XDC file ? Thanks in advance! Link to comment Share on other sites More sharing options...
JColvin Posted September 5, 2020 Share Posted September 5, 2020 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 comment Share on other sites More sharing options...
Question
Juan
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:
What's the problem with my XDC file ?
Thanks in advance!
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.