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
def __init__(self, name, memory_name, size, data_size, debug): Stream.__init__(self, name, memory_name, size, data_size, debug)
def __init__(self, name, memory_name, size, data_size, debug): Stream.__init__(self, name, memory_name, size, data_size, debug) self.out_stream = True