Open RazvanN7 opened 4 years ago
Hi Razvan,
The first problem is probably because of the version difference in dsptools library. It seems there is an update for dsptools and they have replaced Floor
with RoundDown
. I updated the interface.
For the second problem, if you look at this file: muir-sim/hardware/chisel/src/test/scala/accel/VCRAccel.scala
this is where we instantiate the accelerators. What you need to do is make sure your accelerator class in line: 73
is exactly what you intend to build, in DandelionSimAccelMain
class. Moreover, you have to make sure the values for NUM_PTRS, NUM_VALS and NUM_RETS matches with the accelerated function. For instance, in the case of test01, we have 0 pointers, 2 values and 1 returns. So you have to make sure these values are properly set at the build time.
I'm working on a run.py
file which accepts a JSON as configure file and it automatically takes care of setting these parameters for building a new accelerator. Because currently, it's very error-prone to always make sure these variables are properly set according to the actual accelerator.
The README doc is misleading, I updated the text, but still needs more details...
When running the command:
I get the following error:
Which I was able to fix by modifying
hardware/chisel/dandelion/src/main/scala/node/Alu
and replacingFloor
withRoundDown
. I didn't make a PR as I do not have the dandelion repo which is a git submodule of muIR-sim. This made the advanced the compilation to the point where I get:This I don't know how to bypass.