text: import fault
  import aetherling.helpers.fault_helpers as fault_helpers
  from aetherling.space_time import *
  from aetherling.space_time.reshape_st import DefineReshape_ST
  import magma as m
  import json
  
  
  @cache_definition 
  def Module_0() -> DefineCircuitKind:
      class _Module_0(Circuit):
          name = "top"
          IO = ['I', In(ST_TSeq(256, 0, ST_SSeq(16, ST_Int(8, False))).magma_repr()),'O', Out(ST_TSeq(256, 0, ST_SSeq(16, ST_Int(8, False))).magma_repr())] + ClockInterface(has_ce=False,has_reset=False) + valid_ports
          st_in_t = [ST_TSeq(256, 0, ST_SSeq(16, ST_Int(8, False)))]
          st_out_t = ST_TSeq(256, 0, ST_SSeq(16, ST_Int(8, False)))
          binary_op = False
          @classmethod
          def definition(cls):
              n1 = DefineFIFO(ST_TSeq(256, 0, ST_SSeq(16, ST_Int(8, False))), 1, has_valid=True)()
              wire(cls.I, n1.I)
              wire(cls.valid_up, n1.valid_up)
              n2 = DefineShift_TS(256, 0, 16, 4, ST_Int(8, False), has_valid=True)()
              wire(n1.O, n2.I)
              wire(n1.valid_down, n2.valid_up)
              n3 = DefineShift_TS(256, 0, 16, 1, ST_Int(8, False), has_valid=True)()
              wire(n2.O, n3.I)
              wire(n2.valid_down, n3.valid_up)
              n4 = DefineShift_TS(256, 0, 16, 1, ST_Int(8, False), has_valid=True)()
              wire(n3.O, n4.I)
              wire(n3.valid_down, n4.valid_up)
              n5 = DefineFIFO(ST_TSeq(256, 0, ST_SSeq(16, ST_Int(8, False))), 1, has_valid=True)()
              wire(n4.O, n5.I)
              wire(n4.valid_down, n5.valid_up)
              n6 = DefineFIFO(ST_TSeq(256, 0, ST_SSeq(16, ST_Int(8, False))), 1, has_valid=True)()
              wire(n5.O, n6.I)
              wire(n5.valid_down, n6.valid_up)
              n7 = DefineFIFO(ST_TSeq(256, 0, ST_SSeq(16, ST_Int(8, False))), 1, has_valid=True)()
              wire(n6.O, n7.I)
              wire(n6.valid_down, n7.valid_up)
              wire(n7.O, cls.O)
              wire(n7.valid_down, cls.valid_down)
      return _Module_0
  
  Main = Module_0
  
  fault_helpers.compile(Main(), "v./home/durst/dev/embeddedHaskellAetherling//test/no_bench/magma_examples/shift/shift_16 % 1thr.py")