(Translated by https://www.hiragana.jp/)
[LLHD] Add `llhd.delay` operation by maerhart · Pull Request #7505 · llvm/circt · GitHub
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

[LLHD] Add llhd.delay operation #7505

Merged
merged 1 commit into from
Aug 10, 2024
Merged

[LLHD] Add llhd.delay operation #7505

merged 1 commit into from
Aug 10, 2024

Conversation

maerhart
Copy link
Member

Add an operation that delays the propagation of value changes from its input to its output. This allows mem2reg of LLHD signals with a unique driver with a delay. For example

%sig = llhd.sig
llhd.drv %sig, %val after <1ns, 0d, 0e>
%res = llhd.prb %sig

can become

%res = llhd.delay %val by <1ns, 0d, 0e>

Add an operation that delays the propagation of value changes from its input to its output.
This allows mem2reg of LLHD signals with a unique driver with a delay.
For example
```
%sig = llhd.sig
llhd.drv %sig, %val after <1ns, 0d, 0e>
%res = llhd.prb %sig
```
can become
```
%res = llhd.delay %val by <1ns, 0d, 0e>
```
Copy link
Contributor

@fabianschuiki fabianschuiki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@maerhart maerhart merged commit a250818 into main Aug 10, 2024
4 checks passed
@maerhart maerhart deleted the maerhart-llhd-delayop branch August 10, 2024 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants