feat(confreg): add interrupt support for fft, dma and uart
This commit is contained in:
@@ -89,6 +89,8 @@ module confreg #(
|
|||||||
output [7:0] dpy1,
|
output [7:0] dpy1,
|
||||||
input [31:0] switch,
|
input [31:0] switch,
|
||||||
input [3 :0] touch_btn,
|
input [3 :0] touch_btn,
|
||||||
|
|
||||||
|
input uart0_int,
|
||||||
input dma_finish,
|
input dma_finish,
|
||||||
input fft_finish,
|
input fft_finish,
|
||||||
output confreg_int
|
output confreg_int
|
||||||
@@ -382,7 +384,7 @@ always @(posedge aclk) begin
|
|||||||
end
|
end
|
||||||
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 (
|
int_ctrl u_int_ctrl (
|
||||||
.clk (aclk),
|
.clk (aclk),
|
||||||
|
|||||||
@@ -1379,6 +1379,7 @@ confreg #(
|
|||||||
.touch_btn (touch_btn), // 触摸按钮
|
.touch_btn (touch_btn), // 触摸按钮
|
||||||
|
|
||||||
// 中断与状态信号
|
// 中断与状态信号
|
||||||
|
.uart0_int (uart0_int), // UART0中断
|
||||||
.dma_finish (dma_finish), // DMA完成信号
|
.dma_finish (dma_finish), // DMA完成信号
|
||||||
.fft_finish (fft_finish), // FFT完成信号
|
.fft_finish (fft_finish), // FFT完成信号
|
||||||
.confreg_int(confreg_int) // 输出中断给CPU
|
.confreg_int(confreg_int) // 输出中断给CPU
|
||||||
|
|||||||
Reference in New Issue
Block a user