grayresearch / CX

Proposed RISC-V Composable Custom Extensions Specification
Apache License 2.0
66 stars 12 forks source link

Create a bunch of example CFUs operations #1

Open mithro opened 5 years ago

mithro commented 5 years ago

Here is a list of example CFU operations the we thought would be interesting;

We should create implementations of each of the CFU operations and check they work with our CFU interface.

grayresearch commented 4 years ago

Added Popcount Added MulAcc (acc += 32b x 32b) which is different from the above

32b x 32b -> 64b might be done with CFU_REQ_DATA_W=32 where CFU_RESP_DATA_W=64, or might be done withCFU_RESP_DATA_W=32 and CFU_RESP_OUTPUTS = 2.

This begs the question of how to handle CFU_RESP_OUTPUTS>1. Does the CPU accept the tuple of two outputs in one cycle, or does it receive them sequentially one at a time?