[DV] Update ibex log regex (#366)

This commit is contained in:
udinator 2019-10-02 13:16:47 -07:00 committed by GitHub
parent 0908817963
commit 48e604ab9e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()