Skip to content

Commit

Permalink
Merge pull request #2193 from silabs-robin/json_vplans_generation
Browse files Browse the repository at this point in the history
JSON Vplans - Generate From CSV
  • Loading branch information
silabs-hfegran authored Oct 16, 2023
2 parents 651d10b + 0c89e67 commit b8a06d3
Show file tree
Hide file tree
Showing 9 changed files with 11,924 additions and 2 deletions.
9 changes: 7 additions & 2 deletions bin/csv2json
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,16 @@ csv_reader = csv.DictReader(csv_file)
csv_rows = []
csv_row_previous = None

def should_fill_cell(cell_value, previous_row, row_key):
cell_is_empty = not cell_value
previous_row_exists = previous_row
column_should_repeat = row_key in ['Feature', 'Verification Goal']
return cell_is_empty and previous_row_exists and column_should_repeat

for row in csv_reader:
for key, value in row.items():
if not value and csv_row_previous:
if should_fill_cell(value, csv_row_previous, key):
row[key] = csv_row_previous[key]
# TODO not for "link-to-cov" etc

csv_rows.append(row)
csv_row_previous = row
Expand Down
1,598 changes: 1,598 additions & 0 deletions cv32e40s/docs/VerifPlans/Simulation/Zc/RV32Zc_Extension_Instructions.json

Large diffs are not rendered by default.

2,706 changes: 2,706 additions & 0 deletions cv32e40s/docs/VerifPlans/Simulation/debug-trace/CV32E40XS_debug.json

Large diffs are not rendered by default.

1,663 changes: 1,663 additions & 0 deletions cv32e40s/docs/VerifPlans/Simulation/interrupts/CV32E40SX_CLIC.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

1,718 changes: 1,718 additions & 0 deletions cv32e40s/docs/VerifPlans/Simulation/privileged_spec/CV32E40S_PMP.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2,114 changes: 2,114 additions & 0 deletions cv32e40s/docs/VerifPlans/Simulation/xsecure/xsecure_vplan.json

Large diffs are not rendered by default.

0 comments on commit b8a06d3

Please sign in to comment.