commit c0da0e7df3102872d5ac603b00f354320a0cacb7 parent 5949e0241a08c2fd6e6f35e8f7c7ae27c0160b44 Author: William Lindholm <william_lindholm@outlook.com> Date: Wed, 17 Sep 2025 21:04:39 +0200 Added all LEDs to contstraints file Diffstat:
| M | buttons_to_leds/buttons_to_leds.srcs/constrs_1/new/button_led_constraints.xdc | | | 15 | +++++++++++---- |
| M | buttons_to_leds/buttons_to_leds.srcs/sources_1/new/top.vhd | | | 19 | +++++++++++++++++-- |
| M | buttons_to_leds/buttons_to_leds.xpr | | | 2 | +- |
3 files changed, 29 insertions(+), 7 deletions(-)
diff --git a/buttons_to_leds/buttons_to_leds.srcs/constrs_1/new/button_led_constraints.xdc b/buttons_to_leds/buttons_to_leds.srcs/constrs_1/new/button_led_constraints.xdc @@ -1,5 +1,11 @@ -# LED -set_property PACKAGE_PIN P19 [get_ports {led0}] -set_property IOSTANDARD LVCMOS33 [get_ports {led0}] +# LEDs +set_property -dict { PACKAGE_PIN P19 IOSTANDARD LVCMOS33 } [get_ports {led0}] +set_property -dict { PACKAGE_PIN P20 IOSTANDARD LVCMOS33 } [get_ports {led1}] +set_property -dict { PACKAGE_PIN T21 IOSTANDARD LVCMOS33 } [get_ports {led2}] +set_property -dict { PACKAGE_PIN R19 IOSTANDARD LVCMOS33 } [get_ports {led3}] +set_property -dict { PACKAGE_PIN V22 IOSTANDARD LVCMOS33 } [get_ports {led4}] +set_property -dict { PACKAGE_PIN U21 IOSTANDARD LVCMOS33 } [get_ports {led5}] +set_property -dict { PACKAGE_PIN T20 IOSTANDARD LVCMOS33 } [get_ports {led6}] +set_property -dict { PACKAGE_PIN W20 IOSTANDARD LVCMOS33 } [get_ports {led7}] -# BUTTON +# BUTTON +\ No newline at end of file diff --git a/buttons_to_leds/buttons_to_leds.srcs/sources_1/new/top.vhd b/buttons_to_leds/buttons_to_leds.srcs/sources_1/new/top.vhd @@ -24,12 +24,27 @@ use IEEE.STD_LOGIC_1164.ALL; entity top is Port ( - led0 : out std_logic -- output port for LED0 + led0 : out std_logic; + led1 : out std_logic; + led2 : out std_logic; + led3 : out std_logic; + led4 : out std_logic; + led5 : out std_logic; + led6 : out std_logic; + led7 : out std_logic ); end top; architecture Behavioral of top is begin - -- Drive led0 constantly high (turn LED on) + led0 <= '1'; + led1 <= '1'; + led2 <= '1'; + led3 <= '1'; + led4 <= '1'; + led5 <= '1'; + led6 <= '1'; + led7 <= '1'; + end Behavioral; \ No newline at end of file diff --git a/buttons_to_leds/buttons_to_leds.xpr b/buttons_to_leds/buttons_to_leds.xpr @@ -59,7 +59,7 @@ <Option Name="IPUserFilesDir" Val="$PIPUSERFILESDIR"/> <Option Name="IPStaticSourceDir" Val="$PIPUSERFILESDIR/ipstatic"/> <Option Name="EnableBDX" Val="FALSE"/> - <Option Name="WTXSimLaunchSim" Val="0"/> + <Option Name="WTXSimLaunchSim" Val="1"/> <Option Name="WTModelSimLaunchSim" Val="0"/> <Option Name="WTQuestaLaunchSim" Val="0"/> <Option Name="WTIesLaunchSim" Val="0"/>