Charles Eric LaForest, PhD’s Post

View profile for Charles Eric LaForest, PhD, graphic

Owner at GateForge Consulting Ltd.

When you focus on synthesizable-only Verilog like I do, it's easy to forget that you can do arbitrary computations during elaboration to compute constants for synthesis. Here's an example: a helper function to compute the Greatest Common Divisor of two integers, which is a useful building block for larger calculations. It needs the absolute value helper function, but that's trivial. https://lnkd.in/gvq7a6pG

Greatest Common Divisor (GCD) Function

fpgacpu.ca

To view or add a comment, sign in

Explore topics