Commented unit tests. Added negative coordinate test on test 03.

This commit is contained in:
mguthaus 2017-04-16 08:04:06 -07:00
parent 7cac1a0357
commit f51e82e75a
7 changed files with 20 additions and 4 deletions

View File

@ -118,7 +118,7 @@ class router:
for layer in self.layers:
self.write_obstacle(self.top_name)
def clear(self):
def clear_pins(self):
"""
Reset the source and destination pins to start a new routing.
Convert the source/dest to blockages.

View File

@ -12,6 +12,9 @@ import calibre
class no_blockages_test(unittest.TestCase):
"""
Simplest two pin route test with no blockages.
"""
def runTest(self):
globals.init_openram("config_{0}".format(OPTS.tech_name))

View File

@ -12,6 +12,9 @@ import calibre
class blockages_test(unittest.TestCase):
"""
Simple two pin route test with multilayer blockages.
"""
def runTest(self):
globals.init_openram("config_{0}".format(OPTS.tech_name))

View File

@ -12,7 +12,9 @@ import calibre
class same_layer_pins_test(unittest.TestCase):
"""
Checks two pins on the same layer with positive and negative coordinates.
"""
def runTest(self):
globals.init_openram("config_{0}".format(OPTS.tech_name))
@ -51,7 +53,7 @@ class same_layer_pins_test(unittest.TestCase):
layer_stack =("metal1","via1","metal2")
r.route(layer_stack,src="A",dest="B")
r.add_route(self)
self.gds_write("temp.gds")
r = routing("test1", "03_same_layer_pins_test")
self.local_check(r)

View File

@ -12,6 +12,10 @@ import calibre
class diff_layer_pins_test(unittest.TestCase):
"""
Two pin route test with pins on different layers and blockages.
Pins are smaller than grid size.
"""
def runTest(self):
globals.init_openram("config_{0}".format(OPTS.tech_name))

View File

@ -12,6 +12,10 @@ import calibre
class two_nets_test(unittest.TestCase):
"""
Route two nets in the same GDS file. The routes will interact,
so they must block eachother.
"""
def runTest(self):
globals.init_openram("config_{0}".format(OPTS.tech_name))
@ -51,7 +55,7 @@ class two_nets_test(unittest.TestCase):
layer_stack =("metal1","via1","metal2")
r.route(layer_stack,src="A",dest="B")
r.add_route(self)
r.route(layer_stack,src="A",dest="B")
r.add_route(self)