Test interrupt from FPGA

This commit is contained in:
Joris van Rantwijk 2024-08-03 20:18:02 +02:00
parent 22cc68d820
commit f58343fc0f
2 changed files with 4 additions and 3 deletions

View File

@ -29,10 +29,10 @@ package puzzlefw_pkg is
constant reg_rcnt: natural := 16#000200#;
constant reg_wcnt: natural := 16#000204#;
constant reg_start: natural := 16#000208#;
constant reg_test_irq: natural := 16#000400#;
constant reg_test_led: natural := 16#000404#;
constant reg_dma_buf_addr: natural := 16#100000#;
constant reg_dma_buf_size: natural := 16#100004#;
constant reg_test_irq: natural := 16#100100#;
constant reg_test_led: natural := 16#100104#;
-- Firmware info word.
constant fw_api_version: natural := 1;

View File

@ -153,7 +153,8 @@ architecture arch of puzzlefw_top is
begin
s_irq <= s_reg_control.test_irq;
s_irq(7 downto 1) <= s_reg_control.test_irq(7 downto 1);
s_irq(0) <= s_reg_control.test_irq(0) and s_reg_control.irq_enable;
led_o(7 downto 2) <= s_reg_control.test_led(7 downto 2);
-- Differential clock input for ADC clock.