old_contents: #!/usr/bin/env python3
  # -*- coding: utf-8 -*-
  
  from hdl_toolkit.intfLvl import Param, connect, Unit
  from hwtLib.interfaces.amba import AxiStream
  
  
  class Simple2withNonDirectIntConnection(Unit):
      def _config(self):
          self.DATA_WIDTH = Param(8)
          
      def _declr(self):
          with self._paramsShared():
              self.a = AxiStream()
              self.c = AxiStream()
          
      def _impl(self):
          # we have to register ineterface on this unit first before use
          self.b = AxiStream()
          b = self.b 
  
          connect(self.a, b)
          connect(b, self.c)
          
  if __name__ == "__main__":
      from hdl_toolkit.synthesizer.shortcuts import toRtl
      print(toRtl(Simple2withNonDirectIntConnection))
  
new_contents: #!/usr/bin/env python3
  # -*- coding: utf-8 -*-
  
  from hdl_toolkit.intfLvl import Param, Unit
  from hwtLib.interfaces.amba import AxiStream
  
  
  class Simple2withNonDirectIntConnection(Unit):
      def _config(self):
          self.DATA_WIDTH = Param(8)
          
      def _declr(self):
          with self._paramsShared():
              self.a = AxiStream()
              self.c = AxiStream()
          
      def _impl(self):
          # we have to register interface on this unit first before use
          with self._paramsShared():
              self.b = AxiStream()
          b = self.b 
  
          b ** self.a
          self.c ** b
          
  if __name__ == "__main__":
      from hdl_toolkit.synthesizer.shortcuts import toRtl
      print(toRtl(Simple2withNonDirectIntConnection))
  
subject: add missing parameter sharing