Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
1c36f2b98This file is pinned to the selected release. Download the original to open it in your design tool.
/**
* Defines combinational fixed point math operations
*/
comp FXPMult[W, ?D=W/2]<'G:1>(
left: ['G, 'G+1] W,
right: ['G, 'G+1] W,
) -> (
out: ['G, 'G+1] W
) where D < W, W > 0
{
m := new MultComb[W, W+D]<'G>(left, right);
sel := new Slice[W+D, W+D-1, D]<'G>(m.out);
out = sel.out;
}