Merge pull request #404 from CodeConstruct:dev/gpio-interrupt
authorPaul Mackerras <paulus@ozlabs.org>
Thu, 14 Sep 2023 23:29:51 +0000 (09:29 +1000)
committerPaul Mackerras <paulus@ozlabs.org>
Thu, 14 Sep 2023 23:29:51 +0000 (09:29 +1000)
Interrupts for GPIO

Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
1  2 
fpga/top-arty.vhdl
include/microwatt_soc.h

index e1ebf6022b50a49afc2b47f5f4a5c7c277988635,5d428983911286b65629b8748b3ab69d48dc98a2..e64eba1a0ef41953b7e98c3ab53518b33a35d832
@@@ -141,10 -149,13 +151,10 @@@ architecture behaviour of toplevel i
      -- for conversion from non-pipelined wishbone to pipelined
      signal wb_sddma_stb_sent   : std_ulogic;
  
 -    -- Control/status
 -    signal core_alt_reset : std_ulogic;
 -
      -- Status LED
-     signal led0_b_pwm : std_ulogic;
-     signal led0_r_pwm : std_ulogic;
-     signal led0_g_pwm : std_ulogic;
+     signal led_b_pwm : std_ulogic_vector(3 downto 0);
+     signal led_r_pwm : std_ulogic_vector(3 downto 0);
+     signal led_g_pwm : std_ulogic_vector(3 downto 0);
  
      -- Dumb PWM for the LEDs, those RGB LEDs are too bright otherwise
      signal pwm_counter  : std_ulogic_vector(8 downto 0);
@@@ -331,9 -340,10 +341,9 @@@ begi
                  pll_locked_out => system_clk_locked
                  );
  
-         led0_b_pwm <= '1';
-         led0_r_pwm <= '1';
-         led0_g_pwm <= '0';
+         led_b_pwm <= "1111";
+         led_r_pwm <= "1111";
+         led_g_pwm <= "0000";
 -        core_alt_reset <= '0';
  
          -- Vivado barfs on those differential signals if left
          -- unconnected. So instanciate a diff. buffer and feed
Simple merge