Closed Xaec6 closed 4 years ago
You should use .value
Inside your combinational block, i.e.:
@s.combinational
def logic():
s.out[1].value = ~s.in_[1]
s.out[0].value = s.in_[3]
Hope this solves your problem!
oh i didn't realize value could be used on slices, thanks!
For example, the following code does not guarantee that models wired to the outport will execute after the combinational block is finished, but adding
s.out.value = 0
at the beginning of the block fixes the issue.