def xtick( s ):
    if s.out.rdy and s.out.val:
      s.data.popleft()
    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.xtick/original