def setup(self): sim.setup(model_binary_module=common) vertex_1 = SdramTestVertex(12, fixed_sdram_value=20) vertex_1.splitter = BasicSDRAMSplitter() vertex_2 = SdramTestVertex(12, fixed_sdram_value=20) vertex_2.splitter = SDRAMSplitter( SourceSegmentedSDRAMMachinePartition, vertex_1.splitter) sim.add_vertex_instance(vertex_1) sim.add_vertex_instance(vertex_2) sim.add_application_edge_instance( ApplicationEdge(vertex_1, vertex_2), "sdram") sim.run(100) sim.stop()
def setup(self): sim.setup(model_binary_module=common) vertex_1 = SdramTestVertex(2, fixed_sdram_value=20) vertex_1.splitter = SDRAMSplitterExternal( ConstantSDRAMMachinePartition) vertex_2 = SdramTestVertex(2, fixed_sdram_value=20) vertex_2.splitter = SDRAMSplitterExternal( ConstantSDRAMMachinePartition) sim.add_vertex_instance(vertex_1) sim.add_vertex_instance(vertex_2) sim.add_application_edge_instance( ApplicationEdge(vertex_1, vertex_2), "sdram") sim.run(100) sim.stop()
def setup(self): sim.setup(model_binary_module=common) vertex_1 = SdramTestVertex(2, fixed_sdram_value=200 * 1024 * 1024) vertex_1.splitter = SDRAMSplitterExternal( ConstantSDRAMMachinePartition) vertex_2 = SdramTestVertex(2, fixed_sdram_value=200 * 1024 * 1024) vertex_2.splitter = SDRAMSplitterExternal( ConstantSDRAMMachinePartition) sim.add_vertex_instance(vertex_1) sim.add_vertex_instance(vertex_2) sim.add_application_edge_instance(ApplicationEdge(vertex_1, vertex_2), "sdram") with self.assertRaises(PacmanValueError): sim.run(100)