SimonBuxx / LogiJS

Discover and create logic circuits
https://logijs.com
GNU General Public License v3.0
42 stars 6 forks source link

CustomSketch not working when embedded #81

Open ssmid opened 3 years ago

ssmid commented 3 years ago

I was trying to build a RAM, from 1 bit to 1 byte, 8 bytes and so on. However, the 8-byte-block works fine when tested directly, but if it is embedded into another sketch, it does not.

8-byte-block: https://logijs.com/editor?link=oP_cISCs5O

gates_bug1

Embedded version: https://logijs.com/editor?link=LZerqn282Q

gates_bug2

Is this some recursion error?

Windows 10 / Firefox 86.0.1

SimonBuxx commented 3 years ago

Hey @ssmid! Since I took a break from development, I saw your issues just now. Thanks so much for giving LogiJS a try! Yeah, this seems to be some kind of recursion error, probably involving the bus lines. I'll look into it when I got the time. Thank you for submitting this!

quasar098 commented 2 years ago

I think it will work if the bus inputs are implemented seems to be the root cause of your problem