Implement unsupported/buggy floating-point operations by using Bluespec's import "BDPI"
feature
#28
Labels
enhancement
New feature or request
import "BDPI"
feature
#28
Currently, there are a variety of floating-point operations that
copilot-bluespec
simply does not support:copilot-bluespec/src/Copilot/Compile/Bluespec/Expr.hs
Lines 95 to 112 in 7babe9c
copilot-bluespec/src/Copilot/Compile/Bluespec/Expr.hs
Lines 147 to 151 in 7babe9c
See B-Lang-org/bsc#534.
In addition,
copilot-bluespec
's implementation ofsqrt
is buggy. See B-Lang-org/bsc#710.Both of these problems can be solved by using BSV's
import "BDPI"
feature, which is essentially a foreign function interface to C code in Bluespec. Using this, we can implement these floating-operations in Bluespec in terms of the corresponding operations inlibc
. They won't be the fastest implementations around, but they'll at least be correct.The text was updated successfully, but these errors were encountered: