From 96c75d7c4b594f5685cb2ab878912cd2c5ff005c Mon Sep 17 00:00:00 2001 From: mrg Date: Wed, 23 Dec 2020 07:42:36 -0800 Subject: [PATCH] Remove outdated unit tests for router --- compiler/router/tests/01_no_blockages_test.py | 62 ---- compiler/router/tests/01_no_blockages_test.sp | 3 - .../tests/01_no_blockages_test_freepdk45.gds | Bin 2048 -> 0 bytes .../tests/01_no_blockages_test_scn4m_subm.gds | Bin 2048 -> 0 bytes compiler/router/tests/02_blockages_test.py | 66 ----- compiler/router/tests/02_blockages_test.sp | 3 - .../tests/02_blockages_test_freepdk45.gds | Bin 2048 -> 0 bytes .../tests/02_blockages_test_scn4m_subm.gds | Bin 2048 -> 0 bytes .../router/tests/03_same_layer_pins_test.py | 61 ---- .../router/tests/03_same_layer_pins_test.sp | 3 - .../03_same_layer_pins_test_freepdk45.gds | Bin 4096 -> 0 bytes .../03_same_layer_pins_test_scn4m_subm.gds | Bin 4096 -> 0 bytes .../router/tests/04_diff_layer_pins_test.py | 63 ----- .../router/tests/04_diff_layer_pins_test.sp | 3 - .../04_diff_layer_pins_test_freepdk45.gds | Bin 4096 -> 0 bytes .../04_diff_layer_pins_test_scn4m_subm.gds | Bin 4096 -> 0 bytes compiler/router/tests/05_two_nets_test.py | 65 ----- compiler/router/tests/05_two_nets_test.sp | 3 - .../tests/05_two_nets_test_freepdk45.gds | Bin 4096 -> 0 bytes .../tests/05_two_nets_test_scn4m_subm.gds | Bin 6144 -> 0 bytes compiler/router/tests/06_pin_location_test.py | 72 ----- .../tests/06_pin_location_test_freepdk45.gds | Bin 2048 -> 0 bytes .../06_pin_location_test_scn3me_subm.gds | Bin 2048 -> 0 bytes compiler/router/tests/07_big_test.py | 90 ------ .../router/tests/07_big_test_scn4m_subm.gds | Bin 42886 -> 0 bytes .../router/tests/08_expand_region_test.py | 66 ----- .../tests/08_expand_region_test_freepdk45.gds | Bin 2048 -> 0 bytes .../08_expand_region_test_scn4m_subm.gds | Bin 2048 -> 0 bytes compiler/router/tests/10_supply_grid_test.py | 56 ---- compiler/router/tests/config_freepdk45.py | 16 -- compiler/router/tests/config_scn4m_subm.py | 15 - compiler/router/tests/gds_cell.py | 23 -- compiler/router/tests/regress.py | 46 --- compiler/router/tests/testutils.py | 265 ------------------ 34 files changed, 981 deletions(-) delete mode 100644 compiler/router/tests/01_no_blockages_test.py delete mode 100644 compiler/router/tests/01_no_blockages_test.sp delete mode 100644 compiler/router/tests/01_no_blockages_test_freepdk45.gds delete mode 100644 compiler/router/tests/01_no_blockages_test_scn4m_subm.gds delete mode 100644 compiler/router/tests/02_blockages_test.py delete mode 100644 compiler/router/tests/02_blockages_test.sp delete mode 100644 compiler/router/tests/02_blockages_test_freepdk45.gds delete mode 100644 compiler/router/tests/02_blockages_test_scn4m_subm.gds delete mode 100644 compiler/router/tests/03_same_layer_pins_test.py delete mode 100644 compiler/router/tests/03_same_layer_pins_test.sp delete mode 100644 compiler/router/tests/03_same_layer_pins_test_freepdk45.gds delete mode 100644 compiler/router/tests/03_same_layer_pins_test_scn4m_subm.gds delete mode 100644 compiler/router/tests/04_diff_layer_pins_test.py delete mode 100644 compiler/router/tests/04_diff_layer_pins_test.sp delete mode 100644 compiler/router/tests/04_diff_layer_pins_test_freepdk45.gds delete mode 100644 compiler/router/tests/04_diff_layer_pins_test_scn4m_subm.gds delete mode 100644 compiler/router/tests/05_two_nets_test.py delete mode 100644 compiler/router/tests/05_two_nets_test.sp delete mode 100644 compiler/router/tests/05_two_nets_test_freepdk45.gds delete mode 100644 compiler/router/tests/05_two_nets_test_scn4m_subm.gds delete mode 100644 compiler/router/tests/06_pin_location_test.py delete mode 100644 compiler/router/tests/06_pin_location_test_freepdk45.gds delete mode 100644 compiler/router/tests/06_pin_location_test_scn3me_subm.gds delete mode 100644 compiler/router/tests/07_big_test.py delete mode 100644 compiler/router/tests/07_big_test_scn4m_subm.gds delete mode 100644 compiler/router/tests/08_expand_region_test.py delete mode 100644 compiler/router/tests/08_expand_region_test_freepdk45.gds delete mode 100644 compiler/router/tests/08_expand_region_test_scn4m_subm.gds delete mode 100644 compiler/router/tests/10_supply_grid_test.py delete mode 100644 compiler/router/tests/config_freepdk45.py delete mode 100644 compiler/router/tests/config_scn4m_subm.py delete mode 100644 compiler/router/tests/gds_cell.py delete mode 100644 compiler/router/tests/regress.py delete mode 100644 compiler/router/tests/testutils.py diff --git a/compiler/router/tests/01_no_blockages_test.py b/compiler/router/tests/01_no_blockages_test.py deleted file mode 100644 index 1210c064..00000000 --- a/compiler/router/tests/01_no_blockages_test.py +++ /dev/null @@ -1,62 +0,0 @@ -# See LICENSE for licensing information. -# -# Copyright (c) 2016-2019 Regents of the University of California and The Board -# of Regents for the Oklahoma Agricultural and Mechanical College -# (acting for and on behalf of Oklahoma State University) -# All rights reserved. -# -#!/usr/bin/env python3 -"Run a regresion test the library cells for DRC" - -import unittest -from testutils import header,openram_test -import sys,os -sys.path.append(os.path.join(sys.path[0],"../..")) -sys.path.append(os.path.join(sys.path[0],"..")) -import globals -import debug - -OPTS = globals.OPTS - -class no_blockages_test(openram_test): - """ - Simplest two pin route test with no blockages. - """ - - def runTest(self): - globals.init_openram("config_{0}".format(OPTS.tech_name)) - from gds_cell import gds_cell - from design import design - from signal_router import signal_router as router - - class routing(design, openram_test): - """ - A generic GDS design that we can route on. - """ - def __init__(self, name): - design.__init__(self, "top") - - # Instantiate a GDS cell with the design - gds_file = "{0}/{1}.gds".format(os.path.dirname(os.path.realpath(__file__)),name) - cell = gds_cell(name, gds_file) - self.add_inst(name=name, - mod=cell, - offset=[0,0]) - self.connect_inst([]) - - layer_stack =("metal1","via1","metal2") - r=router(layer_stack,self,gds_file) - self.assertTrue(r.route(src="A",dest="B")) - - r=routing("01_no_blockages_test_{0}".format(OPTS.tech_name)) - self.local_drc_check(r) - - # fails if there are any DRC errors on any cells - globals.end_openram() - -# instantiate a copy of the class to actually run the test -if __name__ == "__main__": - (OPTS, args) = globals.parse_args() - del sys.argv[1:] - header(__file__, OPTS.tech_name) - unittest.main() diff --git a/compiler/router/tests/01_no_blockages_test.sp b/compiler/router/tests/01_no_blockages_test.sp deleted file mode 100644 index d0b092ca..00000000 --- a/compiler/router/tests/01_no_blockages_test.sp +++ /dev/null @@ -1,3 +0,0 @@ - -.SUBCKT cell -.ENDS cell diff --git a/compiler/router/tests/01_no_blockages_test_freepdk45.gds b/compiler/router/tests/01_no_blockages_test_freepdk45.gds deleted file mode 100644 index ec3c99d00a0e1d1650c6b27b2ae46b5333ecbd29..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2048 zcmeH@u`UEb9L9e)yZg6ti#<7H_ZAz?6(m=R1}CEN1WJjMNF*XwOQZ1!M{}K5@B|(} ztpf!AcmGJwGc30CUzGW&CV#6~>dKMny(`Er!7|^_^g9(xT{-lRX%64E>xOH< OHQ*X>4Y&rr8~6l%5i%_R diff --git a/compiler/router/tests/01_no_blockages_test_scn4m_subm.gds b/compiler/router/tests/01_no_blockages_test_scn4m_subm.gds deleted file mode 100644 index 9d8b540e4fb315b934a3e31d77a606363d970fdc..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2048 zcmeH@u`UEr6o$XOGjoj?%(BSLZXu#05tU3>u@liKSEH0zl|*55qW1_xGo4r1C-4AD zonE6BS!c{#6syqRTbyt1x%1~g=SQQ^bQ+3~DQ0OAvBn%e3pC};AyE2saCUNaol(H3Rn*vsdBcv71JZ|p1{!b zg>I8^`qAhkhooPzJ1_bJFf{$7|Cb)(6>yd-PF}$35DZOU_~jpb&%dZ-V!hNTYh2c# z?d?T*UdSgwxtANl&NDjFJ-LjZUjBWN?cXb=*W&yp+t)OG;lJJ6ci`WY?rH5lA#}^> R?6C>h1Z)B}0h>Ubz$fW_IvxN3 diff --git a/compiler/router/tests/02_blockages_test.py b/compiler/router/tests/02_blockages_test.py deleted file mode 100644 index 056cb3f7..00000000 --- a/compiler/router/tests/02_blockages_test.py +++ /dev/null @@ -1,66 +0,0 @@ -# See LICENSE for licensing information. -# -# Copyright (c) 2016-2019 Regents of the University of California and The Board -# of Regents for the Oklahoma Agricultural and Mechanical College -# (acting for and on behalf of Oklahoma State University) -# All rights reserved. -# -#!/usr/bin/env python3 -"Run a regresion test the library cells for DRC" - -import unittest -from testutils import header,openram_test -import sys,os -sys.path.append(os.path.join(sys.path[0],"../..")) -sys.path.append(os.path.join(sys.path[0],"..")) -import globals -import debug - -OPTS = globals.OPTS - -class blockages_test(openram_test): - """ - Simple two pin route test with multilayer blockages. - """ - - def runTest(self): - globals.init_openram("config_{0}".format(OPTS.tech_name)) - from gds_cell import gds_cell - from design import design - from signal_router import signal_router as router - - class routing(design, openram_test): - """ - A generic GDS design that we can route on. - """ - def __init__(self, name): - design.__init__(self, "top") - - # Instantiate a GDS cell with the design - gds_file = "{0}/{1}.gds".format(os.path.dirname(os.path.realpath(__file__)),name) - cell = gds_cell(name, gds_file) - self.add_inst(name=name, - mod=cell, - offset=[0,0]) - self.connect_inst([]) - - layer_stack =("metal1","via1","metal2") - r=router(layer_stack,self,gds_file) - self.assertTrue(r.route(src="A",dest="B")) - - r=routing("02_blockages_test_{0}".format(OPTS.tech_name)) - self.local_drc_check(r) - - # fails if there are any DRC errors on any cells - globals.end_openram() - - - - - -# instantiate a copy of the class to actually run the test -if __name__ == "__main__": - (OPTS, args) = globals.parse_args() - del sys.argv[1:] - header(__file__, OPTS.tech_name) - unittest.main() diff --git a/compiler/router/tests/02_blockages_test.sp b/compiler/router/tests/02_blockages_test.sp deleted file mode 100644 index d0b092ca..00000000 --- a/compiler/router/tests/02_blockages_test.sp +++ /dev/null @@ -1,3 +0,0 @@ - -.SUBCKT cell -.ENDS cell diff --git a/compiler/router/tests/02_blockages_test_freepdk45.gds b/compiler/router/tests/02_blockages_test_freepdk45.gds deleted file mode 100644 index e6f868dc1c849f960fa7355608d9cadb055403a1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2048 zcmeH_KTE?<6vat2SKq;Zq_f*&DE_qSQnkd zRdCQr1P4JU!H=NOPhdT-@tJnW;GRI<@8ytl-@S(i2>}T&Cg5NQDP-Vc7Nanc<@XpC zU_$RPdFCeuG>2V{DU(_aMCI@#a-fM3|0 y{D$3=Y2Jd|VnD5vp?;fP=I;STk5^=RJfPOeoW4Ut?B!H9)|iZ?_Nqk>@CG};M?7TOtKz)s&FSQrqowG?b@ zl%R!`osS?27J`DTXI;mQkQDYi#eBmL|D1FF859PJT!%rN5HXUZ8KR3IDLRQVN!U>3 z%I3!2P8E_qbG~peUA#GanpwUWsUNL1$eFG;Be%KUDS}E>E4x+vK~NEcF;vt5hT}dM zc!t28!{j(Kh}W!EZ7{qg}w)uS{JtQTh_-p z6zUF(Wiae*F!l}Ee!;@|4y&2JZx9`l1>b7l+rdtGW>*xY@S-?HAX z#rx_oZ9?=3G_@XiZReLi^C|HiJM3POzjFebS{HuT56B#T3D;X*0$u`M0$u`c0$*WT BaOMC2 diff --git a/compiler/router/tests/03_same_layer_pins_test.py b/compiler/router/tests/03_same_layer_pins_test.py deleted file mode 100644 index a79112d8..00000000 --- a/compiler/router/tests/03_same_layer_pins_test.py +++ /dev/null @@ -1,61 +0,0 @@ -# See LICENSE for licensing information. -# -# Copyright (c) 2016-2019 Regents of the University of California and The Board -# of Regents for the Oklahoma Agricultural and Mechanical College -# (acting for and on behalf of Oklahoma State University) -# All rights reserved. -# -#!/usr/bin/env python3 -"Run a regresion test the library cells for DRC" - -import unittest -from testutils import header,openram_test -import sys,os -sys.path.append(os.path.join(sys.path[0],"../..")) -sys.path.append(os.path.join(sys.path[0],"..")) -import globals -import debug - -OPTS = globals.OPTS - -class same_layer_pins_test(openram_test): - """ - Checks two pins on the same layer with positive and negative coordinates. - """ - def runTest(self): - globals.init_openram("config_{0}".format(OPTS.tech_name)) - from gds_cell import gds_cell - from design import design - from signal_router import signal_router as router - - class routing(design, openram_test): - """ - A generic GDS design that we can route on. - """ - def __init__(self, name): - design.__init__(self, "top") - - # Instantiate a GDS cell with the design - gds_file = "{0}/{1}.gds".format(os.path.dirname(os.path.realpath(__file__)),name) - cell = gds_cell(name, gds_file) - self.add_inst(name=name, - mod=cell, - offset=[0,0]) - self.connect_inst([]) - - layer_stack =("metal1","via1","metal2") - r=router(layer_stack,self,gds_file) - self.assertTrue(r.route(src="A",dest="B")) - - r = routing("03_same_layer_pins_test_{0}".format(OPTS.tech_name)) - self.local_drc_check(r) - - # fails if there are any DRC errors on any cells - globals.end_openram() - -# instantiate a copy of the class to actually run the test -if __name__ == "__main__": - (OPTS, args) = globals.parse_args() - del sys.argv[1:] - header(__file__, OPTS.tech_name) - unittest.main() diff --git a/compiler/router/tests/03_same_layer_pins_test.sp b/compiler/router/tests/03_same_layer_pins_test.sp deleted file mode 100644 index d0b092ca..00000000 --- a/compiler/router/tests/03_same_layer_pins_test.sp +++ /dev/null @@ -1,3 +0,0 @@ - -.SUBCKT cell -.ENDS cell diff --git a/compiler/router/tests/03_same_layer_pins_test_freepdk45.gds b/compiler/router/tests/03_same_layer_pins_test_freepdk45.gds deleted file mode 100644 index 07214708de7ee7e1a76332c23481f4b7af2d7b94..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4096 zcmeH|ziSjh6vyA~?T!*RXL5=$@d{BZ5yC+Pe}HI;G(iXvEJQgY<{%J7BvDH{o5RK` zXd!~>ENsL-K!Sw&6;#fHrS1-&Tn?*8Kc$d~beKYol-Z zJ-8Q@_^6-Xcwu>?;N(5>Ui;k7ub*@Iv#!F2m4tHs=DCkYz9Z;A<@5`58TXmA|;Mu_!mfS4W-0T^ZIIE9$u4A2=S*$^M_KX_N z&We{uA9fw%8<*}m_l!!M)i*x7X8RfUz!~?9O1v|_i|S47vb(6>9emH#o8XaK@7245 zPgH4l)tlmbsop-KVsYoc&+YxCX#5&){5Y`pYyAtql*s*Ey5~@TKf$@(wl@y*@YU8? w_Z;f=nVCPczIx-}`^nzN+dR(mWjRv=kU5Y!kU5Y!@ShI+1x}qQSDsQ-cB z#e<-yDxN$Df(PkYJopa?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V#7N-^zzRNMX z^kxj3bL|#sZ`!dPy*M)CZ#s5|o_0)t=i$H+c1uCw%?qCSgOk5r{Uva0Cx2XbQfE?kg2Maf z@Bga5EKu0$JL|X4y2Z@Q9M!#P_S{RSNAa&DdOH2>d(Z19ncmKkU4KdR%{8sRJxShw zbIs0i!v3}1I1L>An7sd9{{LS7`}rHs+@r7AZ5yW2?*N3^6Tt3A5eje6&cFGZ3`4s# H{_X7tz}~%x diff --git a/compiler/router/tests/05_two_nets_test.py b/compiler/router/tests/05_two_nets_test.py deleted file mode 100644 index 962af07e..00000000 --- a/compiler/router/tests/05_two_nets_test.py +++ /dev/null @@ -1,65 +0,0 @@ -# See LICENSE for licensing information. -# -# Copyright (c) 2016-2019 Regents of the University of California and The Board -# of Regents for the Oklahoma Agricultural and Mechanical College -# (acting for and on behalf of Oklahoma State University) -# All rights reserved. -# -#!/usr/bin/env python3 -"Run a regresion test the library cells for DRC" - -import unittest -from testutils import header,openram_test -import sys,os -sys.path.append(os.path.join(sys.path[0],"../..")) -sys.path.append(os.path.join(sys.path[0],"..")) -import globals -import debug - -OPTS = globals.OPTS - -class two_nets_test(openram_test): - """ - 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)) - from gds_cell import gds_cell - from design import design - from signal_router import signal_router as router - - class routing(design, openram_test): - """ - A generic GDS design that we can route on. - """ - def __init__(self, name): - design.__init__(self, "top") - - # Instantiate a GDS cell with the design - gds_file = "{0}/{1}.gds".format(os.path.dirname(os.path.realpath(__file__)),name) - cell = gds_cell(name, gds_file) - self.add_inst(name=name, - mod=cell, - offset=[0,0]) - self.connect_inst([]) - - layer_stack =("metal1","via1","metal2") - r=router(layer_stack,self,gds_file) - self.assertTrue(r.route(src="A",dest="B")) - self.assertTrue(r.route(src="C",dest="D")) - - r = routing("05_two_nets_test_{0}".format(OPTS.tech_name)) - self.local_drc_check(r) - - # fails if there are any DRC errors on any cells - globals.end_openram() - - -# instantiate a copy of the class to actually run the test -if __name__ == "__main__": - (OPTS, args) = globals.parse_args() - del sys.argv[1:] - header(__file__, OPTS.tech_name) - unittest.main() diff --git a/compiler/router/tests/05_two_nets_test.sp b/compiler/router/tests/05_two_nets_test.sp deleted file mode 100644 index d0b092ca..00000000 --- a/compiler/router/tests/05_two_nets_test.sp +++ /dev/null @@ -1,3 +0,0 @@ - -.SUBCKT cell -.ENDS cell diff --git a/compiler/router/tests/05_two_nets_test_freepdk45.gds b/compiler/router/tests/05_two_nets_test_freepdk45.gds deleted file mode 100644 index fdb00adb698c0a1e6d5e0f62280fc48a0756735b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4096 zcmeH}&ubGw6vtoE?4;Cfv_-A0LBt;y5lW$g_8?lNmm-uFdJrX6Y@nbb(yB*qUV;S$ zp(yCZfL5dQ!z9xR9lJ@gXv;K@^LOH0%7`)1~KcY~WI#bXwBzuC9@nK$#Dd9xu! zNm7(eBxw(AqwVD5JVtGZd9;fT(?0T(>dJV2Z0hPH(at9C$%gDyFPX8I8myZNVO)BOJ$NobaY1(t{zT4pot9hUZ4_(rrH9& zHNu;h?8Wc}$3sI$nD-+*=O4hy`UxlUZ>YovZ2mM=9dV0NwYSN*hM(lKgNcmR`YEYSb;kKr53RCj z_&(G9QI{jLr{^@%ueaQHf_FvlQaBF5Lw?=yV>5F5zBO;)C)0y07)xg4V3% zi_8Zq@wJ6`ei{93>W1g6Z@8V1O1wLsUwmSDqu`|-Y1clF=SzKV{H*ivVJ@URe)Bwz z$9TK&{*cqJ&{^DzN_?mq&;Bv*e47na;??{s&w($3ftD}Bzu`b7zE+IO&z$woDEmL` z{AY##_IW(NIEwdrwKn<=`UCf(5=Y&Ic8SpXL!~@I&fiw`E7Z&j)QnS!Lk(Yh^o#Zj!!teb}$ZtWSBIBR6>MR-#);LSXMGi%?d z~y`S*=7r1Zr p=3@@?Ep!-4JFrI8qI4CK&*R)d-pQw>sWEm$=O9xAq%v^Eh6Rf<&WsfZ}* zHxNANLC{kbPaXupgY+yO`~rdp4^?~AK4brD6_2fM#8$$#IQdGlsA@Zi8h zy2U{^qS%fO>_8fE`kX-mJt&~v@ha5|lUHWufJ7uZFnG8B)SJhj4h_H9_wfFB7U`&6 zoASJi)w#);T>0wsWUlOg&X;r7a&X%KufstOUZ(>f+ZCa^G2CZ>d6{3u>8qMPZ|YmJ zfLxKAfO(0X=o(&Z&p)vU^d|sj@g7jg z*C}?Qb^Q~II!>(TxUpVS?9JoHYh0zAqdkIij@K>}yHD%(T4d0 z)Nw;EeL{1CeWXFpbrjG(?B1{Is8Hid)6^H-Mqy$v|OQY$0C mfseuG599ym;!ppWU03IJcn>2GMj(tp7=bVXVFdnR1bzSj4cWc` diff --git a/compiler/router/tests/06_pin_location_test.py b/compiler/router/tests/06_pin_location_test.py deleted file mode 100644 index cb8d56d1..00000000 --- a/compiler/router/tests/06_pin_location_test.py +++ /dev/null @@ -1,72 +0,0 @@ -# See LICENSE for licensing information. -# -# Copyright (c) 2016-2019 Regents of the University of California and The Board -# of Regents for the Oklahoma Agricultural and Mechanical College -# (acting for and on behalf of Oklahoma State University) -# All rights reserved. -# -#!/usr/bin/env python3 -"Run a regresion test the library cells for DRC" - -import unittest -from testutils import header,openram_test -import sys,os -sys.path.append(os.path.join(sys.path[0],"../..")) -sys.path.append(os.path.join(sys.path[0],"..")) -import globals -import debug - -OPTS = globals.OPTS - -class pin_location_test(openram_test): - """ - Simplest two pin route test with no blockages using the pin locations instead of labels. - """ - - def runTest(self): - globals.init_openram("config_{0}".format(OPTS.tech_name)) - from gds_cell import gds_cell - from design import design - from signal_router import signal_router as router - - class routing(design, openram_test): - """ - A generic GDS design that we can route on. - """ - def __init__(self, name): - design.__init__(self, "top") - - # Instantiate a GDS cell with the design - gds_file = "{0}/{1}.gds".format(os.path.dirname(os.path.realpath(__file__)),name) - cell = gds_cell(name, gds_file) - self.add_inst(name=name, - mod=cell, - offset=[0,0]) - self.connect_inst([]) - - layer_stack =("metal1","via1","metal2") - r=router(layer_stack,self,gds_file) - # these are user coordinates and layers - src_pin = [[0.52, 4.099],11] - tgt_pin = [[3.533, 1.087],11] - #r.route(layer_stack,src="A",dest="B") - self.assertTrue(r.route(src=src_pin,dest=tgt_pin)) - - # This only works for freepdk45 since the coordinates are hard coded - if OPTS.tech_name == "freepdk45": - r = routing("06_pin_location_test_{0}".format(OPTS.tech_name)) - self.local_drc_check(r) - else: - debug.warning("This test does not support technology {0}".format(OPTS.tech_name)) - - # fails if there are any DRC errors on any cells - globals.end_openram() - - - -# instantiate a copy of the class to actually run the test -if __name__ == "__main__": - (OPTS, args) = globals.parse_args() - del sys.argv[1:] - header(__file__, OPTS.tech_name) - unittest.main() diff --git a/compiler/router/tests/06_pin_location_test_freepdk45.gds b/compiler/router/tests/06_pin_location_test_freepdk45.gds deleted file mode 100644 index cbad1838203f2d606bd649fabff854b779162e68..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2048 zcmeH@F-ikL7=^#g&W;xH>)l-778Ji*r*Y)@dTDpqll3pXseBlM~F7*yn-k2 z0N%h}L=T|&Ph?%22=+5D^9_%AGjARSg&{2|BFaorCuWHnnu;izfKZu(?qTPmcMf&W zUu)m2>^$DTtZqFthj+Vgq<-N|4e$joVKest diff --git a/compiler/router/tests/06_pin_location_test_scn3me_subm.gds b/compiler/router/tests/06_pin_location_test_scn3me_subm.gds deleted file mode 100644 index cbad1838203f2d606bd649fabff854b779162e68..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2048 zcmeH@F-ikL7=^#g&W;xH>)l-778Ji*r*Y)@dTDpqll3pXseBlM~F7*yn-k2 z0N%h}L=T|&Ph?%22=+5D^9_%AGjARSg&{2|BFaorCuWHnnu;izfKZu(?qTPmcMf&W zUu)m2>^$DTtZqFthj+Vgq<-N|4e$joVKest diff --git a/compiler/router/tests/07_big_test.py b/compiler/router/tests/07_big_test.py deleted file mode 100644 index d6da2488..00000000 --- a/compiler/router/tests/07_big_test.py +++ /dev/null @@ -1,90 +0,0 @@ -# See LICENSE for licensing information. -# -# Copyright (c) 2016-2019 Regents of the University of California and The Board -# of Regents for the Oklahoma Agricultural and Mechanical College -# (acting for and on behalf of Oklahoma State University) -# All rights reserved. -# -#!/usr/bin/env python3 -"Run a regresion test the library cells for DRC" - -import unittest -from testutils import header,openram_test -import sys,os -sys.path.append(os.path.join(sys.path[0],"../..")) -sys.path.append(os.path.join(sys.path[0],"..")) -import globals -import debug - -OPTS = globals.OPTS - -class big_test(openram_test): - """ - Simplest two pin route test with no blockages using the pin locations instead of labels. - """ - - def runTest(self): - globals.init_openram("config_{0}".format(OPTS.tech_name)) - from gds_cell import gds_cell - from design import design - from signal_router import signal_router as router - - class routing(design, openram_test): - """ - A generic GDS design that we can route on. - """ - def __init__(self, name): - design.__init__(self, "top") - - # Instantiate a GDS cell with the design - gds_file = "{0}/{1}.gds".format(os.path.dirname(os.path.realpath(__file__)),name) - cell = gds_cell(name, gds_file) - self.add_inst(name=name, - mod=cell, - offset=[0,0]) - self.connect_inst([]) - - layer_stack =("metal1","via1","metal2") - r=router(layer_stack,self,gds_file) - connections=[('out_0_2', 'a_0_0'), - ('out_0_3', 'b_0_0'), - ('out_0_0', 'a_0_1'), - ('out_1_2', 'a_1_0'), - ('out_1_3', 'b_1_0'), - ('out_1_0', 'a_1_1'), - ('out_2_1', 'a_2_0'), - ('out_2_2', 'b_2_0'), - ('out_3_1', 'a_3_0'), - ('out_3_2', 'b_3_0'), - ('out_4_6', 'a_4_0'), - ('out_4_7', 'b_4_0'), - ('out_4_8', 'a_4_2'), - ('out_4_9', 'b_4_2'), - ('out_4_10', 'a_4_4'), - ('out_4_11', 'b_4_4'), - ('out_4_0', 'a_4_1'), - ('out_4_2', 'b_4_1'), - ('out_4_4', 'a_4_5'), - ('out_4_1', 'a_4_3'), - ('out_4_5', 'b_4_3')] - for (src,tgt) in connections: - self.assertTrue(r.route(src=src,dest=tgt)) - - # This test only runs on scn3me_subm tech - if OPTS.tech_name=="scn3me_subm": - r = routing("07_big_test_{0}".format(OPTS.tech_name)) - self.local_drc_check(r) - else: - debug.warning("This test does not support technology {0}".format(OPTS.tech_name)) - - # fails if there are any DRC errors on any cells - globals.end_openram() - - - -# instantiate a copy of the class to actually run the test -if __name__ == "__main__": - (OPTS, args) = globals.parse_args() - del sys.argv[1:] - header(__file__, OPTS.tech_name) - unittest.main() diff --git a/compiler/router/tests/07_big_test_scn4m_subm.gds b/compiler/router/tests/07_big_test_scn4m_subm.gds deleted file mode 100644 index e4d82803f98fbd147209ce28cfa1b6fd3154ef0a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 42886 zcmeI5U94S2702hC-X1RXQd%e`iC(p8HY> zbCdRev-bS=tXVU&X3d&8=em&_y4h~gV0gltZsdPE$(`da3V(NVhog;~uHSI$mTi}9 zyw)w4HT#+kKUjU^i_aWhyYacp_x|h~+uWkrarWeBbkE&)J2x@Mxw)r|9(mxq+gEJA zXU8{pxzSkz=iJo1S^j_fnV8>E?!n#Tg3)sR@zMAF<|Wrzj`yX?`Pz=Y&;K5MpUNFi z{r0`kPrp<-Zw|G0aNA??_ozi8Vu+7%r*)LnK$kG~H|74$RoyW!2PhL~oI**O5Ypqvi zX^pLGt@F6pI@G$wUY;7)Zu~QAkDFXLy7&GaO`Ur%zy3DNhj-*N_ivnGodfsu4C@@+ zIx*8af3;(#b$)bkhII~aSu(>qhrir2(>gzRdxmw+x_RR<>nvWiv5q)bylU~P@i@c$ zaq+4h78(?<8n=+ePlqNgep)_*SoOszi=T42#7_smtoSLHP5e}Aof9#dSFN?q;}SoG zTIaCGwjP{ypKP7y+kC7#ShrKQ&f|Jp57vEL+d7Z!Z5?RciWrk?_Sn{e)_GiS>xR}X zc8`d&#H#U`KVCfsC06aQP>EG1`sFQ3teWjrO9sHQX+1o7$pCctsn1LXppN?T^Qv{! zm&Yx!YMyT^v1*A`eSA69JQuNuv*cB~Jo$0Rs}7!c$#$hH@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TO(tqLk3;jm^SD5NQ$`NnE7osF1I9ZJjt_($)>3&fSEq^V^{R%|GbePI&Qz$%XOt)BGG`o%t^$mcjoCy*#Qv zeh$4^e}p=B6Q=ZMoU>Lie}pn6@kF{X_f2z%4jNiy!5a3rF|fzoS>_ z+jmm>;T^5ger$xFN71|eZfdk}bZ7I;pD1fq@U8Y`@9Hdzhx8-EYw^HC-dN)n`ul(r G6YhW6?*tV9 diff --git a/compiler/router/tests/08_expand_region_test.py b/compiler/router/tests/08_expand_region_test.py deleted file mode 100644 index 3f2975f9..00000000 --- a/compiler/router/tests/08_expand_region_test.py +++ /dev/null @@ -1,66 +0,0 @@ -# See LICENSE for licensing information. -# -# Copyright (c) 2016-2019 Regents of the University of California and The Board -# of Regents for the Oklahoma Agricultural and Mechanical College -# (acting for and on behalf of Oklahoma State University) -# All rights reserved. -# -#!/usr/bin/env python3 -"Run a regresion test the library cells for DRC" - -import unittest -from testutils import header,openram_test -import sys,os -sys.path.append(os.path.join(sys.path[0],"../..")) -sys.path.append(os.path.join(sys.path[0],"..")) -import globals -import debug - -OPTS = globals.OPTS - -class expand_region_test(openram_test): - """ - Test an infeasible route followed by a feasible route with an expanded region. - """ - - def runTest(self): - globals.init_openram("config_{0}".format(OPTS.tech_name)) - from gds_cell import gds_cell - from design import design - from signal_router import signal_router as router - - class routing(design, openram_test): - """ - A generic GDS design that we can route on. - """ - def __init__(self, name): - design.__init__(self, "top") - - # Instantiate a GDS cell with the design - gds_file = "{0}/{1}.gds".format(os.path.dirname(os.path.realpath(__file__)),name) - cell = gds_cell(name, gds_file) - self.add_inst(name=name, - mod=cell, - offset=[0,0]) - self.connect_inst([]) - - layer_stack =("metal1","via1","metal2") - r=router(layer_stack,self,gds_file) - # This should be infeasible because it is blocked without a detour. - self.assertFalse(r.route(src="A",dest="B",detour_scale=1)) - # This should be feasible because we allow it to detour - self.assertTrue(r.route(src="A",dest="B",detour_scale=3)) - - r = routing("08_expand_region_test_{0}".format(OPTS.tech_name)) - self.local_drc_check(r) - - # fails if there are any DRC errors on any cells - globals.end_openram() - - -# instantiate a copy of the class to actually run the test -if __name__ == "__main__": - (OPTS, args) = globals.parse_args() - del sys.argv[1:] - header(__file__, OPTS.tech_name) - unittest.main() diff --git a/compiler/router/tests/08_expand_region_test_freepdk45.gds b/compiler/router/tests/08_expand_region_test_freepdk45.gds deleted file mode 100644 index aa813b363546d93b9c884cc0e6ec2c7e2d73fc56..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2048 zcmeH^y-EW?6opSF*-3)CG0|Y$WHtW8N|CFBtl^aYG(vW%M)TiEZy-f#9WXJ+rYkPwh?LIO$jp&x13m_~|Ply!jL zrjWa}y~;`b7)XbW#qxP^?dj%YVflWxdAZqwV|d;yPwVz3q&%Ff){k}$D*H7=Oh8(K z_sAgut}`K3v#OdoqhvQ4O)g<3!$9~E82f^>Wf_R1_{RR+3FV$qyTmP!-*7qp4j5;E zrq)ScfAka>eghPzs=&mBN3D~-{(OnvXZ{13-g5n#S|@${?e@D$wn%EU#VdpLVeG4bndmDB3IX{9y>7HXS|>+`G2#4S*b1_P)T z1L<=yzqb0-DkMhp2M4aSShfj;DM&t}@@fp?8F^Db?zHdjwN1}^I{|wp;7AJf^Ups96XsK4t~GJXJ`SvjXHy{6WM_5Kn{r!T%wS;10: - fp1.close() - fp2.close() - return mismatches==0 - - # Never reached - return False - - - def isdiff(self,filename1,filename2): - """ This is used to compare two files and display the diff if they are different.. """ - import debug - import filecmp - import difflib - check = filecmp.cmp(filename1,filename2) - if not check: - debug.error("MISMATCH file1={0} file2={1}".format(filename1,filename2)) - f1 = open(filename1,"r") - s1 = f1.readlines().decode('utf-8') - f1.close() - f2 = open(filename2,"r").decode('utf-8') - s2 = f2.readlines() - f2.close() - mismatches=0 - for line in difflib.unified_diff(s1, s2): - mismatches += 1 - self.error("DIFF LINES:",line) - if mismatches>10: - return False - return False - else: - debug.info(2,"MATCH {0} {1}".format(filename1,filename2)) - return True - -def header(filename, technology): - # Skip the header for gitlab regression - import getpass - if getpass.getuser() == "gitlab-runner": - return - - tst = "Running Test for:" - print("\n") - print(" ______________________________________________________________________________ ") - print("|==============================================================================|") - print("|=========" + tst.center(60) + "=========|") - print("|=========" + technology.center(60) + "=========|") - print("|=========" + filename.center(60) + "=========|") - from globals import OPTS - print("|=========" + OPTS.openram_temp.center(60) + "=========|") - print("|==============================================================================|")