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

Using SV sytem functions #29

Closed
taichi-ishitani opened this issue Dec 24, 2022 · 2 comments
Closed

Using SV sytem functions #29

taichi-ishitani opened this issue Dec 24, 2022 · 2 comments
Labels
lang Language design

Comments

@taichi-ishitani
Copy link
Contributor

SystemVerilog has useful sytem functions, such as $clog2.
I'd like to use SV system functions within VL code but I got a syntax error.

Error: parol_runtime::unexpected_token

  × Unexpected token: LA(1) (Error)
   ╭─[test.vl:3:1]
 3 │   parameter MAX_COUNT:   u32 = 8,
 4 │   parameter COUNT_WIDTH: u32 = $clog2(MAX_COUNT + 1)
   ·                                ┬
   ·                                ╰── Unexpected token
 5 │ )(
   ╰────
  help: Unexpected token

Does not support such feature?

@dalance dalance added the lang Language design label Dec 24, 2022
@dalance dalance mentioned this issue Dec 25, 2022
@dalance
Copy link
Collaborator

dalance commented Dec 25, 2022

General function call is not still supported.
System function call will be supported at the same time.

@taichi-ishitani
Copy link
Contributor Author

OK, I understand.
I track this request by using #33.

dalance added a commit that referenced this issue Dec 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang Language design
Projects
None yet
Development

No branches or pull requests

2 participants