中断模式软件完成

This commit is contained in:
RuigeLee
2024-10-29 09:33:29 +08:00
parent 7bcd0aaca0
commit 57c6c15c29
4 changed files with 5 additions and 4 deletions

View File

@@ -33,6 +33,7 @@ BackSys s_BackSys(
initial begin
clock = 0;
reset = 1;
overCLK = 0;
#200

View File

@@ -30,7 +30,7 @@ main:
li x15, 0 # 清标志位
lw x7, 0(x5) # 读取cdr_0_tx_status的值
andi x7, x7, 0x2 # 检查第1比特(位1)
beqz x7, 2b # 如果第1比特为0,则回到2处继续循环
bnez x7, 2b # 如果第1比特不为0,则回到2处继续循环
3:
# 向cdr_0_tx_txFifo地址写入0x55,循环32次

View File

@@ -38,7 +38,7 @@ _prog_start:
.balign 32
.section .trap_entry
.section .trap_entry, "ax", %progbits
trap_entry:
# q0 return address
# q1 bitmask of all IRQ to be handled, may be more than one IRQ