Last active
December 18, 2024 21:38
-
-
Save Apocryphon-X/6ad4b7c4dca0106bb79c8a0945f32cdf to your computer and use it in GitHub Desktop.
Every time the button is pressed, the chosen led changes from '0' to '1' or from '1' to '0' respectively. Button press takes effect only after 120μs of being held (assuming `clk` is assigned to a 100MHz clock).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set_property -dict { PACKAGE_PIN V14 IOSTANDARD LVCMOS33 } [get_ports {target_led}] | |
set_property -dict { PACKAGE_PIN U18 IOSTANDARD LVCMOS33 } [get_ports {toggle_button}] | |
set_property -dict { PACKAGE_PIN W5 IOSTANDARD LVCMOS33 } [get_ports clk] | |
create_clock -add -name sys_clk_pin -period 10.00 -waveform {0 5} [get_ports clk] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment