コード例 #1
0
ファイル: streams.py プロジェクト: TANGO-Project/poroto
 def assign_instance(self, instance, from_instance):
     Stream.assign_instance(self, instance, from_instance)
     if from_instance:
         if self.memory_name not in from_instance.streams_map:
             print "Add bram stream in %s for %s" % (from_instance.name, self.memory_name)
             mem_stream = BramStream(self.memory_name, self.memory_name, self.size, self.debug)
             from_instance.add_stream(mem_stream)
         self.mem_stream = from_instance.streams_map[self.memory_name]
         if self.out_stream:
             self.mem_stream.out_stream=True
         if self.in_stream:
             self.mem_stream.in_stream=True
コード例 #2
0
 def __init__(self, name, memory_name, size, data_size, debug):
     Stream.__init__(self, name, memory_name, size, data_size, debug)
コード例 #3
0
 def __init__(self, name, memory_name, size, data_size, debug):
     Stream.__init__(self, name, memory_name, size, data_size, debug)
     self.out_stream = True