Skip to content

Commit 06e4404

Browse files
authored
Adding information about tokens and available programs
1 parent f5a3fd0 commit 06e4404

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ verible-verilog-format --inplace program.v
6464
```
6565

6666
### 7. Command Line options (optional)
67+
- `-t <target-size>`: Specifies the minimum number of tokens in the generated programs, for instance, `-t 200`.
6768
- `--printseed`: Prints the randomization seed.
6869
- `--printcfg`: Generates call graph dot file.
6970
- `--debug`: Prints debug messages.
@@ -75,6 +76,19 @@ verible-verilog-format --inplace program.v
7576
If you ever use ChiBench or ChiGen to find bugs in some EDA tool, we would appreciate it very much if you could reach out to us and report your experience.
7677
If you need help to set up the scripts to do this kind of exploration, feel free to reach out to us as well!
7778

79+
### Available designs
80+
There are already some ChiGen programs available in the folder `3k_programs_for_bugs/chigen/`.
81+
82+
### Generating multiple designs
83+
In the `scripts` folder, there is a script called `generate_programs.sh`, which generates a specified number of programs. The usage is:
84+
```
85+
scripts/generate_programs.sh <target-directory> <chimera_executable> <json_file> <n_gram> <number of programs to generate> <path_to_formatter> <target_size>"
86+
```
87+
One example of use would be:
88+
```
89+
./scripts/generate_programs.sh ./generated_programs ./build/Chimera ./json/1gram_size_test_modified.json 1 1000 ./verible_bin/verible-verilog-format 100
90+
```
91+
7892
## Use cases
7993
We have found various bugs in open-source platforms with programs from ChiBench and ChiGen. Below we list examples of issues reported:
8094

0 commit comments

Comments
 (0)