Skip to content

Commit 9cde960

Browse files
committed
Add support to convert csv to excel file
1 parent 7dbd7b9 commit 9cde960

File tree

6 files changed

+536
-277
lines changed

6 files changed

+536
-277
lines changed

README.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ Options:
6060
--clang-triple NAME Use specific Clang triple name (default: riscv64-unknown-elf-clang)
6161
--version VER Process specific version only
6262
--list-versions List available versions and exit
63+
--no-description Filter out description column in the merged output
6364
```
6465

6566
### Examples
@@ -87,6 +88,10 @@ Use a different GCC triple:
8788
List all available versions:
8889
```bash
8990
./gen_compiler_ext.sh --list-versions
91+
92+
Filter out description column from output:
93+
```bash
94+
./gen_compiler_ext.sh --no-description
9095
```
9196

9297
## 📦 Output Files
@@ -108,4 +113,51 @@ compiler-ext.csv # Combined & sorted CSV of all versions
108113
```
109114

110115
The merged CSV file includes columns for each toolchain version, showing whether each extension is supported ('Y') or not ('N').
116+
---
117+
118+
119+
## 📊 Excel Conversion
120+
121+
You can convert the generated CSV file to a formatted Excel spreadsheet using the included `csv_to_xlsx.py` script:
122+
123+
```bash
124+
python csv_to_xlsx.py compiler-ext.csv
125+
```
126+
127+
### Excel Conversion Options
128+
129+
```
130+
Options:
131+
--output, -o FILE Specify output XLSX filename
132+
--freeze, -f Freeze the first two columns (Name, Version)
133+
--separate-sheets, -s Create additional separate sheets for GCC and Clang
134+
```
135+
136+
### Examples
137+
138+
```bash
139+
# Basic conversion
140+
python csv_to_xlsx.py compiler-ext.csv
141+
142+
# Create additional separate sheets for GCC and Clang
143+
python csv_to_xlsx.py compiler-ext.csv --separate-sheets
144+
145+
# Specify a custom output filename
146+
python csv_to_xlsx.py compiler-ext.csv -o risc-v-extensions.xlsx
147+
```
148+
149+
### Dependencies
150+
151+
This script requires:
152+
- pandas
153+
- openpyxl
154+
155+
You can install these with:
156+
157+
```bash
158+
pip install pandas openpyxl
159+
```
160+
161+
The Excel file will have conditional formatting with green highlighting for supported extensions ('Y') and red for unsupported ones ('N').
162+
111163

0 commit comments

Comments
 (0)