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

Df: registerBwd now places only a single register on the data path #70

Merged
merged 1 commit into from
Mar 14, 2024

Conversation

rowanG077
Copy link
Member

@rowanG077 rowanG077 commented Mar 14, 2024

Currently registerBwd fully registers both the forward and backward paths. Which is somewhat misleading given the name. This PR makes it so it only breaks up the path on the backward direction. Which can be done with one register less on the forward path.

@rowanG077 rowanG077 changed the title Df: RegisterBwd now places only a single register on the data path Df: registerBwd now places only a single register on the data path Mar 14, 2024
@rowanG077 rowanG077 force-pushed the registerBwd-opt branch 4 times, most recently from ae93aee to 452b2e4 Compare March 14, 2024 17:04
@rowanG077
Copy link
Member Author

Resource usage for Data (BitVector 64) on an ECP5 using yosys

Current registerBwd:

Info:             TRELLIS_FF:   130/24288     0%
Info:           TRELLIS_COMB:    71/24288     0%

This PR registerBwd:

Info:             TRELLIS_FF:    65/24288     0%
Info:           TRELLIS_COMB:    67/24288     0%

This PR registerBwd |> registerFwd/ registerFwd |> registerBwd:

Info:             TRELLIS_FF:   130/24288     0%
Info:           TRELLIS_COMB:    71/24288     0%

@rowanG077 rowanG077 force-pushed the registerBwd-opt branch 3 times, most recently from afa897b to dd1ffdc Compare March 14, 2024 17:15
Copy link
Member

@martijnbastiaan martijnbastiaan left a comment

Choose a reason for hiding this comment

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

Very nice!

src/Protocols/Df.hs Outdated Show resolved Hide resolved
src/Protocols/Df.hs Outdated Show resolved Hide resolved
@rowanG077 rowanG077 merged commit c735edc into main Mar 14, 2024
9 checks passed
@rowanG077 rowanG077 deleted the registerBwd-opt branch March 14, 2024 20:41
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

Successfully merging this pull request may close these issues.

2 participants