feat(confreg): add interrupt support for fft, dma and uart

This commit is contained in:
2026-04-13 00:11:31 +08:00
parent bcde745149
commit 6146e98df6
2 changed files with 4 additions and 1 deletions

View File

@@ -89,6 +89,8 @@ module confreg #(
output [7:0] dpy1,
input [31:0] switch,
input [3 :0] touch_btn,
input uart0_int,
input dma_finish,
input fft_finish,
output confreg_int
@@ -382,7 +384,7 @@ always @(posedge aclk) begin
end
end
assign int_in = {27'b0, timer_int, touch_btn_data};
assign int_in = {24'b0, dma_finish, fft_finish, uart0_int, timer_int, touch_btn_data};
int_ctrl u_int_ctrl (
.clk (aclk),

View File

@@ -1379,6 +1379,7 @@ confreg #(
.touch_btn (touch_btn), // 触摸按钮
// 中断与状态信号
.uart0_int (uart0_int), // UART0中断
.dma_finish (dma_finish), // DMA完成信号
.fft_finish (fft_finish), // FFT完成信号
.confreg_int(confreg_int) // 输出中断给CPU