mono4 bug or missing feature

For general discussion related FlowStone
Post Reply
tester
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

mono4 bug or missing feature

Post 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...
Attachments
mono4 problem.fsm
(2.94 KiB) Downloaded 1013 times
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
stw
Posts: 111
Joined: Tue Jul 13, 2010 11:09 am
Contact:

Re: mono4 bug or missing feature

Post 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
tester
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: mono4 bug or missing feature

Post by tester »

Thanks!
I fixed it on the other hand, just by moving stage(0) into greens, just before the code box.
Works :-)
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
Post Reply