mirror of
https://github.com/lowRISC/ibex.git
synced 2025-04-22 04:47:25 -04:00
[DV] Update ibex log regex (#366)
This commit is contained in:
parent
0908817963
commit
48e604ab9e
1 changed files with 4 additions and 4 deletions
|
@ -30,10 +30,10 @@ def process_ibex_sim_log(ibex_log, csv):
|
|||
for line in f:
|
||||
if re.search("ecall", line):
|
||||
break
|
||||
# Extract instruction infromation
|
||||
m = re.search(r"^\s*(?P<time>\d+)\s+(?P<cycle>\d+) " \
|
||||
"(?P<pc>[0-9a-f]+) (?P<bin>[0-9a-f]+) (?P<instr>.*)" \
|
||||
"x(?P<rd>\d+)=0x(?P<val>[0-9a-f]+)", line)
|
||||
# Extract instruction information
|
||||
m = re.search(r"^\s*(?P<time>\d+)\s+(?P<cycle>\d+)\s+" \
|
||||
"(?P<pc>[0-9a-f]+)\s+(?P<bin>[0-9a-f]+)\s+(?P<instr>.*)" \
|
||||
".*x(?P<rd>\d+)=0x(?P<val>[0-9a-f]+)", line)
|
||||
if m:
|
||||
# Write the extracted instruction to a csvcol buffer file
|
||||
rv_instr_trace = RiscvInstructiontTraceEntry()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue