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

CC backend can generate impossibly long seq_wait instructions in rare cases #470

Open
wvlothuizen opened this issue Jan 11, 2023 · 0 comments

Comments

@wvlothuizen
Copy link
Collaborator

If a single 'kernel' takes longer than 65535*20 ns (~1.3 ms), the backend can generate an operand to seq_wait exceeding the maximum of 65535 (2^16-1), causing assembly on the CC to fail (see https://github.com/QuTech-Delft/OpenQL/blob/develop/src/ql/arch/cc/pass/gen/vq1asm/detail/codegen.cc#L1259).

As a workaround, long programs can be broken up (e.g. by inserting labels in cQASM), for a true solution multiple seq_wait instructions need to be generated for the cases described above,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant