ucb-bar / hwacha

Microarchitecture implementation of the decoupled vector-fetch accelerator
http://hwacha.org/
148 stars 42 forks source link

hwacha scalar operations div/sqrt never receives valid from FPU #45

Open alexhilaev opened 1 year ago

alexhilaev commented 1 year ago

Hwacha uses FPInput/FPResult in scalar-fpu-interface.scala, but io.cp_resp.valid never set to true, it is not connected to divSqrt_wen only to mem_ctrl.fma || mem_ctrl.fastpipe || mem_ctrl.fromint. This means that all operations with div/sqrt always stall pipeline when we try to use boom with hwacha with scalar div/sqrt operations in hwacha i.e. rv64ud-p-svec-fdiv.