[bug] java.lang.Exception: No final port defined for x10094

29 views
Skip to first unread message

Fisher Li

unread,
Mar 8, 2020, 6:38:37 PM3/8/20
to Spatial Users
Hi:

We encounter this error during compilation , and didn't find anyone post such bug before.

Any clue what is mean and how should we solve it ?

[bug] An exception was encountered while compiling lenet: 
[bug] No final port defined for x10094
[bug] java.lang.Exception: No final port defined for x10094
[bug] This is due to a compiler bug. A log file has been created at:

Fisher Li

unread,
Mar 8, 2020, 10:04:02 PM3/8/20
to Spatial Users
Ok, the issue is solve by reduce the parallel access of SRAM.

Now I'm hitting a different issue, I poke around a bit that into the IR info, that X490 X964 is relate to some loop unroll subroutine.
But our code is very simple, and the loop is very standard, I'm not sure what went wrong and why it complaint about the type in a loop unrolled IR

/gen/lenet/target/scala-2.12/classes ...
[error] /home/pb/cs217/***/gen/lenet/scala/x507_inr_Foreach_kernel.scala:15:56: type mismatch;
[error] found : emul.FixedPoint
[error] required: Double
[error] val x490 = x964_sub / scala.math.pow(2,FixedPoint(BigDecimal("4"),FixFormat(true,16,0)))
[error] ^
[error] one error found
[error] (Compile / compileIncremental) Compilation failed

Matt F

unread,
Mar 8, 2020, 11:00:32 PM3/8/20
to Spatial Users
Hi Fisher.  I see the issue.  I'll push a fix in a second.  If you still have the code that generated the first issue, I'm curious about that if you can still email it to me.

Matt F

unread,
Mar 8, 2020, 11:48:51 PM3/8/20
to Spatial Users
The emul.FixedPoint issue should be fixed now.  If you are using the snapshots/quickstart for Spatial and you still see the issue, try wiping the spatial package in .ivy2 and let me know if its still crashing with the same error after you recompile the app.

Fisher Li

unread,
Mar 9, 2020, 12:25:46 AM3/9/20
to Spatial Users
Thanks for the fix Matt, unfortunately we modified the code so it's gone.

Fisher Li

unread,
Mar 9, 2020, 12:34:26 AM3/9/20
to Spatial Users
We actually got the  same code to compile and make successfully in a different project directory (different git clone) that I used previously.

Any thoughts on why  this might be the case?  (Same spatial installation in the machine)
Reply all
Reply to author
Forward
0 new messages