google / google/xls

add gcd proc example

Open
#1,444 0 comments 0 reactions 0 assignees View on GitHub
app dslx
Dominant language
C++
Stars
1.9k
Forks
283
Avg merge
2d 10h
Merged PRs (30d)
135

Description

As suggested by @grebe in #935

> I think gcd is a good candidate for proc implementations, which would let you do the "early return" I think you're describing. Each proc tick would do one division (or gcd_binary_match), and you send the output when you reach the stop condition.

This would also be useful to show comparison and tradeoff between the proc and the automatically pipelined version.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.