moiri / streamix-c

compiler for Streamix
GNU General Public License v2.0
0 stars 0 forks source link

Connection Priority in Wrapper #22

Open moiri opened 4 years ago

moiri commented 4 years ago

The connection priority in wrappers seems to be messed up:

Wrapper connections seem to outweigh net connections which should not be the case.

Example:

wrapper PlSrc( in trigger_pl, out data_pl(gaze), out data_db(gaze) ) {
    Pl = extern box smx_src_rand( decoupled in trigger_pl( trigger ), out gaze(data), out events open )
    Sleep = extern box smx_prc_worker( left in gaze(data), right out gaze(data) )
    connect Pl.Sleep
} net( left out events, left in trigger_pl, right out gaze )

Pl.gaze connects to the wrapper instead of Sleep.gaze.