Page 1 of 1

mono4 bug or missing feature

Posted: Sun Feb 03, 2013 10:35 am
by tester
Example 1 uses simple formula to calculate 3 mono4 inputs into mono4 output.
Works fine.

Example 2a uses more complex formula and does the same as example 1.
Not working.

Example 2b is provided to show, that the formula itself - works.
The same formula is used, but 1 mono4 input is combined with 2 single inputs instead.
Works fine.

So what is going on here?
Looks like a problematic bug.
Support? Anyone?

//edit:
It looks that this is "stage(0)" related problem; when removed - it statrs to work.
So it looks that mono4 primitive for green inputs is missing, something that will sustain outputs...

Re: mono4 bug or missing feature

Posted: Sun Feb 03, 2013 2:13 pm
by stw
tester wrote:Example 1 uses simple formula to calculate 3 mono4 inputs into mono4 output.
Works fine.

Example 2a uses more complex formula and does the same as example 1.
Not working.

Example 2b is provided to show, that the formula itself - works.
The same formula is used, but 1 mono4 input is combined with 2 single inputs instead.
Works fine.

So what is going on here?
Looks like a problematic bug.
Support? Anyone?

//edit:
It looks that this is "stage(0)" related problem; when removed - it statrs to work.
So it looks that mono4 primitive for green inputs is missing, something that will sustain outputs...


You're right - it's a "stage" problem. The FS primitives do their calcs in stage 2. That means the whole packing happens after stage 0 when you need it in your code. In other words all input values are not present. And that's the difference to your working version with green inputs. In that case the "packing" happens inside your code.
A solution could be to do the packing in stage 0 as well. This can be done in asm.
I attached a fixed version

mono4 problem-fixed.fsm
(3.36 KiB) Downloaded 1003 times


P.S: This is not a bug nor a missing feature, it's just how FS works

Re: mono4 bug or missing feature

Posted: Sun Feb 03, 2013 3:15 pm
by tester
Thanks!
I fixed it on the other hand, just by moving stage(0) into greens, just before the code box.
Works :-)