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

Error when using vec-of in rule is not readable #370

Open
gussmith23 opened this issue Apr 25, 2024 · 0 comments
Open

Error when using vec-of in rule is not readable #370

gussmith23 opened this issue Apr 25, 2024 · 0 comments

Comments

@gussmith23
Copy link
Contributor

gussmith23 commented Apr 25, 2024

Error:
image

Rule:

(rule
 ((= ha1_s (GetOutput (ModuleInstance "HalfAdd" (vec-of "a" "b") (vec-of a b)) "sum"))
  (= ha1_c (GetOutput (ModuleInstance "HalfAdd" (vec-of "a" "b") (vec-of a b)) "carry"))
  (= fa_s (GetOutput (ModuleInstance "HalfAdd" (vec-of "a" "b") (vec-of ha1_s c)) "sum"))
  (= ha2_c (GetOutput (ModuleInstance "HalfAdd" (vec-of "a" "b") (vec-of ha1_s c)) "carry"))
  (= fa_c (Op2 (Or) ha1_c ha2_c)))
 ((union fa_s (GetOutput (ModuleInstance "FullAdd" (vec-of "a" "b" "c") (vec-of a b c)) "sum"))
  (union fa_c (GetOutput (ModuleInstance "FullAdd" (vec-of "a" "b" "c") (vec-of a b c)) "carry")))
 :ruleset adders)

@oflatt says this is due to the use of vec-of. Working around it with a cons list, but the error isn't great!

Thanks @zsisco for finding this.

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

1 participant