mirror of
https://github.com/openhwgroup/cvw.git
synced 2025-04-24 05:47:16 -04:00
minor interrupt syntax fix
This commit is contained in:
parent
789ce53355
commit
440cac9f77
1 changed files with 2 additions and 1 deletions
|
@ -164,7 +164,8 @@ for line in fileinput.input('-'):
|
|||
interrupts.write(str(numInstrs)+'\n')
|
||||
# Convert line to rows of info for easier Verilog parsing
|
||||
vals=line.strip('riscv_cpu_do_interrupt: ').strip('\n').split(',')
|
||||
vals=[val.split(':')[-1].strip(' ').strip('desc=') for val in vals]
|
||||
vals=[val.split(':')[-1].strip(' ') for val in vals]
|
||||
vals=[val.split('=')[-1].strip(' ') for val in vals]
|
||||
for val in vals:
|
||||
interrupts.write(val+'\n')
|
||||
continue
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue