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

Issue when parsing IPXACT file with a Verilog number format which doesn't have a prefix number #7

Open
maestrosoft opened this issue Sep 23, 2024 · 1 comment

Comments

@maestrosoft
Copy link

maestrosoft commented Sep 23, 2024

If you try to parse an IPXACT file with a Verilog number 'h4834 (which is legal) it will fail.
May be use the Verilog regex parser?

const char VERILOG_PARSER_REGEX[] = "\s*([0-9])'([hbdo])([0-9A-Fa-f_]+)\s";

@meklort
Copy link
Owner

meklort commented Sep 24, 2024

The code does record the width for use later (if needed, currently not used). I'd be open to a patch that switches the regex and calculates the number of bits needed in the case where it's not provided.

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

No branches or pull requests

2 participants