解决了base.tc27的中断清除问题
This commit is contained in:
@@ -871,6 +871,7 @@ task wait_comm_finished(input [16:0] dev_idx);
|
||||
st = $realtime;
|
||||
is_run = 1;
|
||||
|
||||
`ifdef enable_wait_clear_int
|
||||
txBuf[0] = 8'h00;
|
||||
txBuf[1] = 8'h78;
|
||||
txBuf[2] = `SPI_WRITE;
|
||||
@@ -892,7 +893,7 @@ task wait_comm_finished(input [16:0] dev_idx);
|
||||
begin
|
||||
|
||||
end
|
||||
|
||||
`endif
|
||||
|
||||
while (is_run == 1) begin
|
||||
txBuf[0] = 8'h00;
|
||||
|
||||
@@ -1884,12 +1884,17 @@ def tc27():
|
||||
|
||||
|
||||
sm_idx = 0
|
||||
genPkt.addBeforeExc(genTcStartFrameCode(gen_file_def, tc_des))
|
||||
genPkt.addBeforeExc(genTcStartFrameCode(gen_file_def, tc_des)
|
||||
+genMessageCode("--清除中断")
|
||||
+genIFRwDataCode(0, 0x78, True, 4, [0xff, 0xff, 0xff, 0xff])
|
||||
)
|
||||
|
||||
genPkt.addAfterExc(genWriteTransLenCode(gen_file_def, sm_idx)
|
||||
+genWriteTransPktCode(gen_file_def, sm_idx)
|
||||
+genTrgTransPktCode(gen_file_def, sm_idx)
|
||||
+genReadAckPktCode(gen_file_def, sm_idx)
|
||||
+genMessageCode("--清除中断")
|
||||
+genIFRwDataCode(0, 0x78, True, 4, [0xff, 0xff, 0xff, 0xff])
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -1375,6 +1375,8 @@ def tc7():
|
||||
+ '''txBuf[8] = 8'h00;\n'''
|
||||
+ '''txBuf[9] = 8'h0a;\n'''
|
||||
+ '''txBuf[10] = 8'h00;\n'''
|
||||
+ '''txBuf[11] = 8'h01;\n'''
|
||||
+ '''txBuf[12] = 8'h00;\n'''
|
||||
+ '''txBuf[19] = (_temp_time & 8'hff);\n'''
|
||||
+ '''txBuf[20] = ( (_temp_time >> 8) & 8'hff);\n'''
|
||||
+ '''txBuf[21] = ((_temp_time >> 16) & 8'hff);\n'''
|
||||
@@ -1396,6 +1398,10 @@ def tc7():
|
||||
+ '''txBuf[37] = 8'h00;\n'''
|
||||
+ '''txBuf[38] = 8'h00;\n'''
|
||||
+ '''txBuf[39] = 8'h00;\n'''
|
||||
+ '''txBuf[40] = 8'h00;\n'''
|
||||
+ '''txBuf[41] = 8'h00;\n'''
|
||||
+ '''txBuf[42] = 8'h00;\n'''
|
||||
+ '''txBuf[43] = 8'h00;\n'''
|
||||
+ '''spi_trans( (16'h0120), (`SPI_WRITE), (40), (`IF_IDX(0)));\n'''
|
||||
)
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
16'h0078 8'h01 16'h0004 8'h00 8'h00 8'h00 8'h00
|
||||
16'h0040 8'h00 16'h0004 8'h01 8'h00 8'h66 8'h79
|
||||
16'h0040 8'h00 16'h0004 8'h01 8'h00 8'h66 8'h79
|
||||
16'h0074 8'h01 16'h0004 8'h04 8'h00 8'h00 8'h80
|
||||
16'h0074 8'h01 16'h0004 8'h04 8'h00 8'h00 8'h80
|
||||
16'h0074 8'h01 16'h0004 8'h00 8'h00 8'h00 8'h80
|
||||
16'h0074 8'h01 16'h0004 8'h00 8'h00 8'h00 8'h80
|
||||
16'h0070 8'h01 16'h0004 8'h00 8'h00 8'h00 8'he0
|
||||
16'h0070 8'h01 16'h0004 8'h00 8'h00 8'h00 8'he0
|
||||
16'h0000 8'h00 16'h0001 8'h01
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
16'h0074 8'h01 16'h0004 8'h04 8'h00 8'h00 8'h80
|
||||
16'h0074 8'h01 16'h0004 8'h04 8'h00 8'h00 8'h80
|
||||
16'h0074 8'h01 16'h0004 8'h04 8'h00 8'h00 8'h80
|
||||
16'h0074 8'h01 16'h0004 8'h04 8'h00 8'h00 8'h80
|
||||
16'h0074 8'h01 16'h0004 8'h04 8'h00 8'h00 8'h80
|
||||
16'h0074 8'h01 16'h0004 8'h00 8'h00 8'h00 8'h80
|
||||
16'h0074 8'h01 16'h0004 8'h00 8'h00 8'h00 8'h80
|
||||
16'h0074 8'h01 16'h0004 8'h00 8'h00 8'h00 8'h80
|
||||
16'h0074 8'h01 16'h0004 8'h00 8'h00 8'h00 8'h80
|
||||
16'h0074 8'h01 16'h0004 8'h00 8'h00 8'h00 8'h80
|
||||
16'h0078 8'h00 16'h0004 8'hff 8'hff 8'hff 8'hff
|
||||
16'h0078 8'h00 16'h0004 8'hff 8'hff 8'hff 8'hff
|
||||
16'h0078 8'h00 16'h0004 8'hff 8'hff 8'hff 8'hff
|
||||
|
||||
Reference in New Issue
Block a user