diff --git a/dataflow_neuro/primitives.act b/dataflow_neuro/primitives.act index 732c4ee..2d50581 100644 --- a/dataflow_neuro/primitives.act +++ b/dataflow_neuro/primitives.act @@ -863,7 +863,8 @@ defproc slice_data(avMx1of2 in; avMx1of2 out; } - + // this is a wrapper for the demux, such that the condition bit is absorbed into the data + // and demux msb is just defaulting it to the msb export template defproc demux_bit (avMx1of2 in; avMx1of2 out1; avMx1of2 out2; bool? reset_B; power supply) { diff --git a/test/unit_tests/demux_bit_7/test.prsim b/test/unit_tests/demux_bit_7/test.prsim index 00fb94a..b53c09f 100644 --- a/test/unit_tests/demux_bit_7/test.prsim +++ b/test/unit_tests/demux_bit_7/test.prsim @@ -22,7 +22,7 @@ cycle system "echo 'Output neutral checked'" -set-qdi-channel-valid "my_demux.in" 8 255 +set-qdi-channel-valid "my_demux.in" 8 254 cycle assert my_demux.in.v 1 assert my_demux.in.a 0 @@ -59,12 +59,12 @@ set my_demux.out2.a 0 set my_demux.out2.v 0 cycle -set-qdi-channel-valid "my_demux.in" 8 100 +set-qdi-channel-valid "my_demux.in" 8 101 cycle assert my_demux.in.v 1 assert my_demux.in.a 0 -assert-qdi-channel-valid "my_demux.out2" 7 100 +assert-qdi-channel-valid "my_demux.out2" 7 50 set my_demux.out2.v 1 cycle assert my_demux.in.a 1