

def enq(s, item):
    assert (not s.full())
    s.data.append(item)
    if (len(s.data) != 0):
        s.out.msg.next = s.data[0]
    s.out.val.next = (len(s.data) != 0)

dataset/ETHPy150Open cornell-brg/pymtl/pclib/cl/adapters.py OutValRdyQueueAdapter.enq/original