Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot train probabilistic grammar with error #77

Closed
WonHoYoo opened this issue Feb 1, 2025 · 2 comments · Fixed by #78
Closed

cannot train probabilistic grammar with error #77

WonHoYoo opened this issue Feb 1, 2025 · 2 comments · Fixed by #78

Comments

@WonHoYoo
Copy link

WonHoYoo commented Feb 1, 2025

Currently I am running the chimera ChiGen tutorial on my Window WSL2 ubuntu shell.

After cloning the repository, the error message popped up after commanding "Train probabilistic grammar" as below

_asus@DESKTOP-DROQ9QQ:~/verilog_test/chimera$ ./scripts/run_parser_count_productions.sh ./database verible-verilog-syntax grammar.json
Usage: ./scripts/run_parser_count_productions.sh <verible_parser_executable> <output_file>

I am using the ChiGen in main branch, and could you be able to check what happening on here?

@mohitk05
Copy link

mohitk05 commented Feb 2, 2025

Hey, I faced this issue as well, and using absolute paths worked for me. Additionally, building verible-verilog-syntax from source also helps.

./scripts/run_parser_count_productions.sh <absolute-path-to-database-folder> <absolute-path-to-verible-verilog-syntax> grammar.json

@joaovam
Copy link
Collaborator

joaovam commented Feb 3, 2025

Hi @WonHoYoo,

Firstly, thank you @mohitk05 for the comment, as you clarified ChiGen's executable needs the path to Verible's parser executable. Therefore you could run it like this:

_asus@DESKTOP-DROQ9QQ:~/verilog_test/chimera$ ./scripts/run_parser_count_productions.sh ./database ./verible-verilog-syntax grammar.json

@joaovam joaovam linked a pull request Feb 3, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants