diff --git a/xschem_library/viewdraw_import/README b/xschem_library/viewdraw_import/README new file mode 100644 index 00000000..61675b14 --- /dev/null +++ b/xschem_library/viewdraw_import/README @@ -0,0 +1,101 @@ +ViewDraw to Xschem importer script + +This directory contains a set of test example schematics to be translated into xschem +the translate.sh script does all the translations, just run it: + ./translate.sh + +translated xschem files will be in xchem_lib/ directory. +the xschemrc file in current directory sets up the library paths +including the xschem_lib directory with translated schematics/symbols. +Run xschem in current directory so it will set up correctly and find the translated schematics. +Example: + ./xschem xschem_lib/dti_28hc_6p5t_40_ffqx1.sch + +files are translated one by one by the viewdraw_import.awk script, it is used as follows: + + ./viewdraw_import.awk xschem_lib /path/to/viewdraw/schematic.1 > /path/to/xschem/schematic.sch +or: + ./viewdraw_import.awk xschem_lib /path/to/viewdraw/symbol.1 > /path/to/xschem/symbol.sym + +the first parameter to viewdraw_import.awk is the file to be processed, the second argument +is the xschem library (directory) that instances will use to reference symbols, i am +putting all xschem translated objects into xschem_lib/ +----- + + +Additional useful info found on the internet: + +https://github.com/ljmljz/schematic-file-converter + +ViewDraw (and descendents) Schematic Parser +========================================== + +As best I (Patrick Yeon) can tell, ViewDraw has been associated with ViewLogic, +Innoveda Corp., and now with Mentor under their ePD and DxDesigner tools. +The format, extended as needed, still shows up in some places in the latest +version of DxDesigner I have seen, even though the iCDB is meant to be the +project database. + + +The work to understand the format is based off Stuart Brorson and Steven +Salkow's earlier "ViewDraw File Formats" documentation, with Patrick Yeon +working out further extended details based on ViewDraw output files strewn +about online. + +Current Status +-------------- +The parser can make a decent attempt at parsing schematic and symbol data +from old versions (schematic files with V 51, symbol files with V 50 or 51, +that I've seen). +It has no way to stitch together multi-page designs, and some details fall +through the cracks because they haven't been worked into the upverter +format (yet). + +This parser has been developed with the +[ml50x design files](http://www.xilinx.com/support/documentation/boards_and_kits/ml50x_schematics.zip) + +Bugs, Omissions, and other Brokeness +------------------------------------ +At the moment, probably a fair number. +* A few features of the ViewDraw format couldn't be fit into the upverter +output format yet: part flipping and re-scaling, at least + +Todo +---- +In no particular order: +* Harden up against invalid input +* Work is likely required around pin numbering/naming +* Nets should be streamlined so that they use a minimum of points +* Test, test, test. + +How To Help +----------- +I no longer have access to DxDesigner, so any design output to help shore up +the understanding of this format would be helpful, +especially if it is not currently handled properly or completely by the code. +ViewDraw output from other tools/versions would also be helpful. + +Further Notes +------------- +From a helpful viewdraw.ini, suspect this is about the `Q` command: + +``` +| Colors +| ------------------------------------------------------------------ +| +| 0 Black | 4 Red | 8 Gray | 12 Lt. Red +| 1 Blue | 5 Magenta | 9 Lt. Blue | 13 Lt. Magenta +| 2 Green | 6 Brown | 10 Lt. Green | 14 Yellow +| 3 Cyan | 7 Lt. Gray | 11 Lt. Cyan | 15 White +| +| +| Fillstyles: +| ------------------------------------------------------------------ +| +| 0 Hollow | 1 Solid +| +| +| Object Color | Fillstyle | Linestyle +| | or Font | +``` + diff --git a/xschem_library/viewdraw_import/ViewDraw-file-format.pdf b/xschem_library/viewdraw_import/ViewDraw-file-format.pdf new file mode 100644 index 00000000..d8606258 Binary files /dev/null and b/xschem_library/viewdraw_import/ViewDraw-file-format.pdf differ diff --git a/xschem_library/viewdraw_import/ViewDrawFileFormats_new.pdf b/xschem_library/viewdraw_import/ViewDrawFileFormats_new.pdf new file mode 100644 index 00000000..652a886a Binary files /dev/null and b/xschem_library/viewdraw_import/ViewDrawFileFormats_new.pdf differ diff --git a/xschem_library/viewdraw_import/align.1 b/xschem_library/viewdraw_import/align.1 new file mode 100644 index 00000000..d82f34d2 --- /dev/null +++ b/xschem_library/viewdraw_import/align.1 @@ -0,0 +1,19 @@ +V 51 +K 419708849300 INV +Y 0 +D 0 0 1700 1100 +Z 1 +i 47 +I 2 test:SHEET_B 1 0 0 0 1 ' +L 0 0 10 0 3 0 1 0 X1I2 + +T 800 590 20 6 6 TEXT1 +T 1040 590 20 6 9 TEXT3 +T 800 670 20 6 5 TEXT4 +T 570 670 20 6 2 TEXT5 +T 1040 670 20 6 8 TEXT6 +T 800 750 20 6 4 TEXT7 +T 570 590 20 6 3 TEXT2 +T 1040 750 20 6 7 TEXT9 +T 570 750 20 6 1 TEXT8 +E diff --git a/xschem_library/viewdraw_import/align.pdf b/xschem_library/viewdraw_import/align.pdf new file mode 100644 index 00000000..d8998dd0 Binary files /dev/null and b/xschem_library/viewdraw_import/align.pdf differ diff --git a/xschem_library/viewdraw_import/rotation.1 b/xschem_library/viewdraw_import/rotation.1 new file mode 100644 index 00000000..86b4b247 --- /dev/null +++ b/xschem_library/viewdraw_import/rotation.1 @@ -0,0 +1,185 @@ +V 51 +K 419708849300 INV +Y 0 +D 0 0 1700 1100 +Z 1 +i 47 +N 32 +J 930 520 1 +J 964 520 2 +S 1 2 +N 33 +J 1064 520 2 +J 1110 520 1 +S 1 2 +N 34 +J 1014 440 1 +J 1014 460 2 +S 1 2 +N 36 +J 1100 150 1 +J 1066 150 2 +S 2 1 +N 37 +J 966 150 2 +J 920 150 1 +S 2 1 +N 38 +J 1016 230 1 +J 1016 210 2 +S 2 1 +N 40 +J 900 240 1 +J 900 274 2 +S 1 2 +N 41 +J 900 374 2 +J 900 420 1 +S 1 2 +N 42 +J 980 324 1 +J 960 324 2 +S 2 1 +N 44 +J 1140 376 2 +J 1140 410 1 +S 1 2 +N 45 +J 1140 230 1 +J 1140 276 2 +S 1 2 +N 46 +J 1080 326 2 +J 1060 326 1 +S 2 1 +I 35 test:NMOS 1 964 460 7 1 ' +A 1004 580 10 7 9 1 MODEL=NM +L 1064 460 10 7 3 0 1 0 MN8 +A 1047 498 10 7 9 1 W=WN +A 1036 499 10 7 9 1 L=LN +A 1024 490 10 7 9 3 M +C 34 2 12 0 +C 32 2 17 0 +C 33 1 16 0 +I 39 test:NMOS 1 1066 210 5 1 ' +A 1026 90 10 5 9 1 MODEL=NM +L 966 210 10 5 3 0 1 0 MN6 +A 983 172 10 5 9 1 W=WN +A 994 171 10 5 9 1 L=LN +A 1006 180 10 5 9 3 M +C 38 2 12 0 +C 36 2 17 0 +C 37 1 16 0 +I 43 test:NMOS 1 960 274 4 1 ' +A 840 314 10 4 9 1 MODEL=NM +L 960 374 10 4 3 0 1 0 MN5 +A 922 357 10 4 9 1 W=WN +A 921 346 10 4 9 1 L=LN +A 930 334 10 4 9 3 M +C 42 2 12 0 +C 40 2 17 0 +C 41 1 16 0 +I 47 test:NMOS 1 1080 376 6 1 ' +A 1200 336 10 6 9 1 MODEL=NM +L 1080 276 10 6 3 0 1 0 MN7 +A 1118 293 10 6 9 1 W=WN +A 1119 304 10 6 9 1 L=LN +A 1110 316 10 6 9 3 M +C 46 1 12 0 +C 44 1 17 0 +C 45 2 16 0 +N 28 +J 324 140 2 +J 290 140 1 +S 2 1 +N 29 +J 470 140 1 +J 424 140 2 +S 2 1 +N 30 +J 374 200 2 +J 374 220 1 +S 1 2 +I 31 test:NMOS 1 324 200 3 1 ' +A 364 80 10 3 9 1 MODEL=NM +L 424 200 10 3 3 0 1 0 MN2 +A 407 162 10 3 9 1 W=WN +A 396 161 10 3 9 1 L=LN +A 384 170 10 3 9 3 M +C 30 1 12 0 +C 28 1 17 0 +C 29 2 16 0 +N 24 +J 426 510 2 +J 460 510 1 +S 1 2 +N 25 +J 280 510 1 +J 326 510 2 +S 1 2 +N 26 +J 376 450 2 +J 376 430 1 +S 2 1 +I 27 test:NMOS 1 426 450 1 1 ' +A 386 570 10 1 9 1 MODEL=NM +L 326 450 10 1 3 0 1 0 MN4 +A 343 488 10 1 9 1 W=WN +A 354 489 10 1 9 1 L=LN +A 366 480 10 1 9 3 M +C 26 1 12 0 +C 24 1 17 0 +C 25 2 16 0 +N 20 +J 260 386 2 +J 260 420 1 +S 1 2 +N 21 +J 260 240 1 +J 260 286 2 +S 1 2 +N 22 +J 320 336 2 +J 340 336 1 +S 1 2 +I 23 test:NMOS 1 320 386 2 1 ' +A 200 346 10 2 9 1 MODEL=NM +L 320 286 10 2 3 0 1 0 MN3 +A 282 303 10 2 9 1 W=WN +A 281 314 10 2 9 1 L=LN +A 290 326 10 2 9 3 M +C 22 1 12 0 +C 20 1 17 0 +C 21 2 16 0 +N 19 +J 500 250 1 +J 500 284 2 +S 1 2 +I 2 test:SHEET_B 1 0 0 0 1 ' +L 0 0 10 0 3 0 1 0 X1I2 +N 5 +J 500 384 2 +J 500 430 1 +S 1 2 +N 7 +J 420 334 1 +J 440 334 2 +S 1 2 +I 4 test:NMOS 1 440 284 0 1 ' +A 560 324 10 0 9 1 MODEL=NM +L 440 384 10 0 3 0 1 0 MN1 +A 478 367 10 0 9 1 W=WN +A 479 356 10 0 9 1 L=LN +A 470 344 10 0 9 3 M +C 7 2 12 0 +C 19 2 17 0 +C 5 1 16 0 +T 490 800 20 0 3 TEXT1 +T 400 750 20 3 3 TEXT2 +T 310 820 20 2 3 TEXT3 +T 420 870 20 1 3 TEXT4 +T 1090 820 20 6 3 TEXT7 +T 1020 750 20 5 3 TEXT6 +T 910 800 20 4 3 TEXT5 +T 1000 870 20 7 3 TEXT8 +E diff --git a/xschem_library/viewdraw_import/rotation.pdf b/xschem_library/viewdraw_import/rotation.pdf new file mode 100644 index 00000000..01fcc01e Binary files /dev/null and b/xschem_library/viewdraw_import/rotation.pdf differ diff --git a/xschem_library/viewdraw_import/test/sch/bac/dti_28hc_6p5t_40_ffqx1.1 b/xschem_library/viewdraw_import/test/sch/bac/dti_28hc_6p5t_40_ffqx1.1 new file mode 100755 index 00000000..e860a7f4 --- /dev/null +++ b/xschem_library/viewdraw_import/test/sch/bac/dti_28hc_6p5t_40_ffqx1.1 @@ -0,0 +1,420 @@ +V 51 +K 349782057500 umc_dti_sffqs11ux4 +Y 0 +D 0 0 2338 1653 +Z 7 +i 234 +I 139 test:SHEET_A2 1 0 0 0 1 ' +L 0 0 10 0 3 0 1 0 X1I139 +I 102 test:OUTPUT 1 2160 1010 0 1 ' +L 2190 1010 20 0 3 0 1 0 Q +C 104 1 9 0 +I 106 test:DTI_GEN_TX 1 1590 980 0 1 ' +A 1690 950 10 0 9 1 WNA=0.185 +Q 14 5 0 +A 1710 970 10 0 9 1 M=1 +Q 14 5 0 +A 1710 960 10 0 9 1 WPA=0.185 +L 1590 980 10 0 3 0 1 0 X1I106 +C 87 1 1 0 +C 105 5 2 0 +C 9 7 3 0 +C 6 8 4 0 +I 97 test:DTI_GEN_INV 1 2050 1160 4 1 ' +A 1988 1228 10 4 9 1 WP=0.1 +Q 14 5 0 +A 1988 1218 10 4 9 1 WN=0.1 +Q 14 5 0 +L 2050 1160 10 0 3 0 1 0 X1I97 +C 101 2 5 0 +C 105 3 4 0 +I 112 test:DTI_GEN_INV 1 1580 1370 3 1 ' +A 1638 1308 10 3 9 1 WN=0.185 +Q 14 5 0 +A 1648 1308 10 3 9 1 WP=0.1 +Q 14 5 0 +L 1580 1370 10 0 3 0 1 0 X1I112 +C 9 8 5 0 +C 6 15 4 0 +I 103 test:DTI_GEN_INV 1 1980 980 0 1 ' +A 2042 1038 10 0 9 1 WN=0.185 +Q 14 5 0 +A 2042 1058 10 0 9 1 M=1 +Q 14 5 0 +A 2042 1048 10 0 9 1 WP=0.185 +L 1980 980 10 0 3 0 1 0 X1I103 +C 104 2 5 0 +C 105 1 4 0 +I 88 test:DTI_GEN_INV 1 1400 980 0 1 ' +A 1462 1038 10 0 9 1 WN=0.185 +Q 14 5 0 +A 1462 1048 10 0 9 1 WP=0.185 +Q 14 5 0 +L 1400 980 10 0 3 0 1 0 X1I88 +A 1470 1060 10 0 9 1 M=1 +C 87 2 5 0 +C 187 4 4 0 +I 80 test:PMOS 1 1410 1190 4 1 ' +A 1360 1275 15 4 9 1 W=0.1 +Q 14 5 0 +A 1360 1260 15 4 9 1 L=LPD +Q 14 5 0 +L 1410 1190 10 0 3 0 1 0 M1I80 +C 87 6 12 0 +C 77 2 15 0 +C 78 2 14 0 +I 99 test:PMOS 1 1770 1050 0 1 ' +A 1820 1135 15 0 9 1 W=0.1 +Q 14 5 0 +A 1820 1120 15 0 9 1 L=LPD +Q 14 5 0 +L 1770 1050 10 0 3 0 1 0 M1I99 +C 6 11 12 0 +C 92 2 15 0 +C 105 6 14 0 +I 96 test:PMOS 1 1890 1150 4 1 ' +A 1840 1235 15 4 9 1 W=0.1 +Q 14 5 0 +A 1840 1220 15 4 9 1 L=LPD +Q 14 5 0 +L 1890 1150 10 0 3 0 1 0 M1I96 +C 101 1 12 0 +C 91 2 15 0 +C 92 1 14 0 +I 210 test:PMOS 1 1080 1160 0 1 ' +A 1130 1230 15 0 9 1 L=LPD +Q 14 5 0 +A 1130 1245 15 0 9 1 W=0.185 +Q 14 5 0 +L 1080 1160 10 0 3 0 1 0 M1I210 +C 6 2 12 0 +C 204 2 15 0 +C 203 2 14 0 +I 83 test:PMOS 1 1410 1090 4 1 ' +A 1360 1175 15 4 9 1 W=0.1 +Q 14 5 0 +A 1360 1160 15 4 9 1 L=LPD +Q 14 5 0 +L 1410 1090 10 0 3 0 1 0 M1I83 +C 9 11 12 0 +C 78 1 15 0 +C 187 7 14 0 +I 213 test:PMOS 1 1080 1060 0 1 ' +A 1130 1145 15 0 9 1 W=0.185 +Q 14 5 0 +A 1130 1130 15 0 9 1 L=LPD +Q 14 5 0 +L 1080 1060 10 0 3 0 1 0 M1I213 +C 161 1 12 0 +C 203 1 15 0 +C 187 1 14 0 +I 170 test:PMOS 1 600 1030 0 1 ' +A 650 1115 15 0 9 1 W=0.185 +Q 14 5 0 +A 650 1100 15 0 9 1 L=LPD +Q 14 5 0 +L 600 1030 10 0 3 0 1 0 M1I170 +C 190 5 12 0 +C 178 2 15 0 +C 161 6 14 0 +I 84 test:NMOS 1 1290 790 0 1 ' +A 1340 860 15 0 9 1 L=LND +Q 14 5 0 +A 1340 875 15 0 9 1 W=0.1 +Q 14 5 0 +L 1290 790 10 0 3 0 1 0 M1I84 +C 6 5 12 0 +C 79 2 17 0 +C 187 5 16 0 +I 81 test:NMOS 1 1410 690 4 1 ' +A 1360 760 15 4 9 1 L=LND +Q 14 5 0 +A 1360 775 15 4 9 1 W=0.1 +Q 14 5 0 +L 1410 690 10 0 3 0 1 0 M1I81 +C 87 3 12 0 +C 76 2 17 0 +C 79 1 16 0 +I 98 test:NMOS 1 1770 740 0 1 ' +A 1820 810 15 0 9 1 L=LND +Q 14 5 0 +A 1820 825 15 0 9 1 W=0.1 +Q 14 5 0 +L 1770 740 10 0 3 0 1 0 M1I98 +C 9 5 12 0 +C 94 2 17 0 +C 105 2 16 0 +I 95 test:NMOS 1 1890 640 4 1 ' +A 1770 710 15 4 9 1 L=LND +Q 14 5 0 +A 1770 725 15 4 9 1 W=0.1 +Q 14 5 0 +L 1890 640 10 0 3 0 1 0 M1I95 +C 101 5 12 0 +C 111 2 17 0 +C 94 1 16 0 +I 211 test:NMOS 1 1080 790 0 1 ' +A 1130 860 15 0 9 1 L=LND +Q 14 5 0 +A 1130 875 15 0 9 1 W=0.185 +Q 14 5 0 +L 1080 790 10 0 3 0 1 0 M1I211 +C 9 1 12 0 +C 205 2 17 0 +C 206 2 16 0 +I 212 test:NMOS 1 1080 890 0 1 ' +A 1130 975 15 0 9 1 W=0.185 +Q 14 5 0 +A 1130 960 15 0 9 1 L=LND +Q 14 5 0 +L 1080 890 10 0 3 0 1 0 M1I212 +C 161 3 12 0 +C 206 1 17 0 +C 187 3 16 0 +I 171 test:NMOS 1 600 910 0 1 ' +A 650 980 15 0 9 1 L=LND +Q 14 5 0 +A 650 995 15 0 9 1 W=0.185 +Q 14 5 0 +L 600 910 10 0 3 0 1 0 M1I171 +C 190 6 12 0 +C 173 2 17 0 +C 161 8 16 0 +I 208 test:VSS 1 1120 750 0 1 ' +C 205 1 1 0 +I 110 test:VSS 1 1810 600 0 1 ' +C 111 1 1 0 +I 82 test:VSS 1 1330 650 0 1 ' +C 76 1 1 0 +I 174 test:VSS 1 640 870 0 1 ' +C 173 1 1 0 +I 207 test:VDD 1 1120 1260 0 1 ' +C 204 1 4 0 +I 100 test:VDD 1 1810 1250 0 1 ' +C 91 1 4 0 +I 85 test:VDD 1 1330 1290 0 1 ' +C 77 1 4 0 +I 179 test:VDD 1 640 1130 0 1 ' +C 178 1 4 0 +I 169 test:INPUT 1 260 1020 0 1 ' +L 220 1020 20 0 3 0 1 0 D +C 190 3 8 0 +I 125 test:INPUT 1 260 1390 0 1 ' +L 220 1390 20 0 3 0 1 0 CK +C 6 4 8 0 +N 78 +J 1350 1190 2 +J 1350 1190 2 +S 1 2 +L 1350 1190 10 0 3 0 1 0 1N78 +N 203 +J 1140 1160 2 +J 1140 1160 2 +S 1 2 +L 1140 1160 10 0 3 0 1 0 1N203 +N 204 +J 1140 1260 2 +J 1140 1260 2 +S 1 2 +N 205 +J 1140 790 2 +J 1140 790 2 +S 1 2 +N 206 +J 1140 890 2 +J 1140 890 2 +S 1 2 +L 1140 890 10 0 3 0 1 0 1N206 +N 178 +J 660 1130 2 +J 660 1130 2 +S 2 1 +N 111 +J 1830 640 2 +J 1830 640 2 +S 1 2 +N 91 +J 1830 1250 2 +J 1830 1250 2 +S 1 2 +N 92 +J 1830 1150 2 +J 1830 1150 2 +S 1 2 +L 1830 1150 10 0 3 0 1 0 1N92 +N 94 +J 1830 740 2 +J 1830 740 2 +S 2 1 +L 1830 740 10 0 3 0 1 0 1N94 +N 76 +J 1350 690 2 +J 1350 690 2 +S 1 2 +N 77 +J 1350 1290 2 +J 1350 1290 2 +S 1 2 +N 79 +J 1350 790 2 +J 1350 790 2 +S 1 2 +L 1350 790 10 0 3 0 1 0 1N79 +N 190 +J 560 960 3 +J 560 1080 3 +J 290 1030 2 +J 560 1030 5 +J 600 1080 2 +J 600 960 2 +S 1 6 +S 2 5 +S 3 4 +S 1 4 +S 4 2 +N 104 +J 2160 1020 2 +J 2060 1020 2 +S 2 1 +N 9 +J 1080 840 2 +J 850 840 3 +J 850 1360 3 +J 1570 1360 3 +J 1770 790 2 +J 1570 790 5 +J 1620 1070 2 +J 1620 1290 2 +J 1620 1140 5 +J 1570 1140 5 +J 1410 1140 2 +S 3 4 +S 6 4 +S 6 5 +S 6 10 +S 9 8 +L 1620 1280 10 3 3 0 1 0 CKB +S 10 9 +S 11 10 +S 7 9 +S 2 3 +S 2 1 +N 187 +J 1140 1060 2 +J 1140 1020 5 +J 1140 990 2 +J 1400 1020 2 +J 1350 890 2 +J 1350 1020 5 +J 1350 1090 2 +S 6 7 +S 5 6 +S 6 4 +S 3 2 +S 2 1 +S 2 6 +L 1200 1020 10 0 3 0 1 0 ML +N 6 +J 1060 1210 3 +J 1080 1210 2 +J 1060 1400 5 +J 290 1400 2 +J 1290 840 2 +J 1250 840 3 +J 1250 1400 5 +J 1620 980 2 +J 1620 940 3 +J 1740 940 3 +J 1770 1100 2 +J 1740 1100 5 +J 1740 1400 3 +J 1620 1400 5 +J 1620 1370 2 +S 1 2 +S 1 3 +S 4 3 +S 6 5 +S 7 14 +S 9 8 +S 9 10 +S 10 12 +S 12 11 +S 12 13 +S 14 13 +S 15 14 +S 3 7 +S 6 7 +N 105 +J 1980 1020 2 +J 1830 840 2 +J 2050 1200 2 +J 2090 1200 3 +J 1650 1020 2 +J 1830 1050 2 +J 1830 1020 5 +J 1830 860 5 +J 2090 860 3 +S 2 8 +S 3 4 +S 7 6 +S 8 7 +S 9 4 +S 8 9 +S 5 7 +L 1810 1020 10 0 3 0 1 0 XIDB +S 7 1 +N 101 +J 1890 1200 2 +J 1970 1200 2 +J 1940 1200 5 +J 1940 690 3 +J 1890 690 2 +S 1 3 +L 1900 1200 10 0 3 0 1 0 SL +S 3 2 +S 4 3 +S 5 4 +N 161 +J 1080 1110 2 +J 1050 1110 3 +J 1080 940 2 +J 1050 940 3 +J 1050 1020 5 +J 660 1030 2 +J 660 1020 5 +J 660 1010 2 +S 2 1 +S 5 2 +S 4 3 +S 4 5 +S 7 5 +S 7 6 +S 8 7 +L 1065 1110 10 0 3 0 1 0 1N161 +N 173 +J 660 910 2 +J 660 910 2 +S 1 2 +N 87 +J 1590 1020 2 +J 1480 1020 2 +J 1410 740 2 +J 1530 740 3 +J 1530 1020 5 +J 1410 1240 2 +J 1530 1240 3 +S 3 4 +S 6 7 +S 4 5 +S 2 5 +S 5 1 +L 1535 1020 10 0 3 0 1 0 RM +S 5 7 +l 2 1490 1070 1500 1420 +T 1200 1440 10 0 3 Re-name node to RM for removal sim. +T 100 60 10 0 3 Hiep confirm latest Oct03rd_2021 +U 2050 20 20 0 3 3 @DATEIME=13-7-2017_00:05:33 +Q 14 5 0 +U 2000 60 20 0 3 3 @NAME=dti_28hc_6p5t_40_ffqx1 +Q 14 5 0 +E diff --git a/xschem_library/viewdraw_import/test/sch/bac/dti_28hc_6p5t_40_invx1.1 b/xschem_library/viewdraw_import/test/sch/bac/dti_28hc_6p5t_40_invx1.1 new file mode 100755 index 00000000..643bd10e --- /dev/null +++ b/xschem_library/viewdraw_import/test/sch/bac/dti_28hc_6p5t_40_invx1.1 @@ -0,0 +1,86 @@ +V 51 +K 250805739600 dti_and2x1 +Y 0 +D 0 0 1700 1100 +Z 1 +i 70 +I 63 test:NM 1 790 540 0 1 ' +L 790 600 10 0 3 0 1 0 N1 +A 790 591 10 0 3 1 W=0.185 +Q 14 5 0 +A 791 545 10 0 3 1 M=1 +Q 14 5 0 +A 791 584 10 0 3 1 L=0.04 +Q 14 5 0 +C 68 2 19 0 +A 840 558 10 3 1 3 #=3 +C 47 2 21 0 +A 786 570 10 0 3 3 #=2 +C 62 3 20 0 +A 840 582 10 1 1 3 #=1 +I 60 test:PM 1 790 680 0 1 ' +L 790 740 10 0 3 0 1 0 P1 +Q 14 5 0 +A 791 724 10 0 3 1 L=0.04 +Q 14 5 0 +A 790 731 10 0 3 1 W=0.185 +Q 14 5 0 +A 791 685 10 0 3 1 M=1 +Q 14 5 0 +C 61 2 15 0 +A 840 722 10 3 1 3 #=1 +C 47 6 12 0 +A 778 710 10 0 3 3 #=2 +C 62 4 14 0 +A 840 698 10 1 1 3 #=3 +I 59 test:VDD 1 820 740 0 1 ' +C 61 1 4 0 +N 61 +J 840 740 2 +J 840 740 2 +S 2 1 +I 67 test:VSS 1 820 500 0 1 ' +C 68 1 1 0 +N 68 +J 840 540 2 +J 840 540 2 +S 2 1 +N 62 +J 960 640 2 +J 840 640 5 +J 840 600 2 +J 840 680 2 +S 2 4 +S 3 2 +S 2 1 +I 1 test:SH_B 1 0 0 0 1 ' +L 0 0 10 0 3 0 1 0 X1I1 +I 70 test:OUTPUT 1 960 630 0 1 ' +L 990 630 20 0 3 0 1 0 Z +C 62 1 9 0 +N 47 +J 630 640 2 +J 790 570 2 +J 760 570 3 +J 760 640 5 +J 760 710 3 +J 790 710 2 +S 1 4 +S 3 2 +S 3 4 +S 4 5 +S 5 6 +I 55 test:INPUT 1 600 630 0 1 ' +L 580 630 20 0 3 0 1 0 A +C 47 1 8 0 +T 1270 20 20 0 3 tm28_6p5t_stdcells +Q 14 5 0 +U 1600 20 20 0 3 3 @SHEET=1 +Q 14 5 0 +U 1650 20 20 0 3 3 @SHEETTOTAL=1 +Q 14 5 0 +U 1270 60 20 0 3 3 @NAME=dti_28hc_6p5t_40_invx1 +Q 14 5 0 +U 1490 40 20 0 3 3 @DATETIME=12-29-2021_16:57 +Q 14 5 0 +E diff --git a/xschem_library/viewdraw_import/test/sch/bac/dti_28hc_6p5t_40_nand2x1.1 b/xschem_library/viewdraw_import/test/sch/bac/dti_28hc_6p5t_40_nand2x1.1 new file mode 100755 index 00000000..ddd48cb1 --- /dev/null +++ b/xschem_library/viewdraw_import/test/sch/bac/dti_28hc_6p5t_40_nand2x1.1 @@ -0,0 +1,155 @@ +V 51 +K 250805739600 dti_and2x1 +Y 0 +D 0 0 1700 1100 +Z 1 +i 70 +I 57 INPUT 1 440 450 0 1 ' +L 420 450 20 0 3 0 1 0 B +C 56 4 8 0 +N 53 + +J 840 730 2 +J 840 730 2 +S 2 1 +N 51 +J 710 730 2 +J 710 730 2 +S 2 1 +N 45 +J 710 430 2 +J 710 430 2 +S 2 1 +N 43 +J 710 490 2 +J 710 530 2 +S 1 2 +L 710 510 10 0 3 0 1 0 1N43 +I 1 SH_B 1 0 0 0 1 ' +L 0 0 10 0 3 0 1 0 x1i1 +I 50 VDD 1 690 730 0 1 ' +C 51 1 4 0 +I 55 INPUT 1 440 620 0 1 ' +L 420 620 20 0 3 0 1 0 A +C 54 2 8 0 +N 54 + +J 630 630 5 +J 470 630 2 +J 660 700 2 +J 630 700 3 +J 660 560 2 +J 630 560 3 +S 4 3 +S 1 4 +S 6 1 +S 6 5 +S 2 1 +N 56 +J 760 700 3 +J 630 460 5 +J 760 460 3 +J 470 460 2 +J 660 460 2 +J 790 700 2 +S 1 6 +S 3 1 +S 4 2 +S 2 5 +S 2 3 +I 52 VDD 1 820 730 0 1 ' +C 53 1 4 0 +I 44 VSS 1 690 390 0 1 ' +C 45 1 1 0 +I 46 PM 1 660 670 0 1 ' +L 660 730 10 0 3 0 1 0 P1 +Q 14 5 0 +A 661 714 10 0 3 1 L=0.04 +Q 14 5 0 +A 660 721 10 0 3 1 W=0.185 +Q 14 5 0 +A 661 675 10 0 3 1 M=1 +Q 14 5 0 +C 51 2 15 0 +A 710 712 10 3 1 3 #=1 +C 54 3 12 0 +A 648 700 10 0 3 3 #=2 +C 47 3 14 0 +A 710 688 10 1 1 3 #=3 +I 49 PM 1 790 670 0 1 ' +L 790 730 10 0 3 0 1 0 P2 +A 790 721 10 0 3 1 W=0.185 +Q 14 5 0 +A 791 675 10 0 3 1 M=1 +Q 14 5 0 +A 791 714 10 0 3 1 L=0.04 +Q 14 5 0 +Q 14 5 0 +C 47 5 14 0 +A 840 688 10 1 1 3 #=3 +C 56 6 12 0 +A 778 700 10 0 3 3 #=2 +C 53 2 15 0 +A 840 712 10 3 1 3 #=1 +T 1270 40 20 0 3 andy + +Q 14 5 0 +T 1270 20 20 0 3 tm28_6p5t_stdcells +Q 14 5 0 +U 1600 20 20 0 3 3 @SHEET=1 +Q 14 5 0 +U 1650 20 20 0 3 3 @SHEETTOTAL=1 +Q 14 5 0 +U 1270 60 20 0 3 3 @NAME=dti_28hc_6p5t_40_nand2x1 +Q 14 5 0 +U 1490 40 20 0 3 3 @DATETIME=7-7-2016_3:20 + + +Q 14 5 0 +N 47 +J 970 630 2 +J 710 590 2 +J 710 670 2 +J 710 630 5 +J 840 670 2 +J 840 630 5 +S 6 1 +S 2 4 +S 4 3 +S 4 6 +S 6 5 +I 70 OUTPUT 1 970 620 0 1 ' +L 1000 620 20 0 3 0 1 0 Z +C 47 1 9 0 +I 42 NM 1 660 430 0 1 ' +L 660 490 10 0 3 0 1 0 N2 +A 660 481 10 0 3 1 W=0.185 +Q 14 5 0 +A 661 435 10 0 3 1 M=1 +Q 14 5 0 +A 661 474 10 0 3 1 L=0.04 +Q 14 5 0 +Q 14 5 0 +C 43 1 20 0 +A 710 472 10 1 1 3 #=1 +C 56 5 21 0 +A 656 460 10 0 3 3 #=2 +C 45 2 19 0 +A 710 448 10 3 1 3 #=3 +I 41 NM 1 660 530 0 1 ' +L 660 590 10 0 3 0 1 0 N1 +Q 14 5 0 +A 661 574 10 0 3 1 L=0.04 +Q 14 5 0 +A 660 581 10 0 3 1 W=0.185 +Q 14 5 0 +A 661 535 10 0 3 1 M=1 +Q 14 5 0 +C 43 2 19 0 +A 710 548 10 3 1 3 #=3 +C 54 5 21 0 +A 656 560 10 0 3 3 #=2 +C 47 2 20 0 +A 710 572 10 1 1 3 #=1 +E + diff --git a/xschem_library/viewdraw_import/test/sch/bac/dti_28hc_6p5t_40_nor2x1.1 b/xschem_library/viewdraw_import/test/sch/bac/dti_28hc_6p5t_40_nor2x1.1 new file mode 100755 index 00000000..81497e66 --- /dev/null +++ b/xschem_library/viewdraw_import/test/sch/bac/dti_28hc_6p5t_40_nor2x1.1 @@ -0,0 +1,155 @@ +V 51 +K 250805739600 dti_and2x1 +Y 0 +D 0 0 1700 1100 +Z 1 +i 78 +N 78 +J 710 510 2 +J 710 510 2 +S 2 1 +I 77 VSS 1 690 470 0 1 ' +C 78 1 1 0 +N 72 + +J 710 810 2 +J 710 820 2 +S 1 2 +N 71 +J 710 750 2 +J 710 710 2 +S 2 1 +L 710 730 10 0 3 0 1 0 1N71 +N 45 +J 850 510 2 +J 850 510 2 +S 2 1 +I 1 SH_B 1 0 0 0 1 ' +L 0 0 10 0 3 0 1 0 x1i1 +I 55 INPUT 1 440 600 0 1 ' +L 420 600 20 0 3 0 1 0 A +C 54 2 8 0 +N 54 + +J 630 610 5 +J 470 610 2 +J 660 680 2 +J 630 680 3 +J 660 540 2 +J 630 540 3 +S 4 3 +S 1 4 +S 6 1 +S 6 5 +S 2 1 +I 46 PM 1 660 650 0 1 ' +L 660 710 10 0 3 0 1 0 P1 +Q 14 5 0 +A 661 694 10 0 3 1 L=0.04 +Q 14 5 0 +A 660 701 10 0 3 1 W=0.185 +Q 14 5 0 +A 661 655 10 0 3 1 M=1 +Q 14 5 0 +C 71 2 15 0 +A 710 692 10 3 1 3 #=1 +C 54 3 12 0 +A 648 680 10 0 3 3 #=2 +C 47 3 14 0 +A 710 668 10 1 1 3 #=3 +I 41 NM 1 660 510 0 1 ' +L 660 570 10 0 3 0 1 0 N1 +Q 14 5 0 +A 661 554 10 0 3 1 L=0.04 +Q 14 5 0 +A 660 561 10 0 3 1 W=0.185 +Q 14 5 0 +A 661 515 10 0 3 1 M=1 +Q 14 5 0 +C 78 2 19 0 +A 710 528 10 3 1 3 #=3 +C 54 5 21 0 +A 656 540 10 0 3 3 #=2 +C 47 2 20 0 +A 710 552 10 1 1 3 #=1 +I 50 VDD 1 690 820 0 1 ' +C 72 2 4 0 +I 74 INPUT 1 440 770 0 1 ' +L 420 770 20 0 3 0 1 0 B +C 56 3 8 0 +I 42 NM 1 800 510 0 1 ' +L 800 570 10 0 3 0 1 0 N2 +A 800 561 10 0 3 1 W=0.185 +Q 14 5 0 +A 801 515 10 0 3 1 M=1 +Q 14 5 0 +A 801 554 10 0 3 1 L=0.04 +Q 14 5 0 +Q 14 5 0 +C 47 6 20 0 +A 850 552 10 1 1 3 #=1 +C 56 6 21 0 +A 796 540 10 0 3 3 #=2 +C 45 2 19 0 +A 850 528 10 3 1 3 #=3 +I 44 VSS 1 830 470 0 1 ' +C 45 1 1 0 +N 56 + +J 770 780 3 +J 630 780 5 +J 470 780 2 +J 660 780 2 +J 770 540 3 +J 800 540 2 +S 5 1 +S 3 2 +S 2 4 +S 5 6 +S 2 1 +T 1270 40 20 0 3 andy +Q 14 5 0 +T 1270 20 20 0 3 tm28_6p5t_stdcells +Q 14 5 0 +U 1490 40 20 0 3 3 @DATETIME=7-7-2016_3:20 + + +Q 14 5 0 +U 1270 60 20 0 3 3 @NAME=dti_28hc_6p5t_40_nor2x1 +Q 14 5 0 +U 1650 20 20 0 3 3 @SHEETTOTAL=1 +Q 14 5 0 +U 1600 20 20 0 3 3 @SHEET=1 +Q 14 5 0 +N 47 +J 1100 610 2 +J 710 570 2 +J 710 650 2 +J 710 610 5 +J 850 610 5 +J 850 570 2 +S 5 1 +S 2 4 +S 4 3 +S 4 5 +S 6 5 +I 70 OUTPUT 1 1100 600 0 1 ' +L 1130 600 20 0 3 0 1 0 Z +C 47 1 9 0 +I 49 PM 1 660 750 0 1 ' +L 660 810 10 0 3 0 1 0 P2 +A 660 801 10 0 3 1 W=0.185 +Q 14 5 0 +A 661 755 10 0 3 1 M=1 +Q 14 5 0 +A 661 794 10 0 3 1 L=0.04 +Q 14 5 0 +Q 14 5 0 +C 71 1 14 0 +A 710 768 10 1 1 3 #=3 +C 56 4 12 0 +A 648 780 10 0 3 3 #=2 +C 72 1 15 0 +A 710 792 10 3 1 3 #=1 +E + diff --git a/xschem_library/viewdraw_import/test/sch/bac/dti_gen_inv.1 b/xschem_library/viewdraw_import/test/sch/bac/dti_gen_inv.1 new file mode 100755 index 00000000..2928ba9f --- /dev/null +++ b/xschem_library/viewdraw_import/test/sch/bac/dti_gen_inv.1 @@ -0,0 +1,77 @@ +V 51 +K 419708849300 INV +Y 0 +D 0 0 1700 1100 +Z 1 +i 18 +I 18 MISC:OUTPUT 1 930 600 0 1 ' +C 5 1 9 0 +I 16 MISC:INPUT 1 640 600 0 1 ' +C 7 1 8 0 +N 13 +J 840 464 2 +J 840 460 3 +J 840 464 2 +S 2 1 +S 2 3 +N 10 +J 840 734 2 +J 840 730 3 +J 840 734 2 +S 2 1 +S 2 3 +I 2 MISC:SHEET_B 1 0 0 0 1 ' +L 0 0 10 0 3 0 1 0 x1i2 +I 9 SOURCES:VDD 1 820 734 0 1 ' +C 10 1 4 0 +I 12 SOURCES:VSS 1 820 424 0 1 ' +C 13 1 1 0 +N 7 +J 670 610 2 +J 760 610 5 +J 760 684 3 +J 760 514 3 +J 780 684 2 +J 780 514 2 +S 4 2 +S 3 5 +S 2 3 +S 4 6 +S 1 2 +L 710 610 10 0 9 0 1 0 A +N 5 +J 930 610 2 +J 840 610 5 +J 840 634 2 +J 840 564 2 +S 4 2 +S 2 3 +S 2 1 +L 880 610 10 0 9 0 1 0 Z +U 1400 60 20 0 3 3 @NAME=DTI_GEN_INV +Q 14 3 0 +U 1420 20 20 0 3 3 @DATETIME=7-12-2018_22:50 +Q 14 3 0 +I 3 DEVICES:PMOS 1 780 634 0 1 ' +L 780 634 10 0 3 0 1 0 m1i3 +A 810 699 10 0 9 3 M +A 820 709 10 0 9 1 L=LP +A 821 717 10 0 9 1 W=WP +C 5 3 14 0 +A 840 669 10 3 1 3 #=3 +C 7 5 12 0 +A 780 684 10 0 3 3 #=2 +C 10 3 15 0 +A 840 699 10 1 1 3 #=1 +I 4 DEVICES:NMOS 1 780 464 0 1 ' +L 780 464 10 0 3 0 1 0 m1i4 +A 810 524 10 0 9 3 M +A 819 536 10 0 9 1 L=LN +A 818 547 10 0 9 1 W=WN +C 13 3 17 0 +A 840 499 10 3 1 3 #=3 +C 7 6 12 0 +A 780 514 10 0 3 3 #=2 +C 5 4 16 0 +A 840 529 10 1 1 3 #=1 +E diff --git a/xschem_library/viewdraw_import/test/sch/bac/dti_gen_tx.1 b/xschem_library/viewdraw_import/test/sch/bac/dti_gen_tx.1 new file mode 100755 index 00000000..ce149e4b --- /dev/null +++ b/xschem_library/viewdraw_import/test/sch/bac/dti_gen_tx.1 @@ -0,0 +1,59 @@ +V 51 +K 175113123700 EW_TXGATE +Y 0 +D 0 0 1169 826 +Z 5 +i 15 +I 1 test:SHEET_A4 1 0 0 0 1 ' +L 0 0 10 0 3 0 1 0 X1I1 +N 14 +J 370 320 1 +J 550 320 3 +J 550 370 1 +S 2 3 +S 1 2 +I 13 MISC:INPUT 1 340 310 0 1 ' +L 340 320 10 0 9 0 1 0 NG +I 12 MISC:INPUT 1 340 600 0 1 ' +L 340 610 10 0 9 0 1 0 PG +N 11 +J 370 610 1 +J 550 610 3 +J 550 570 1 +S 1 2 +S 3 2 +I 10 MISC:OUTPUT 1 730 460 0 1 ' +L 790 470 10 0 9 0 1 0 OUT +N 6 +J 730 470 1 +J 620 470 5 +J 600 510 1 +J 620 510 3 +J 620 430 3 +J 600 430 1 +S 2 1 +S 5 2 +S 3 4 +S 2 4 +S 6 5 +I 8 MISC:INPUT 1 340 460 0 1 ' +L 340 470 10 0 9 0 1 0 IN +N 4 +J 500 510 1 +J 480 510 3 +J 370 470 1 +J 480 470 5 +J 480 430 3 +J 500 430 1 +S 2 1 +S 4 2 +S 3 4 +S 5 4 +S 5 6 +I 3 DEVICES:PMOS 1 500 570 3 1 ' +L 500 570 10 0 3 0 1 0 M1I3 +A 591 527 10 3 9 1 W=WPA +I 2 DEVICES:NMOS 1 600 370 1 1 ' +L 600 370 10 0 3 0 1 0 M1I2 +A 510 415 10 1 9 1 W=WNA +E diff --git a/xschem_library/viewdraw_import/test/sch/dti_28hc_6p5t_40_ffqx1.1 b/xschem_library/viewdraw_import/test/sch/dti_28hc_6p5t_40_ffqx1.1 new file mode 100755 index 00000000..6f491ee1 --- /dev/null +++ b/xschem_library/viewdraw_import/test/sch/dti_28hc_6p5t_40_ffqx1.1 @@ -0,0 +1,416 @@ +V 51 +K 349782057500 umc_dti_sffqs11ux4 +Y 0 +D 0 0 2338 1653 +Z 7 +i 234 +I 139 test:SHEET_A2 1 0 0 0 1 ' +L 0 0 10 0 3 0 1 0 X1I139 +I 102 test:OUTPUT 1 2160 1010 0 1 ' +L 2190 1010 20 0 3 0 1 0 Q +C 104 1 9 0 +I 106 test:DTI_GEN_TX 1 1590 980 0 1 ' +A 1690 950 10 0 9 1 WNA=0.185 +Q 14 5 0 +A 1710 970 10 0 9 1 M=1 +Q 14 5 0 +A 1710 960 10 0 9 1 WPA=0.185 +L 1590 980 10 0 3 0 1 0 X1I106 +C 87 1 1 0 +C 105 5 2 0 +C 9 7 3 0 +C 6 8 4 0 +I 97 test:DTI_GEN_INV 1 2050 1160 4 1 ' +A 1988 1228 10 4 9 1 WP=0.1 +Q 14 5 0 +A 1988 1218 10 4 9 1 WN=0.1 +Q 14 5 0 +L 2050 1160 10 0 3 0 1 0 X1I97 +C 101 2 5 0 +C 105 3 4 0 +I 112 test:DTI_GEN_INV 1 1580 1370 3 1 ' +A 1638 1308 10 3 9 1 WN=0.185 +Q 14 5 0 +A 1648 1308 10 3 9 1 WP=0.1 +Q 14 5 0 +L 1580 1370 10 0 3 0 1 0 X1I112 +C 9 8 5 0 +C 6 15 4 0 +I 103 test:DTI_GEN_INV 1 1980 980 0 1 ' +A 2042 1038 10 0 9 1 WN=0.185 +Q 14 5 0 +A 2042 1058 10 0 9 1 M=1 +Q 14 5 0 +A 2042 1048 10 0 9 1 WP=0.185 +L 1980 980 10 0 3 0 1 0 X1I103 +C 104 2 5 0 +C 105 1 4 0 +I 88 test:DTI_GEN_INV 1 1400 980 0 1 ' +A 1462 1038 10 0 9 1 WN=0.185 +Q 14 5 0 +A 1462 1048 10 0 9 1 WP=0.185 +Q 14 5 0 +L 1400 980 10 0 3 0 1 0 X1I88 +A 1470 1060 10 0 9 1 M=1 +C 87 2 5 0 +C 187 4 4 0 +I 80 test:PMOS 1 1410 1190 4 1 ' +A 1360 1275 15 4 9 1 W=0.1 +Q 14 5 0 +A 1360 1260 15 4 9 1 L=LPD +Q 14 5 0 +L 1410 1190 10 0 3 0 1 0 M1I80 +C 87 6 12 0 +C 77 2 15 0 +C 78 2 14 0 +I 99 test:PMOS 1 1770 1050 0 1 ' +A 1820 1135 15 0 9 1 W=0.1 +Q 14 5 0 +A 1820 1120 15 0 9 1 L=LPD +Q 14 5 0 +L 1770 1050 10 0 3 0 1 0 M1I99 +C 6 11 12 0 +C 92 2 15 0 +C 105 6 14 0 +I 96 test:PMOS 1 1890 1150 4 1 ' +A 1840 1235 15 4 9 1 W=0.1 +Q 14 5 0 +A 1840 1220 15 4 9 1 L=LPD +Q 14 5 0 +L 1890 1150 10 0 3 0 1 0 M1I96 +C 101 1 12 0 +C 91 2 15 0 +C 92 1 14 0 +I 210 test:PMOS 1 1080 1160 0 1 ' +A 1130 1230 15 0 9 1 L=LPD +Q 14 5 0 +A 1130 1245 15 0 9 1 W=0.185 +Q 14 5 0 +L 1080 1160 10 0 3 0 1 0 M1I210 +C 6 2 12 0 +C 204 2 15 0 +C 203 2 14 0 +I 83 test:PMOS 1 1410 1090 4 1 ' +A 1360 1175 15 4 9 1 W=0.1 +Q 14 5 0 +A 1360 1160 15 4 9 1 L=LPD +Q 14 5 0 +L 1410 1090 10 0 3 0 1 0 M1I83 +C 9 11 12 0 +C 78 1 15 0 +C 187 7 14 0 +I 213 test:PMOS 1 1080 1060 0 1 ' +A 1130 1145 15 0 9 1 W=0.185 +Q 14 5 0 +A 1130 1130 15 0 9 1 L=LPD +Q 14 5 0 +L 1080 1060 10 0 3 0 1 0 M1I213 +C 161 1 12 0 +C 203 1 15 0 +C 187 1 14 0 +I 170 test:PMOS 1 600 1030 0 1 ' +A 650 1115 15 0 9 1 W=0.185 +Q 14 5 0 +A 650 1100 15 0 9 1 L=LPD +Q 14 5 0 +L 600 1030 10 0 3 0 1 0 M1I170 +C 190 5 12 0 +C 178 2 15 0 +C 161 6 14 0 +I 84 test:NMOS 1 1290 790 0 1 ' +A 1340 860 15 0 9 1 L=LND +Q 14 5 0 +A 1340 875 15 0 9 1 W=0.1 +Q 14 5 0 +L 1290 790 10 0 3 0 1 0 M1I84 +C 6 5 12 0 +C 79 2 17 0 +C 187 5 16 0 +I 81 test:NMOS 1 1410 690 4 1 ' +A 1360 760 15 4 9 1 L=LND +Q 14 5 0 +A 1360 775 15 4 9 1 W=0.1 +Q 14 5 0 +L 1410 690 10 0 3 0 1 0 M1I81 +C 87 3 12 0 +C 76 2 17 0 +C 79 1 16 0 +I 98 test:NMOS 1 1770 740 0 1 ' +A 1820 810 15 0 9 1 L=LND +Q 14 5 0 +A 1820 825 15 0 9 1 W=0.1 +Q 14 5 0 +L 1770 740 10 0 3 0 1 0 M1I98 +C 9 5 12 0 +C 94 2 17 0 +C 105 2 16 0 +I 95 test:NMOS 1 1890 640 4 1 ' +A 1770 710 15 4 9 1 L=LND +Q 14 5 0 +A 1770 725 15 4 9 1 W=0.1 +Q 14 5 0 +L 1890 640 10 0 3 0 1 0 M1I95 +C 101 5 12 0 +C 111 2 17 0 +C 94 1 16 0 +I 211 test:NMOS 1 1080 790 0 1 ' +A 1130 860 15 0 9 1 L=LND +Q 14 5 0 +A 1130 875 15 0 9 1 W=0.185 +Q 14 5 0 +L 1080 790 10 0 3 0 1 0 M1I211 +C 9 1 12 0 +C 205 2 17 0 +C 206 2 16 0 +I 212 test:NMOS 1 1080 890 0 1 ' +A 1130 975 15 0 9 1 W=0.185 +Q 14 5 0 +A 1130 960 15 0 9 1 L=LND +Q 14 5 0 +L 1080 890 10 0 3 0 1 0 M1I212 +C 161 3 12 0 +C 206 1 17 0 +C 187 3 16 0 +I 171 test:NMOS 1 600 910 0 1 ' +A 650 980 15 0 9 1 L=LND +Q 14 5 0 +A 650 995 15 0 9 1 W=0.185 +Q 14 5 0 +L 600 910 10 0 3 0 1 0 M1I171 +C 190 6 12 0 +C 173 2 17 0 +C 161 8 16 0 +I 208 test:VSS 1 1120 750 0 1 ' +C 205 1 1 0 +I 110 test:VSS 1 1810 600 0 1 ' +C 111 1 1 0 +I 82 test:VSS 1 1330 650 0 1 ' +C 76 1 1 0 +I 174 test:VSS 1 640 870 0 1 ' +C 173 1 1 0 +I 207 test:VDD 1 1120 1260 0 1 ' +C 204 1 4 0 +I 100 test:VDD 1 1810 1250 0 1 ' +C 91 1 4 0 +I 85 test:VDD 1 1330 1290 0 1 ' +C 77 1 4 0 +I 179 test:VDD 1 640 1130 0 1 ' +C 178 1 4 0 +I 169 test:INPUT 1 260 1020 0 1 ' +L 220 1020 20 0 3 0 1 0 D +C 190 3 8 0 +I 125 test:INPUT 1 260 1390 0 1 ' +L 220 1390 20 0 3 0 1 0 CK +C 6 4 8 0 +N 78 +J 1350 1190 2 +J 1350 1190 2 +S 1 2 +L 1350 1190 10 0 3 0 1 0 1N78 +N 203 +J 1140 1160 2 +J 1140 1160 2 +S 1 2 +L 1140 1160 10 0 3 0 1 0 1N203 +N 204 +J 1140 1260 2 +J 1140 1260 2 +S 1 2 +N 205 +J 1140 790 2 +J 1140 790 2 +S 1 2 +N 206 +J 1140 890 2 +J 1140 890 2 +S 1 2 +L 1140 890 10 0 3 0 1 0 1N206 +N 178 +J 660 1130 2 +J 660 1130 2 +S 2 1 +N 111 +J 1830 640 2 +J 1830 640 2 +S 1 2 +N 91 +J 1830 1250 2 +J 1830 1250 2 +S 1 2 +N 92 +J 1830 1150 2 +J 1830 1150 2 +S 1 2 +L 1830 1150 10 0 3 0 1 0 1N92 +N 94 +J 1830 740 2 +J 1830 740 2 +S 2 1 +L 1830 740 10 0 3 0 1 0 1N94 +N 76 +J 1350 690 2 +J 1350 690 2 +S 1 2 +N 77 +J 1350 1290 2 +J 1350 1290 2 +S 1 2 +N 79 +J 1350 790 2 +J 1350 790 2 +S 1 2 +L 1350 790 10 0 3 0 1 0 1N79 +N 190 +J 560 960 3 +J 560 1080 3 +J 290 1030 2 +J 560 1030 5 +J 600 1080 2 +J 600 960 2 +S 1 6 +S 2 5 +S 3 4 +S 1 4 +S 4 2 +N 104 +J 2160 1020 2 +J 2060 1020 2 +S 2 1 +N 9 +J 1080 840 2 +J 850 840 3 +J 850 1360 3 +J 1570 1360 3 +J 1770 790 2 +J 1570 790 5 +J 1620 1070 2 +J 1620 1290 2 +J 1620 1140 5 +J 1570 1140 5 +J 1410 1140 2 +S 3 4 +S 6 4 +S 6 5 +S 6 10 +S 9 8 +L 1620 1280 10 3 3 0 1 0 CKB +S 10 9 +S 11 10 +S 7 9 +S 2 3 +S 2 1 +N 187 +J 1140 1060 2 +J 1140 1020 5 +J 1140 990 2 +J 1400 1020 2 +J 1350 890 2 +J 1350 1020 5 +J 1350 1090 2 +S 6 7 +S 5 6 +S 6 4 +S 3 2 +S 2 1 +S 2 6 +L 1200 1020 10 0 3 0 1 0 ML +N 6 +J 1060 1210 3 +J 1080 1210 2 +J 1060 1400 5 +J 290 1400 2 +J 1290 840 2 +J 1250 840 3 +J 1250 1400 5 +J 1620 980 2 +J 1620 940 3 +J 1740 940 3 +J 1770 1100 2 +J 1740 1100 5 +J 1740 1400 3 +J 1620 1400 5 +J 1620 1370 2 +S 1 2 +S 1 3 +S 4 3 +S 6 5 +S 7 14 +S 9 8 +S 9 10 +S 10 12 +S 12 11 +S 12 13 +S 14 13 +S 15 14 +S 3 7 +S 6 7 +N 105 +J 1980 1020 2 +J 1830 840 2 +J 2050 1200 2 +J 2090 1200 3 +J 1650 1020 2 +J 1830 1050 2 +J 1830 1020 5 +J 1830 860 5 +J 2090 860 3 +S 2 8 +S 3 4 +S 7 6 +S 8 7 +S 9 4 +S 8 9 +S 5 7 +L 1810 1020 10 0 3 0 1 0 XIDB +S 7 1 +N 101 +J 1890 1200 2 +J 1970 1200 2 +J 1940 1200 5 +J 1940 690 3 +J 1890 690 2 +S 1 3 +L 1900 1200 10 0 3 0 1 0 SL +S 3 2 +S 4 3 +S 5 4 +N 161 +J 1080 1110 2 +J 1050 1110 3 +J 1080 940 2 +J 1050 940 3 +J 1050 1020 5 +J 660 1030 2 +J 660 1020 5 +J 660 1010 2 +S 2 1 +S 5 2 +S 4 3 +S 4 5 +S 7 5 +S 7 6 +S 8 7 +L 1065 1110 10 0 3 0 1 0 1N161 +N 173 +J 660 910 2 +J 660 910 2 +S 1 2 +N 87 +J 1590 1020 2 +J 1480 1020 2 +J 1410 740 2 +J 1530 740 3 +J 1530 1020 5 +J 1410 1240 2 +J 1530 1240 3 +S 3 4 +S 6 7 +S 4 5 +S 2 5 +S 5 1 +L 1535 1020 10 0 3 0 1 0 RM +S 5 7 +l 2 1490 1070 1500 1420 +T 1200 1440 10 0 3 Re-name node to RM for removal sim. +T 100 60 10 0 3 Hiep confirm latest Oct03rd_2021 +E diff --git a/xschem_library/viewdraw_import/test/sch/dti_28hc_6p5t_40_invx1.1 b/xschem_library/viewdraw_import/test/sch/dti_28hc_6p5t_40_invx1.1 new file mode 100755 index 00000000..52c30eb4 --- /dev/null +++ b/xschem_library/viewdraw_import/test/sch/dti_28hc_6p5t_40_invx1.1 @@ -0,0 +1,76 @@ +V 51 +K 250805739600 dti_and2x1 +Y 0 +D 0 0 1700 1100 +Z 1 +i 70 +I 63 test:NM 1 790 540 0 1 ' +L 790 600 10 0 3 0 1 0 N1 +A 790 591 10 0 3 1 W=0.185 +Q 14 5 0 +A 791 545 10 0 3 1 M=1 +Q 14 5 0 +A 791 584 10 0 3 1 L=0.04 +Q 14 5 0 +C 68 2 19 0 +A 840 558 10 3 1 3 #=3 +C 47 2 21 0 +A 786 570 10 0 3 3 #=2 +C 62 3 20 0 +A 840 582 10 1 1 3 #=1 +I 60 test:PM 1 790 680 0 1 ' +L 790 740 10 0 3 0 1 0 P1 +Q 14 5 0 +A 791 724 10 0 3 1 L=0.04 +Q 14 5 0 +A 790 731 10 0 3 1 W=0.185 +Q 14 5 0 +A 791 685 10 0 3 1 M=1 +Q 14 5 0 +C 61 2 15 0 +A 840 722 10 3 1 3 #=1 +C 47 6 12 0 +A 778 710 10 0 3 3 #=2 +C 62 4 14 0 +A 840 698 10 1 1 3 #=3 +I 59 test:VDD 1 820 740 0 1 ' +C 61 1 4 0 +N 61 +J 840 740 2 +J 840 740 2 +S 2 1 +I 67 test:VSS 1 820 500 0 1 ' +C 68 1 1 0 +N 68 +J 840 540 2 +J 840 540 2 +S 2 1 +N 62 +J 960 640 2 +J 840 640 5 +J 840 600 2 +J 840 680 2 +S 2 4 +S 3 2 +S 2 1 +I 1 test:SH_B 1 0 0 0 1 ' +L 0 0 10 0 3 0 1 0 X1I1 +I 70 test:OUTPUT 1 960 630 0 1 ' +L 990 630 20 0 3 0 1 0 Z +C 62 1 9 0 +N 47 +J 630 640 2 +J 790 570 2 +J 760 570 3 +J 760 640 5 +J 760 710 3 +J 790 710 2 +S 1 4 +S 3 2 +S 3 4 +S 4 5 +S 5 6 +I 55 test:INPUT 1 600 630 0 1 ' +L 580 630 20 0 3 0 1 0 A +C 47 1 8 0 +E diff --git a/xschem_library/viewdraw_import/test/sch/dti_28hc_6p5t_40_nand2x1.1 b/xschem_library/viewdraw_import/test/sch/dti_28hc_6p5t_40_nand2x1.1 new file mode 100755 index 00000000..83b6b03b --- /dev/null +++ b/xschem_library/viewdraw_import/test/sch/dti_28hc_6p5t_40_nand2x1.1 @@ -0,0 +1,135 @@ +V 51 +K 250805739600 dti_and2x1 +Y 0 +D 0 0 1700 1100 +Z 1 +i 70 +I 57 test:INPUT 1 440 450 0 1 ' +L 420 450 20 0 3 0 1 0 B +C 56 4 8 0 +N 53 +J 840 730 2 +J 840 730 2 +S 2 1 +N 51 +J 710 730 2 +J 710 730 2 +S 2 1 +N 45 +J 710 430 2 +J 710 430 2 +S 2 1 +N 43 +J 710 490 2 +J 710 530 2 +S 1 2 +L 710 510 10 0 3 0 1 0 1N43 +I 1 test:SH_B 1 0 0 0 1 ' +L 0 0 10 0 3 0 1 0 X1I1 +I 50 test:VDD 1 690 730 0 1 ' +C 51 1 4 0 +I 55 test:INPUT 1 440 620 0 1 ' +L 420 620 20 0 3 0 1 0 A +C 54 2 8 0 +N 54 +J 630 630 5 +J 470 630 2 +J 660 700 2 +J 630 700 3 +J 660 560 2 +J 630 560 3 +S 4 3 +S 1 4 +S 6 1 +S 6 5 +S 2 1 +N 56 +J 760 700 3 +J 630 460 5 +J 760 460 3 +J 470 460 2 +J 660 460 2 +J 790 700 2 +S 1 6 +S 3 1 +S 4 2 +S 2 5 +S 2 3 +I 52 test:VDD 1 820 730 0 1 ' +C 53 1 4 0 +I 44 test:VSS 1 690 390 0 1 ' +C 45 1 1 0 +I 46 test:PM 1 660 670 0 1 ' +L 660 730 10 0 3 0 1 0 P1 +Q 14 5 0 +A 661 714 10 0 3 1 L=0.04 +Q 14 5 0 +A 660 721 10 0 3 1 W=0.185 +Q 14 5 0 +A 661 675 10 0 3 1 M=1 +Q 14 5 0 +C 51 2 15 0 +A 710 712 10 3 1 3 #=1 +C 54 3 12 0 +A 648 700 10 0 3 3 #=2 +C 47 3 14 0 +A 710 688 10 1 1 3 #=3 +I 49 test:PM 1 790 670 0 1 ' +L 790 730 10 0 3 0 1 0 P2 +A 790 721 10 0 3 1 W=0.185 +Q 14 5 0 +A 791 675 10 0 3 1 M=1 +Q 14 5 0 +A 791 714 10 0 3 1 L=0.04 +Q 14 5 0 +C 47 5 14 0 +A 840 688 10 1 1 3 #=3 +C 56 6 12 0 +A 778 700 10 0 3 3 #=2 +C 53 2 15 0 +A 840 712 10 3 1 3 #=1 +N 47 +J 970 630 2 +J 710 590 2 +J 710 670 2 +J 710 630 5 +J 840 670 2 +J 840 630 5 +S 6 1 +S 2 4 +S 4 3 +S 4 6 +S 6 5 +I 70 test:OUTPUT 1 970 620 0 1 ' +L 1000 620 20 0 3 0 1 0 Z +C 47 1 9 0 +I 42 test:NM 1 660 430 0 1 ' +L 660 490 10 0 3 0 1 0 N2 +A 660 481 10 0 3 1 W=0.185 +Q 14 5 0 +A 661 435 10 0 3 1 M=1 +Q 14 5 0 +A 661 474 10 0 3 1 L=0.04 +Q 14 5 0 +C 43 1 20 0 +A 710 472 10 1 1 3 #=1 +C 56 5 21 0 +A 656 460 10 0 3 3 #=2 +C 45 2 19 0 +A 710 448 10 3 1 3 #=3 +I 41 test:NM 1 660 530 0 1 ' +L 660 590 10 0 3 0 1 0 N1 +Q 14 5 0 +A 661 574 10 0 3 1 L=0.04 +Q 14 5 0 +A 660 581 10 0 3 1 W=0.185 +Q 14 5 0 +A 661 535 10 0 3 1 M=1 +Q 14 5 0 +C 43 2 19 0 +A 710 548 10 3 1 3 #=3 +C 54 5 21 0 +A 656 560 10 0 3 3 #=2 +C 47 2 20 0 +A 710 572 10 1 1 3 #=1 +E diff --git a/xschem_library/viewdraw_import/test/sch/dti_28hc_6p5t_40_nor2x1.1 b/xschem_library/viewdraw_import/test/sch/dti_28hc_6p5t_40_nor2x1.1 new file mode 100755 index 00000000..9633dac0 --- /dev/null +++ b/xschem_library/viewdraw_import/test/sch/dti_28hc_6p5t_40_nor2x1.1 @@ -0,0 +1,135 @@ +V 51 +K 250805739600 dti_and2x1 +Y 0 +D 0 0 1700 1100 +Z 1 +i 78 +N 78 +J 710 510 2 +J 710 510 2 +S 2 1 +I 77 test:VSS 1 690 470 0 1 ' +C 78 1 1 0 +N 72 +J 710 810 2 +J 710 820 2 +S 1 2 +N 71 +J 710 750 2 +J 710 710 2 +S 2 1 +L 710 730 10 0 3 0 1 0 1N71 +N 45 +J 850 510 2 +J 850 510 2 +S 2 1 +I 1 test:SH_B 1 0 0 0 1 ' +L 0 0 10 0 3 0 1 0 X1I1 +I 55 test:INPUT 1 440 600 0 1 ' +L 420 600 20 0 3 0 1 0 A +C 54 2 8 0 +N 54 +J 630 610 5 +J 470 610 2 +J 660 680 2 +J 630 680 3 +J 660 540 2 +J 630 540 3 +S 4 3 +S 1 4 +S 6 1 +S 6 5 +S 2 1 +I 46 test:PM 1 660 650 0 1 ' +L 660 710 10 0 3 0 1 0 P1 +Q 14 5 0 +A 661 694 10 0 3 1 L=0.04 +Q 14 5 0 +A 660 701 10 0 3 1 W=0.185 +Q 14 5 0 +A 661 655 10 0 3 1 M=1 +Q 14 5 0 +C 71 2 15 0 +A 710 692 10 3 1 3 #=1 +C 54 3 12 0 +A 648 680 10 0 3 3 #=2 +C 47 3 14 0 +A 710 668 10 1 1 3 #=3 +I 41 test:NM 1 660 510 0 1 ' +L 660 570 10 0 3 0 1 0 N1 +Q 14 5 0 +A 661 554 10 0 3 1 L=0.04 +Q 14 5 0 +A 660 561 10 0 3 1 W=0.185 +Q 14 5 0 +A 661 515 10 0 3 1 M=1 +Q 14 5 0 +C 78 2 19 0 +A 710 528 10 3 1 3 #=3 +C 54 5 21 0 +A 656 540 10 0 3 3 #=2 +C 47 2 20 0 +A 710 552 10 1 1 3 #=1 +I 50 test:VDD 1 690 820 0 1 ' +C 72 2 4 0 +I 74 test:INPUT 1 440 770 0 1 ' +L 420 770 20 0 3 0 1 0 B +C 56 3 8 0 +I 42 test:NM 1 800 510 0 1 ' +L 800 570 10 0 3 0 1 0 N2 +A 800 561 10 0 3 1 W=0.185 +Q 14 5 0 +A 801 515 10 0 3 1 M=1 +Q 14 5 0 +A 801 554 10 0 3 1 L=0.04 +Q 14 5 0 +C 47 6 20 0 +A 850 552 10 1 1 3 #=1 +C 56 6 21 0 +A 796 540 10 0 3 3 #=2 +C 45 2 19 0 +A 850 528 10 3 1 3 #=3 +I 44 test:VSS 1 830 470 0 1 ' +C 45 1 1 0 +N 56 +J 770 780 3 +J 630 780 5 +J 470 780 2 +J 660 780 2 +J 770 540 3 +J 800 540 2 +S 5 1 +S 3 2 +S 2 4 +S 5 6 +S 2 1 +N 47 +J 1100 610 2 +J 710 570 2 +J 710 650 2 +J 710 610 5 +J 850 610 5 +J 850 570 2 +S 5 1 +S 2 4 +S 4 3 +S 4 5 +S 6 5 +I 70 test:OUTPUT 1 1100 600 0 1 ' +L 1130 600 20 0 3 0 1 0 Z +C 47 1 9 0 +I 49 test:PM 1 660 750 0 1 ' +L 660 810 10 0 3 0 1 0 P2 +A 660 801 10 0 3 1 W=0.185 +Q 14 5 0 +A 661 755 10 0 3 1 M=1 +Q 14 5 0 +A 661 794 10 0 3 1 L=0.04 +Q 14 5 0 +C 71 1 14 0 +A 710 768 10 1 1 3 #=3 +C 56 4 12 0 +A 648 780 10 0 3 3 #=2 +C 72 1 15 0 +A 710 792 10 3 1 3 #=1 +E diff --git a/xschem_library/viewdraw_import/test/sch/dti_gen_inv.1 b/xschem_library/viewdraw_import/test/sch/dti_gen_inv.1 new file mode 100755 index 00000000..aba42316 --- /dev/null +++ b/xschem_library/viewdraw_import/test/sch/dti_gen_inv.1 @@ -0,0 +1,67 @@ +V 51 +K 419708849300 INV +Y 0 +D 0 0 1700 1100 +Z 1 +i 18 +I 16 test:INPUT 1 640 600 0 1 ' +C 7 1 8 0 +I 18 test:OUTPUT 1 930 600 0 1 ' +C 5 1 9 0 +I 4 test:NMOS 1 780 464 0 1 ' +A 818 547 10 0 9 1 W=WN +A 819 536 10 0 9 1 L=LN +A 810 524 10 0 9 3 M +L 780 464 10 0 3 0 1 0 M1I4 +C 7 6 12 0 +C 13 3 17 0 +C 5 4 16 0 +I 3 test:PMOS 1 780 634 0 1 ' +A 821 717 10 0 9 1 W=WP +A 820 709 10 0 9 1 L=LP +A 810 699 10 0 9 3 M +L 780 634 10 0 3 0 1 0 M1I3 +C 7 5 12 0 +C 10 3 15 0 +C 5 3 14 0 +I 9 test:VDD 1 820 734 0 1 ' +C 10 1 4 0 +I 12 test:VSS 1 820 424 0 1 ' +C 13 1 1 0 +I 2 test:SHEET_B 1 0 0 0 1 ' +L 0 0 10 0 3 0 1 0 X1I2 +N 13 +J 840 464 2 +J 840 460 3 +J 840 464 2 +S 2 1 +S 2 3 +N 10 +J 840 734 2 +J 840 730 3 +J 840 734 2 +S 2 1 +S 2 3 +N 7 +J 670 610 2 +J 760 610 5 +J 760 684 3 +J 760 514 3 +J 780 684 2 +J 780 514 2 +S 4 2 +S 3 5 +S 2 3 +S 4 6 +S 1 2 +L 710 610 10 0 9 0 1 0 A +N 5 +J 930 610 2 +J 840 610 5 +J 840 634 2 +J 840 564 2 +S 4 2 +S 2 3 +S 2 1 +L 880 610 10 0 9 0 1 0 Z +E diff --git a/xschem_library/viewdraw_import/test/sch/dti_gen_tx.1 b/xschem_library/viewdraw_import/test/sch/dti_gen_tx.1 new file mode 100755 index 00000000..5f1c7a9c --- /dev/null +++ b/xschem_library/viewdraw_import/test/sch/dti_gen_tx.1 @@ -0,0 +1,69 @@ +V 51 +K 175113123700 EW_TXGATE +Y 0 +D 0 0 1169 826 +Z 5 +i 15 +I 2 test:NMOS 1 600 370 1 1 ' +A 510 415 10 1 9 1 W=WNA +L 600 370 10 0 3 0 1 0 M1I2 +C 14 3 12 0 +C 6 6 17 0 +C 4 6 16 0 +I 3 test:PMOS 1 500 570 3 1 ' +A 591 527 10 3 9 1 W=WPA +L 500 570 10 0 3 0 1 0 M1I3 +C 11 3 12 0 +C 6 3 15 0 +C 4 1 14 0 +I 10 test:OUTPUT 1 730 460 0 1 ' +L 790 470 10 0 9 0 1 0 OUT +C 6 1 9 0 +I 12 test:INPUT 1 340 600 0 1 ' +L 340 610 10 0 9 0 1 0 PG +C 11 1 8 0 +I 8 test:INPUT 1 340 460 0 1 ' +L 340 470 10 0 9 0 1 0 IN +C 4 3 8 0 +I 13 test:INPUT 1 340 310 0 1 ' +L 340 320 10 0 9 0 1 0 NG +C 14 1 8 0 +I 1 test:SHEET_A4 1 0 0 0 1 ' +L 0 0 10 0 3 0 1 0 X1I1 +N 14 +J 370 320 2 +J 550 320 3 +J 550 370 2 +S 2 3 +S 1 2 +N 11 +J 370 610 2 +J 550 610 3 +J 550 570 2 +S 1 2 +S 3 2 +N 6 +J 730 470 2 +J 620 470 5 +J 600 510 2 +J 620 510 3 +J 620 430 3 +J 600 430 2 +S 2 1 +S 5 2 +S 3 4 +S 2 4 +S 6 5 +N 4 +J 500 510 2 +J 480 510 3 +J 370 470 2 +J 480 470 5 +J 480 430 3 +J 500 430 2 +S 2 1 +S 4 2 +S 3 4 +S 5 4 +S 5 6 +E diff --git a/xschem_library/viewdraw_import/test/sym/INPUT.1 b/xschem_library/viewdraw_import/test/sym/INPUT.1 new file mode 100755 index 00000000..905fece4 --- /dev/null +++ b/xschem_library/viewdraw_import/test/sym/INPUT.1 @@ -0,0 +1,26 @@ +V 50 +K 360680165500 INPUT +Y 4 +D 0 0 30 20 +Z 10 +i 8 +P 8 30 10 25 10 0 3 0 +A 30 10 10 0 9 0 PINTYPE=IN +L 17 7 5 0 9 0 1 0 IN +Q 14 0 0 +U 0 -20 10 0 9 0 IN +U 0 -10 10 0 9 0 PINORDER=IN +b 28 9 30 11 +Q 4 1 0 +l 2 19 5 25 10 +l 2 25 10 19 15 +l 2 19 15 2 15 +l 3 19 5 19 5 2 5 +l 2 27 10 20 4 +l 2 2 5 2 15 +l 2 1 16 1 16 +l 2 27 10 20 16 +l 2 20 16 1 16 +l 2 20 4 1 4 +l 2 1 4 1 16 +E diff --git a/xschem_library/viewdraw_import/test/sym/NMOS.1 b/xschem_library/viewdraw_import/test/sym/NMOS.1 new file mode 100755 index 00000000..04e09104 --- /dev/null +++ b/xschem_library/viewdraw_import/test/sym/NMOS.1 @@ -0,0 +1,47 @@ +V 51 +K 62580629890 nmos +Y 1 +D 0 0 100 100 +Z 10 +i 18 +P 16 60 100 60 65 0 0 0 +A 60 65 10 1 1 0 #=1 +A 60 65 10 1 1 0 PINTYPE=BI +L 60 80 10 0 9 0 0 0 D +P 17 60 0 60 35 0 1 0 +A 60 35 10 3 1 0 #=3 +A 60 35 10 3 1 0 PINTYPE=BI +L 60 20 10 0 9 0 0 0 S +U 0 -130 10 0 9 0 NRS +U 0 -120 10 0 9 0 NRD +U 0 -110 10 0 9 0 PD +U 0 -100 10 0 9 0 PS +U 0 -90 10 0 9 0 AD +U 0 -70 10 0 9 0 AS +U 0 -40 10 0 9 0 GEO +U 0 -20 10 0 9 0 PINOFF +U 0 -10 10 0 9 0 BULK=VSS +U 50 85 10 0 9 1 W=WND +U 0 -80 10 0 9 0 ORDER=BULK$ MODEL$ L= W= AS= AD= PS= PD= NRD= NRS= M= GEO= +U 10 60 10 0 9 3 M +U 0 -60 10 0 9 0 MODEL=NM +U 0 -50 10 0 9 0 PREFIX=M +U 90 20 10 0 9 0 REFDES=N? +U 0 -30 10 0 9 0 PINORDER=D G S +U 49 72 10 0 9 1 L=LND +T 60 10 5 0 9 S +b 58 0 62 4 +Q 4 1 0 +b 58 96 62 100 +Q 4 1 0 +b 0 48 4 52 +Q 4 1 0 +l 2 40 30 40 70 +l 2 30 35 30 65 +P 12 0 50 30 50 0 2 0 +A -10 50 10 0 3 0 #=2 +A -10 50 10 0 3 0 PINTYPE=IN +L 10 50 10 0 9 0 0 0 G +l 2 60 65 40 65 +l 2 60 35 40 35 +E diff --git a/xschem_library/viewdraw_import/test/sym/OUTPUT.1 b/xschem_library/viewdraw_import/test/sym/OUTPUT.1 new file mode 100755 index 00000000..77149bcd --- /dev/null +++ b/xschem_library/viewdraw_import/test/sym/OUTPUT.1 @@ -0,0 +1,25 @@ +V 50 +K 360680165500 INPUT +Y 4 +D 0 0 30 20 +Z 10 +i 10 +P 9 0 10 4 10 0 2 0 +A 0 10 10 0 3 0 PINTYPE=OUT +L 23 7 5 0 9 0 1 0 OUT +U 0 -20 10 0 9 0 OUT +U 0 -10 10 0 9 0 PINORDER=OUT +b 0 9 2 11 +Q 4 1 0 +l 2 22 5 28 10 +l 2 28 10 22 15 +l 2 22 15 5 15 +l 3 22 5 22 5 5 5 +l 2 30 10 23 4 +l 2 5 5 5 15 +l 2 4 16 4 16 +l 2 30 10 23 16 +l 2 23 16 4 16 +l 2 23 4 4 4 +l 2 4 4 4 16 +E diff --git a/xschem_library/viewdraw_import/test/sym/PMOS.1 b/xschem_library/viewdraw_import/test/sym/PMOS.1 new file mode 100755 index 00000000..439756c6 --- /dev/null +++ b/xschem_library/viewdraw_import/test/sym/PMOS.1 @@ -0,0 +1,49 @@ +V 51 +K 196507574900 pmos +Y 1 +D 0 0 100 100 +Z 10 +i 17 +U 0 -90 10 0 9 0 NRS +U 0 -80 10 0 9 0 NRD +U 0 -70 10 0 9 0 PD +U 0 -60 10 0 9 0 PS +U 0 -50 10 0 9 0 AD +U 0 -40 10 0 9 0 AS +U 0 -30 10 0 9 0 GEO +U 0 -20 10 0 9 0 BULK=VDD +U 0 -10 10 0 9 0 PINOFF +U 148 -10 10 0 9 0 PINORDER=D G S +U 148 0 10 0 9 0 PREFIX=M +U 84 18 10 0 9 0 REFDES=P? +U 148 20 10 0 9 0 ORDER=BULK$ MODEL$ L= W= AS= AD= PS= PD= NRS= NRD= M= GEO= +U 148 30 10 0 9 0 MODEL=PM +U 10 65 10 0 9 3 M +U 49 83 10 0 9 1 W=WPD +U 50 75 10 0 9 1 L=LPD +P 14 60 0 60 35 0 1 0 +A 60 35 10 3 1 0 #=3 +A 60 35 10 3 1 0 PINTYPE=BI +L 60 30 10 0 9 0 0 0 D +P 15 60 100 60 65 0 0 0 +A 60 65 10 1 1 0 #=1 +A 60 65 10 1 1 0 PINTYPE=BI +L 60 80 10 0 9 0 0 0 S +T 70 80 5 0 9 S +b 58 0 62 4 +Q 4 1 0 +b 58 96 62 100 +Q 4 1 0 +b 0 48 4 52 +Q 4 1 0 +l 2 40 30 40 70 +l 2 60 35 40 35 +l 2 60 65 40 65 +l 2 30 35 30 65 +c 23 50 7 +Q 12 0 0 +P 12 0 50 16 50 0 2 0 +A -14 50 10 0 3 0 #=2 +A -14 50 10 0 3 0 PINTYPE=IN +L -4 50 10 0 9 0 0 0 G +E diff --git a/xschem_library/viewdraw_import/test/sym/SH_B.1 b/xschem_library/viewdraw_import/test/sym/SH_B.1 new file mode 100755 index 00000000..b89aa0d5 --- /dev/null +++ b/xschem_library/viewdraw_import/test/sym/SH_B.1 @@ -0,0 +1,94 @@ +V 51 +K 428522324900 SHEET_B +|R 10:12_12-29-21 +Y 3 +D 0 0 1 1 +Z 10 +i 0 +T 1200 20 20 4 9 Library +Q 10 5 0 +l 2 1245 20 1245 0 +Q 11 0 0 +l 2 820 20 820 0 +Q 11 0 0 +l 2 395 20 395 0 +Q 11 0 0 +l 2 20 275 0 275 +Q 11 0 0 +l 2 20 550 0 550 +Q 11 0 0 +l 2 20 825 0 825 +Q 11 0 0 +l 2 400 1100 400 1080 +Q 11 0 0 +l 2 825 1100 825 1080 +Q 11 0 0 +l 2 1250 1075 1250 1075 +l 2 1250 1075 1250 1075 +l 2 1250 1075 1250 1075 +l 2 1245 1085 1245 1085 +l 2 1245 1085 1245 1085 +l 2 1250 1085 1250 1085 +l 2 1265 1075 1265 1075 +l 2 1250 1100 1250 1080 +Q 11 0 0 +l 2 1700 825 1680 825 +Q 11 0 0 +l 2 1700 550 1680 550 +Q 11 0 0 +l 2 1690 550 1690 550 +T 1485 0 10 0 3 D +T 1060 0 10 0 3 C +T 635 0 10 0 3 B +T 185 0 10 0 3 A +T 1685 420 10 0 3 3 +T 1685 695 10 0 3 2 +T 1685 970 10 0 3 1 +T 185 1085 10 0 3 A +T 635 1085 10 0 3 B +T 1060 1085 10 0 3 C +T 1485 1085 10 0 3 D +T 10 930 10 0 3 1 +T 10 655 10 0 3 2 +T 10 380 10 0 3 3 +T 10 105 10 0 3 4 +l 2 1680 20 1680 1080 +Q 11 0 0 +l 2 1700 275 1680 275 +Q 11 0 0 +l 2 1680 1080 20 1080 +Q 11 0 0 +l 2 20 840 20 1080 +Q 11 0 0 +l 2 20 20 20 835 +Q 11 0 0 +T 1685 135 10 0 3 4 +T 1200 40 20 4 9 Author +Q 10 5 0 +T 1440 40 20 4 9 Date +Q 10 5 0 +b 1200 40 1680 60 +Q 11 0 0 +b 1440 40 1680 60 +Q 11 0 0 +b 1200 60 1680 80 +Q 11 0 0 +b 1200 60 1680 80 +Q 11 0 0 +T 1200 60 20 4 9 Name +Q 10 5 0 +T 1540 20 20 4 9 Sheet +Q 10 5 0 +l 2 1680 20 20 20 +Q 11 0 0 +T 1620 20 20 4 9 of +Q 10 5 0 +T 1630 0 20 4 9 SizeB +Q 10 5 0 +b 1200 20 1680 40 +Q 11 0 0 +b 1540 20 1680 40 +Q 11 0 0 +b 1200 80 1680 150 +Q 11 0 0 +E diff --git a/xschem_library/viewdraw_import/test/sym/Sheet_a2.1 b/xschem_library/viewdraw_import/test/sym/Sheet_a2.1 new file mode 100755 index 00000000..2b7107e6 --- /dev/null +++ b/xschem_library/viewdraw_import/test/sym/Sheet_a2.1 @@ -0,0 +1,61 @@ +V 51 +K 281696395000 s_a2 +|R 10:12_12-29-21 +Y 3 +D 0 0 1 1 +Z 10 +i 0 +l 2 1175 1630 1175 1653 +Q 11 0 0 +T 2050 60 10 0 9 Name +T 2320 20 10 0 9 Size A2 +T 2240 40 10 0 9 Sheet +T 2250 60 10 0 9 Author +T 2080 40 10 0 9 Library +l 2 2180 60 2180 80 +Q 11 0 0 +b 2000 60 2320 80 +Q 11 0 0 +b 2000 40 2320 60 +Q 11 0 0 +b 2000 20 2320 40 +Q 11 0 0 +T 2010 20 10 0 3 Date +T 2334 1420 10 0 9 1 +l 2 2322 835 2320 835 +Q 11 0 0 +l 2 2338 1240 2320 1240 +Q 11 0 0 +l 2 2338 435 2320 435 +Q 11 0 0 +l 2 2338 835 2320 835 +Q 11 0 0 +T 2334 1060 10 0 9 2 +T 2334 635 10 0 9 3 +T 2334 215 10 0 9 4 +T 15 216 10 0 9 4 +T 15 636 10 0 9 3 +T 15 1061 10 0 9 2 +T 15 1446 10 0 9 1 +l 2 20 435 0 435 +Q 11 0 0 +l 2 20 1240 0 1240 +Q 11 0 0 +c -45 841 0 +l 2 20 835 0 835 +Q 11 0 0 +l 2 1740 0 1740 20 +Q 11 0 0 +l 2 595 0 595 20 +Q 11 0 0 +l 2 1170 0 1170 20 +Q 11 0 0 +l 2 595 1630 595 1653 +Q 11 0 0 +l 2 1750 1630 1750 1653 +Q 11 0 0 +b 2000 80 2320 150 +Q 11 0 0 +b 20 20 2320 1630 +Q 11 0 0 +E diff --git a/xschem_library/viewdraw_import/test/sym/Sheet_a4.1 b/xschem_library/viewdraw_import/test/sym/Sheet_a4.1 new file mode 100755 index 00000000..17ee05e5 --- /dev/null +++ b/xschem_library/viewdraw_import/test/sym/Sheet_a4.1 @@ -0,0 +1,26 @@ +V 51 +K 271258457200 sheet_a4 +|R 10:12_12-29-21 +Y 3 +D 0 0 1 1 +Z 10 +i 0 +T 882 51 10 0 9 Name +T 1159 10 10 0 9 Size A4 +T 1079 30 10 0 9 Sheet +T 1089 50 10 0 9 Author +T 912 31 10 0 9 Library +l 2 1019 50 1019 70 +Q 11 0 0 +b 839 50 1159 70 +Q 11 0 0 +b 839 30 1159 50 +Q 11 0 0 +b 839 10 1159 30 +Q 11 0 0 +T 842 11 10 0 3 Date +b 839 70 1159 140 +Q 11 0 0 +b 10 10 1159 816 +Q 11 0 0 +E diff --git a/xschem_library/viewdraw_import/test/sym/Sheet_b.1 b/xschem_library/viewdraw_import/test/sym/Sheet_b.1 new file mode 100755 index 00000000..7e370db2 --- /dev/null +++ b/xschem_library/viewdraw_import/test/sym/Sheet_b.1 @@ -0,0 +1,82 @@ +V 51 +K 428522324900 sheet_b +|R 10:13_12-29-21 +Y 3 +D 0 0 1 1 +Z 10 +i 0 +T 1410 60 10 0 9 Name +T 1680 20 10 0 9 Size B +T 1600 40 10 0 9 Sheet +l 2 1245 20 1245 0 +Q 11 0 0 +l 2 820 20 820 0 +Q 11 0 0 +l 2 395 20 395 0 +Q 11 0 0 +l 2 20 275 0 275 +Q 11 0 0 +l 2 20 550 0 550 +Q 11 0 0 +l 2 20 825 0 825 +Q 11 0 0 +l 2 400 1100 400 1080 +Q 11 0 0 +l 2 825 1100 825 1080 +Q 11 0 0 +l 2 1250 1075 1250 1075 +l 2 1250 1075 1250 1075 +l 2 1250 1075 1250 1075 +l 2 1245 1085 1245 1085 +l 2 1245 1085 1245 1085 +l 2 1250 1085 1250 1085 +l 2 1265 1075 1265 1075 +l 2 1250 1100 1250 1080 +Q 11 0 0 +l 2 1700 825 1680 825 +Q 11 0 0 +l 2 1700 550 1680 550 +Q 11 0 0 +l 2 1690 550 1690 550 +T 1610 60 10 0 9 Author +T 1440 40 10 0 9 Library +T 1485 0 10 0 3 D +T 1060 0 10 0 3 C +T 635 0 10 0 3 B +T 185 0 10 0 3 A +T 1685 145 10 0 3 4 +T 1685 420 10 0 3 3 +T 1685 695 10 0 3 2 +T 1685 970 10 0 3 1 +T 185 1085 10 0 3 A +T 635 1085 10 0 3 B +T 1060 1085 10 0 3 C +T 1485 1085 10 0 3 D +T 10 930 10 0 3 1 +T 10 655 10 0 3 2 +T 10 380 10 0 3 3 +T 10 105 10 0 3 4 +l 2 1680 20 1680 1080 +Q 11 0 0 +l 2 1700 275 1680 275 +Q 11 0 0 +l 2 1680 1080 20 1080 +Q 11 0 0 +l 2 20 840 20 1080 +Q 11 0 0 +l 2 20 20 20 835 +Q 11 0 0 +l 2 1680 20 20 20 +Q 11 0 0 +l 2 1540 60 1540 80 +Q 11 0 0 +b 1360 60 1680 80 +Q 11 0 0 +b 1360 40 1680 60 +Q 11 0 0 +b 1360 20 1680 40 +Q 11 0 0 +T 1370 20 10 0 3 Date +b 1360 80 1680 150 +Q 11 0 0 +E diff --git a/xschem_library/viewdraw_import/test/sym/VDD.1 b/xschem_library/viewdraw_import/test/sym/VDD.1 new file mode 100755 index 00000000..1b95f579 --- /dev/null +++ b/xschem_library/viewdraw_import/test/sym/VDD.1 @@ -0,0 +1,17 @@ +V 51 +K 311841422500 PWR +Y 4 +D 0 0 40 40 +Z 10 +i 4 +U 0 -10 10 0 9 0 NETNAME=VDD +U 40 30 4 0 9 0 VDD=3.3V +U 0 -20 10 0 9 0 PINORDER=VDD +P 4 20 0 20 30 0 1 0 +A 20 30 10 3 1 0 PINTYPE=OUT +L 30 30 10 0 9 1 1 0 VDD +Q 14 5 0 +b 18 0 22 4 +Q 4 1 0 +l 2 40 30 0 30 +E diff --git a/xschem_library/viewdraw_import/test/sym/VSS.1 b/xschem_library/viewdraw_import/test/sym/VSS.1 new file mode 100755 index 00000000..87d56517 --- /dev/null +++ b/xschem_library/viewdraw_import/test/sym/VSS.1 @@ -0,0 +1,18 @@ +V 50 +K 423963547100 GRND +Y 4 +D 0 0 40 40 +Z 10 +i 2 +U 0 -30 10 0 9 0 VSS=0V +U 0 -20 10 0 9 0 NETNAME=VSS +U 0 -10 10 0 9 0 PINORDER=VSS +P 1 20 40 20 16 0 0 0 +A 20 16 10 1 1 0 PINTYPE=OUT +L 26 10 4 0 9 1 1 0 VSS +b 18 36 22 40 +Q 4 1 0 +l 2 35 9 5 9 +l 2 40 16 0 16 +l 2 25 2 15 2 +E diff --git a/xschem_library/viewdraw_import/test/sym/bac/sh_b.1 b/xschem_library/viewdraw_import/test/sym/bac/sh_b.1 new file mode 100755 index 00000000..1734d3fe --- /dev/null +++ b/xschem_library/viewdraw_import/test/sym/bac/sh_b.1 @@ -0,0 +1,103 @@ +V 51 +K 428522324900 SHEET_B +Y 3 +D 0 0 1 1 +Z 10 +i 0 +T 1200 20 20 4 9 Library +Q 10 5 0 +l 2 1245 20 1245 0 +Q 11 0 0 +l 2 820 20 820 0 +Q 11 0 0 +l 2 395 20 395 0 +Q 11 0 0 +l 2 20 275 0 275 +Q 11 0 0 +l 2 20 550 0 550 +Q 11 0 0 +l 2 20 825 0 825 +Q 11 0 0 +l 2 400 1100 400 1080 +Q 11 0 0 +l 2 825 1100 825 1080 +Q 11 0 0 +l 2 1250 1075 1250 1075 +l 2 1250 1075 1250 1075 +l 2 1250 1075 1250 1075 +l 2 1245 1085 1245 1085 +l 2 1245 1085 1245 1085 +l 2 1250 1085 1250 1085 +l 2 1265 1075 1265 1075 +l 2 1250 1100 1250 1080 +Q 11 0 0 +l 2 1700 825 1680 825 +Q 11 0 0 +l 2 1700 550 1680 550 +Q 11 0 0 +l 2 1690 550 1690 550 +T 1485 0 10 0 3 D +T 1060 0 10 0 3 C +T 635 0 10 0 3 B +T 185 0 10 0 3 A +T 1685 420 10 0 3 3 +T 1685 695 10 0 3 2 +T 1685 970 10 0 3 1 +T 185 1085 10 0 3 A +T 635 1085 10 0 3 B +T 1060 1085 10 0 3 C +T 1485 1085 10 0 3 D +T 10 930 10 0 3 1 +T 10 655 10 0 3 2 +T 10 380 10 0 3 3 +T 10 105 10 0 3 4 +l 2 1680 20 1680 1080 +Q 11 0 0 +l 2 1700 275 1680 275 +Q 11 0 0 +l 2 1680 1080 20 1080 +Q 11 0 0 +l 2 20 840 20 1080 +Q 11 0 0 +l 2 20 20 20 835 +Q 11 0 0 +T 1580 130 20 0 9 Dolphin Technology, Inc. +Q 12 3 0 +T 1520 120 12 0 9 2025 Gateway Place Ste 270 +Q 10 3 0 +T 1490 110 12 0 9 San Jose, CA 95110 +Q 10 3 0 +T 1520 96 10 0 9 Proprietary and Confidential +Q 10 4 0 +T 1534 86 10 0 9 Donot copy without authorization +Q 10 4 0 +T 1685 135 10 0 3 4 +T 1200 40 20 4 9 Author +Q 10 5 0 +b 1200 80 1680 150 +Q 11 0 0 +T 1440 40 20 4 9 Date +Q 10 5 0 +b 1200 40 1680 60 +Q 11 0 0 +b 1440 40 1680 60 +Q 11 0 0 +b 1200 60 1680 80 +Q 11 0 0 +b 1200 60 1680 80 +Q 11 0 0 +T 1200 60 20 4 9 Name +Q 10 5 0 +T 1540 20 20 4 9 Sheet +Q 10 5 0 +l 2 1680 20 20 20 +Q 11 0 0 +T 1620 20 20 4 9 of +Q 10 5 0 +T 1630 0 20 4 9 SizeB +Q 10 5 0 +b 1200 20 1680 40 +Q 11 0 0 +b 1540 20 1680 40 +Q 11 0 0 +E diff --git a/xschem_library/viewdraw_import/test/sym/bac/sheet_a2.1 b/xschem_library/viewdraw_import/test/sym/bac/sheet_a2.1 new file mode 100755 index 00000000..bfe793b8 --- /dev/null +++ b/xschem_library/viewdraw_import/test/sym/bac/sheet_a2.1 @@ -0,0 +1,70 @@ +V 50 +K 281696395000 s_a2 +Y 3 +D 0 0 1 1 +Z 10 +i 0 +l 2 1175 1630 1175 1653 +Q 11 0 0 +T 2254 86 10 0 9 Donot copy without authorization +Q 10 4 0 +T 2210 110 12 0 9 Milpitas, CA 95035 +Q 10 3 0 +T 2220 120 12 0 9 1603-A S. Main Street +Q 10 3 0 +T 2050 60 10 0 9 Name +T 2320 20 10 0 9 Size A2 +T 2240 40 10 0 9 Sheet +T 2250 60 10 0 9 Author +T 2240 96 10 0 9 Proprietary and Confidential +Q 10 4 0 +T 2080 40 10 0 9 Library +b 2000 80 2320 150 +Q 11 0 0 +T 2290 130 20 0 9 Dolphin Technology, Inc. +Q 12 3 0 +l 2 2180 60 2180 80 +Q 11 0 0 +b 2000 60 2320 80 +Q 11 0 0 +b 2000 40 2320 60 +Q 11 0 0 +b 2000 20 2320 40 +Q 11 0 0 +T 2010 20 10 0 3 Date +T 2334 1420 10 0 9 1 +l 2 2322 835 2320 835 +Q 11 0 0 +l 2 2338 1240 2320 1240 +Q 11 0 0 +l 2 2338 435 2320 435 +Q 11 0 0 +l 2 2338 835 2320 835 +Q 11 0 0 +T 2334 1060 10 0 9 2 +T 2334 635 10 0 9 3 +T 2334 215 10 0 9 4 +T 15 216 10 0 9 4 +T 15 636 10 0 9 3 +T 15 1061 10 0 9 2 +T 15 1446 10 0 9 1 +l 2 20 435 0 435 +Q 11 0 0 +l 2 20 1240 0 1240 +Q 11 0 0 +c -45 841 0 +l 2 20 835 0 835 +Q 11 0 0 +l 2 1740 0 1740 20 +Q 11 0 0 +l 2 595 0 595 20 +Q 11 0 0 +l 2 1170 0 1170 20 +Q 11 0 0 +b 20 20 2320 1630 +Q 11 0 0 +l 2 595 1630 595 1653 +Q 11 0 0 +l 2 1750 1630 1750 1653 +Q 11 0 0 +E diff --git a/xschem_library/viewdraw_import/test/sym/bac/sheet_a4.1 b/xschem_library/viewdraw_import/test/sym/bac/sheet_a4.1 new file mode 100755 index 00000000..c4648936 --- /dev/null +++ b/xschem_library/viewdraw_import/test/sym/bac/sheet_a4.1 @@ -0,0 +1,35 @@ +V 50 +K 271258457200 SHEET_A4 +Y 3 +D 0 0 1 1 +Z 10 +i 0 +T 1093 76 10 0 9 Donot copy without authorization +Q 10 4 0 +T 1049 100 12 0 9 Milpitas, CA 95035 +Q 10 3 0 +T 1059 110 12 0 9 1603-A S. Main Street +Q 10 3 0 +T 1079 86 10 0 9 Proprietary and Confidential +Q 10 4 0 +b 839 70 1159 140 +Q 11 0 0 +T 1129 120 20 0 9 Dolphin Technology, Inc. +Q 12 3 0 +T 882 51 10 0 9 Name +T 1159 10 10 0 9 Size A4 +T 1079 30 10 0 9 Sheet +T 1089 50 10 0 9 Author +T 912 31 10 0 9 Library +l 2 1019 50 1019 70 +Q 11 0 0 +b 839 50 1159 70 +Q 11 0 0 +b 839 30 1159 50 +Q 11 0 0 +b 839 10 1159 30 +Q 11 0 0 +T 842 11 10 0 3 Date +b 10 10 1159 816 +Q 11 0 0 +E diff --git a/xschem_library/viewdraw_import/test/sym/bac/sheet_b.1 b/xschem_library/viewdraw_import/test/sym/bac/sheet_b.1 new file mode 100755 index 00000000..e919c648 --- /dev/null +++ b/xschem_library/viewdraw_import/test/sym/bac/sheet_b.1 @@ -0,0 +1,91 @@ +V 50 +K 428522324900 SHEET_B +Y 3 +D 0 0 1 1 +Z 10 +i 0 +T 1614 86 10 0 9 Donot copy without authorization +Q 10 4 0 +T 1570 110 12 0 9 Milpitas, CA 95035 +Q 10 3 0 +T 1580 120 12 0 9 1603-A S. Main Street +Q 10 3 0 +T 1410 60 10 0 9 Name +T 1680 20 10 0 9 Size B +T 1600 40 10 0 9 Sheet +l 2 1245 20 1245 0 +Q 11 0 0 +l 2 820 20 820 0 +Q 11 0 0 +l 2 395 20 395 0 +Q 11 0 0 +l 2 20 275 0 275 +Q 11 0 0 +l 2 20 550 0 550 +Q 11 0 0 +l 2 20 825 0 825 +Q 11 0 0 +l 2 400 1100 400 1080 +Q 11 0 0 +l 2 825 1100 825 1080 +Q 11 0 0 +l 2 1250 1075 1250 1075 +l 2 1250 1075 1250 1075 +l 2 1250 1075 1250 1075 +l 2 1245 1085 1245 1085 +l 2 1245 1085 1245 1085 +l 2 1250 1085 1250 1085 +l 2 1265 1075 1265 1075 +l 2 1250 1100 1250 1080 +Q 11 0 0 +l 2 1700 825 1680 825 +Q 11 0 0 +l 2 1700 550 1680 550 +Q 11 0 0 +l 2 1690 550 1690 550 +T 1610 60 10 0 9 Author +T 1600 96 10 0 9 Proprietary and Confidential +Q 10 4 0 +T 1440 40 10 0 9 Library +T 1485 0 10 0 3 D +T 1060 0 10 0 3 C +T 635 0 10 0 3 B +T 185 0 10 0 3 A +T 1685 145 10 0 3 4 +T 1685 420 10 0 3 3 +T 1685 695 10 0 3 2 +T 1685 970 10 0 3 1 +T 185 1085 10 0 3 A +T 635 1085 10 0 3 B +T 1060 1085 10 0 3 C +T 1485 1085 10 0 3 D +T 10 930 10 0 3 1 +T 10 655 10 0 3 2 +T 10 380 10 0 3 3 +T 10 105 10 0 3 4 +l 2 1680 20 1680 1080 +Q 11 0 0 +l 2 1700 275 1680 275 +Q 11 0 0 +l 2 1680 1080 20 1080 +Q 11 0 0 +l 2 20 840 20 1080 +Q 11 0 0 +l 2 20 20 20 835 +Q 11 0 0 +l 2 1680 20 20 20 +Q 11 0 0 +b 1360 80 1680 150 +Q 11 0 0 +T 1650 130 20 0 9 Dolphin Technology, Inc. +Q 12 3 0 +l 2 1540 60 1540 80 +Q 11 0 0 +b 1360 60 1680 80 +Q 11 0 0 +b 1360 40 1680 60 +Q 11 0 0 +b 1360 20 1680 40 +Q 11 0 0 +T 1370 20 10 0 3 Date +E diff --git a/xschem_library/viewdraw_import/test/sym/dti_gen_inv.1 b/xschem_library/viewdraw_import/test/sym/dti_gen_inv.1 new file mode 100755 index 00000000..017e239e --- /dev/null +++ b/xschem_library/viewdraw_import/test/sym/dti_gen_inv.1 @@ -0,0 +1,36 @@ +V 50 +K 419708849300 INV +Y 0 +D 0 0 80 80 +Z 10 +i 6 +P 4 0 40 10 40 0 2 0 +A 0 40 10 0 3 0 #=1 +A 0 40 10 0 3 0 PINTYPE=IN +L 6 40 10 0 9 0 0 0 A +P 5 80 40 70 40 0 3 0 +A 80 40 10 0 9 0 #=2 +A 80 40 10 0 9 0 PINTYPE=OUT +L 72 40 10 0 9 0 0 0 Z +U 0 -20 10 0 9 0 M +U 84 4 10 0 9 0 LN=LND +U 84 54 10 0 9 0 LP=LPD +U 0 -50 10 0 9 0 ORDER=LN= LP= WN= WP= M= +U 0 -40 10 0 9 0 PARNAM=LN=LND LP=LPD WN=WND WP=WPD +U 0 -30 10 0 9 0 PINOFF +U 38 36 10 0 9 3 REFDES=U? +U 0 -10 10 0 9 0 PINORDER=A Z +b 76 38 80 42 +Q 12 1 0 +b 0 38 4 42 +Q 12 1 0 +c 65 40 5 +Q 12 0 0 +l 2 10 15 60 40 +l 2 60 40 10 65 +l 2 10 15 10 65 +U 72 68 10 0 9 1 WP=WPD +Q 14 5 0 +U 72 58 10 0 9 1 WN=WND +Q 14 5 0 +E diff --git a/xschem_library/viewdraw_import/test/sym/dti_gen_tx.1 b/xschem_library/viewdraw_import/test/sym/dti_gen_tx.1 new file mode 100755 index 00000000..09651247 --- /dev/null +++ b/xschem_library/viewdraw_import/test/sym/dti_gen_tx.1 @@ -0,0 +1,40 @@ +V 50 +K 175113123700 EW_TXGATE +Y 0 +D 0 0 60 90 +Z 10 +i 4 +U 0 -60 10 0 9 0 PARNAM=WNA=WND WPA=WPD +U 90 70 10 0 9 1 WPA=WPD +Q 14 5 0 +U 90 80 10 0 9 1 WNA=WND +Q 14 5 0 +U 58 2 6 0 9 3 @NAME=TXGATE +Q 14 5 0 +U 0 -30 10 0 9 0 PINORDER=PG NG IN OUT +U 0 -20 10 0 9 0 ORDER=WNA= WPA= M= +U 0 -10 10 0 9 0 M +P 4 30 0 30 14 0 1 0 +L 30 6 10 0 9 0 0 0 NG +P 3 30 90 30 74 0 0 0 +L 30 74 10 0 9 0 0 0 PG +P 2 60 40 50 40 0 3 0 +L 52 40 10 0 9 0 0 0 OUT +P 1 0 40 10 40 0 2 0 +L 6 38 10 0 9 0 0 0 IN +b 28 86 32 90 +Q 4 1 0 +b 28 0 32 4 +Q 4 1 0 +b 56 38 60 42 +Q 4 1 0 +b 0 38 4 42 +Q 4 1 0 +c 94 52 0 +c 30 70 0 +c 30 70 4 +Q 12 0 0 +l 2 50 66 10 66 +l 2 50 14 10 14 +b 10 20 50 60 +E diff --git a/xschem_library/viewdraw_import/test/sym/nm.1 b/xschem_library/viewdraw_import/test/sym/nm.1 new file mode 100755 index 00000000..14f7ade9 --- /dev/null +++ b/xschem_library/viewdraw_import/test/sym/nm.1 @@ -0,0 +1,50 @@ +V 51 +K 96375159890 dti_nm +Y 1 +D 0 0 60 60 +Z 10 +i 21 +P 20 50 60 50 42 0 0 0 +A 50 42 10 1 1 0 #=1 +A 50 42 10 1 1 0 PINTYPE=BI +L 50 57 10 0 9 0 0 0 D +P 19 50 0 50 18 0 1 0 +A 50 18 10 3 1 0 #=3 +A 50 18 10 3 1 0 PINTYPE=BI +L 50 13 10 0 9 0 0 0 S +U 0 -130 10 0 9 0 NRS +U 0 -120 10 0 9 0 NRD +U 0 -110 10 0 9 0 PD +U 0 -100 10 0 9 0 PS +U 0 -90 10 0 9 0 AD +U 0 -70 10 0 9 0 AS +U 0 -40 10 0 9 0 GEO +U 0 -20 10 0 9 0 PINOFF +U 0 -10 10 0 9 0 BULK=VSS +U 0 -80 10 0 9 0 ORDER=BULK$ MODEL$ L= W= AS= AD= PS= PD= NRD= NRS= M= GEO= +U 0 -60 10 0 9 0 MODEL=NM +U 0 -50 10 0 9 0 PREFIX=M +U 90 20 10 0 9 0 REFDES=N? +U 0 -30 10 0 9 0 PINORDER=D G S +U 31 42 10 0 9 1 L=LND +Q 14 5 0 +U 34 49 10 0 9 1 W=WND +Q 14 5 0 +b 48 0 52 4 +Q 4 1 0 +b 48 56 52 60 +Q 4 1 0 +b 0 28 4 32 +Q 4 1 0 +l 2 32 14 32 46 +l 2 26 18 26 42 +l 2 50 18 32 18 +l 2 50 42 32 42 +T 40 12 5 0 9 S +P 21 0 30 26 30 0 2 0 +A -4 30 10 0 3 0 #=2 +A -4 30 10 0 3 0 PINTYPE=IN +L 6 30 10 0 9 0 0 0 G +U 0 10 10 0 3 0 M +Q 14 5 0 +E \ No newline at end of file diff --git a/xschem_library/viewdraw_import/test/sym/pm.1 b/xschem_library/viewdraw_import/test/sym/pm.1 new file mode 100755 index 00000000..ee53295e --- /dev/null +++ b/xschem_library/viewdraw_import/test/sym/pm.1 @@ -0,0 +1,53 @@ +V 51 +K 196512789100 pm +Y 1 +D 0 0 60 60 +Z 10 +i 17 +P 14 50 0 50 18 0 1 0 +A 50 18 10 3 1 0 #=3 +A 50 18 10 3 1 0 PINTYPE=BI +L 50 13 10 0 9 0 0 0 D +P 12 0 30 18 30 0 2 0 +A -12 30 10 0 3 0 #=2 +A -12 30 10 0 3 0 PINTYPE=IN +L -2 30 10 0 9 0 0 0 G +P 15 50 60 50 42 0 0 0 +A 50 42 10 1 1 0 #=1 +A 50 42 10 1 1 0 PINTYPE=BI +L 50 57 10 0 9 0 0 0 S +U 0 -90 10 0 9 0 NRS +U 0 -80 10 0 9 0 NRD +U 0 -70 10 0 9 0 PD +U 0 -60 10 0 9 0 PS +U 0 -50 10 0 9 0 AD +U 0 -40 10 0 9 0 AS +U 0 -30 10 0 9 0 GEO +U 0 -20 10 0 9 0 BULK=VDD +U 0 -10 10 0 9 0 PINOFF +U 148 -10 10 0 9 0 PINORDER=D G S +U 148 0 10 0 9 0 PREFIX=M +U 84 18 10 0 9 0 REFDES=P? +U 148 20 10 0 9 0 ORDER=BULK$ MODEL$ L= W= AS= AD= PS= PD= NRS= NRD= M= GEO= +U 33 25 8 0 3 0 MODEL=PM +Q 14 5 0 +b 48 0 52 4 +Q 4 1 0 +b 48 56 52 60 +Q 4 1 0 +b 0 28 4 32 +Q 4 1 0 +c 22 30 4 +Q 12 0 0 +l 2 32 14 32 46 +l 2 26 18 26 42 +l 2 50 18 32 18 +l 2 50 42 32 42 +U 0 51 10 0 3 1 W=WPD +Q 14 5 0 +U 1 43 10 0 3 1 L=LPD +Q 14 5 0 +T 50 41 5 0 9 S +U 1 5 10 0 3 0 M +Q 14 5 0 +E diff --git a/xschem_library/viewdraw_import/test/test.dproj b/xschem_library/viewdraw_import/test/test.dproj new file mode 100755 index 00000000..22e2db3d --- /dev/null +++ b/xschem_library/viewdraw_import/test/test.dproj @@ -0,0 +1,29 @@ + + + + +
+ +
+
+ +
+ + + +
+
+ +
+ + +
+
+ +
+ + +
+
+
+
diff --git a/xschem_library/viewdraw_import/test/viewdraw.ini b/xschem_library/viewdraw_import/test/viewdraw.ini new file mode 100755 index 00000000..c66c2f84 --- /dev/null +++ b/xschem_library/viewdraw_import/test/viewdraw.ini @@ -0,0 +1,207 @@ +| Viewdraw initialization file for ePD Version 2004 +| +| (c) Copyright 2004 Mentor Graphics Corporation +|| +| +| Set the default display characteristics for each object +| +| +| Colors +| ------------------------------------------------------------------ +| +| 0 Black | 4 Red | 8 Gray | 12 Lt. Red +| 1 Blue | 5 Magenta | 9 Lt. Blue | 13 Lt. Magenta +| 2 Green | 6 Brown | 10 Lt. Green | 14 Yellow +| 3 Cyan | 7 Lt. Gray | 11 Lt. Cyan | 15 White +| +| +| Fillstyles: +| ------------------------------------------------------------------ +| +| 0 Hollow | 1 Solid +| +| +| Object Color Fillstyle Linestyle +| or Font +| ------ ----- --------- --------- +| +NET 12 1 0 +COMPONENT 15 0 0 +ATTRIBUTE 14 0 0 +LABEL 15 0 0 +PIN 3 0 0 +BOX 2 0 0 +LINE 2 0 0 +CIRCLE 2 0 0 +ARC 2 0 0 +TEXT 10 0 0 +| +| +| set the display characteristics for the selection layer +| +SELECTION_LAYER 15 0 0 +| +| set the display characteristics for the border layer +| +BORDER_LAYER 15 0 0 +| +| set the display characteristics for the value layer +| +VALUE_LAYER 7 0 0 +| +| set the display characteristics for the annotation layer +| +ANNO_LAYER 7 0 0 +| +| set the background color +| +|5.0 WINDOW_BACKGROUND 0 0 0 +| + +| +| Default values +| + +GRID 10 | Grid spacing (units) + +DOTSIZE 5 | Solder dot radius (units) +BUS_DOTSIZE 12 | Bus solder dot radius (units) +BOXSIZE 5 | Dangling joint box width (units) +TEXTSIZE 10 | Text size (units) +TEXTORIGIN 3 | Text origin +BUSWIDTH 4 | Bus half-width (units) +BUBBLESIZE 5 | Bubble size on pins (units) + +AUTOLOG 10 | Autolog value (number of Viewdraw commands to + | hold before writing to log file) + +SDISTANCE 10 | Selection distance (units) +ADISTANCE 20 | Avoidance distance (units) + +SHEETSIZE 1 | Sheet size. + | 0 = ASIZE, 1 = BSIZE, 2 = CSIZE, 3 = DSIZE, + | 4 = ESIZE, 5 = A4, 6 = A3, 7 = A2, + | 8 = A1, 9 = A0 + | 10 = ZSIZE (requires width and height) + | Ex: SHEETSIZE 10 200 200 + +ROUTE 2 | Net routing. + | 0 = Straight, 1 = Orthogonal, 2 = Avoidance + +SCOPE 0 | Scope for labels 0 = Local, 1 = Global + +TEXT_THRESHOLD 3 | Threshold (units) + +NEW_ATTR_VIS 1 | New attribute and value visibility + | 1 = Name and value visible, + | 2 = Name only visible + | 3 = Value only visible + +BLOCKTYPE 0 | Default block type + | 0 = Composite, 1 = Module, 2 = annotate, 3 = pin + +UNDO 16 | number of commands to undo + +| +| Default modes. (1 = On or Yes; 0 = Off or No.) +| + +GRIDON 1 | Grid display. +BORDERON 1 | Border display. +HEADERON 1 | Header display. +COMPTEXTON 1 | Component text, labels and attributes. +TEXTON 1 | Text. +ATTRON 1 | Attributes +LABELON 1 | labels +DETAIL 1 | detail ** Changed at 5.0 ** +SNAPTOPIN 1 | snap to pin +UNIQUE_LABEL 0 | create unique labels on copy +VALUESON 1 | display simulation values (or generic b/a) +CONTEXT_WINDOW 0 | display context window ** Changed at 5.0 ** +NAMESON 0 | display internal names +SORTON 1 | alphabetically sort dialog entries +PNUMSON 1 | display pin numbers +RNUMSON 1 | display refdes +DEFSHEET 0 | search for sheet template for new sheets +XTRAERRS 1 | print out all errors in checker +DBOXON 0 | pick names from dialog boxes + +| +| Turning this on will enable case preservation for attribute values. This +| may sound interesting, but it can raise havoc with downstream tools, as +| well as with older tools that don't supprt mixed-case. +| +PRESERVE_CASE 0 | turn on case preservation + +| +| This is an example of how to add an attribute to the mixed case list. In +| this example, any attribute named DATASHEET would be allowed to have a +| mixed-case value. +| +| ALLOW_VALUE_MIXED DATASHEET + +|5.0 DB_ERR_VERBOSE 1 | verbose database reader error messages +|5.0 FUBPINTYPEON 1 | create PINTYPE att as FUB pins created +|5.0 SELNAMEON 0 | display selected object's name in LL + + +NETNAME VDD | Upon creation, VDD will have global scope. +NETNAME GND | Upon creation, GND will have global scope. + +|SYMBOL_QUALIFIERS \D | Demorgan +|SYMBOL_QUALIFIERS \C | Conventional +|SYMBOL_QUALIFIERS \A | Ansi +|SYMBOL_QUALIFIERS \P | Package + +ATTR_RESET SS#1 | Never copy this SCICARD attribute +ATTR_RESET SS#2 | Never copy this SCICARD attribute +ATTR_RESET ALL_ID | Never copy this ALLEGRO attribute +ATTR_RESET GEN_ID | Never copy this ALLEGRO attribute +ATTR_RESET DIFF_PAIR | Never copy the DIFF_PAIR attribute +ATTR_RESET REFDES SYMBOL_VALUE | Reset REFDES attribute value from symbol + +|8.0 SHOW_TOOLTIP_FOR REFDES +|8.0 COMPONENT_TOOLTIPS 1 + +|5.0 COARSE_GRID 0 +|5.0 DYNAMIC_XY 0 +|5.0 BEGIN_NETS_IN_SPACE 0 + +|5.0 ATTR_PROMOTE BIT + +|8.0 IO_PINS builtin:in.1 +|8.0 IO_PINS builtin:out.1 +|8.0 IO_PINS builtin:bi.1 +|8.0 ONSHEET_PINS builtin:onsheet.1 +|8.0 OFFSHEET_PINS builtin:offsheet.1 +|8.0 POWER_PINS builtin:pwr.1 +|8.0 GROUND_PINS builtin:gnd.1 +|8.1 SERIES_RESISTOR_SYM analog:res.1 +|8.1 PARALLEL_RESISTOR_SYM analog:res.2 +|8.1 CAPACITOR_SYM analog:cap.1 +|8.1 GROUND_SYM builtin:gnd.1 +|8.1 POWER_SYM builtin:pwr.1 + +| Design Directories +| ------------------ +| +| Format: DIR [DirType(s)] DirPath (LibName) +| +| DirType: p or pw - primary / writable +| w - writable (read/write) +| r - read-only +| m or rm - read-only megafile +| +| DirPath: directory specification ("." for current directory relative path) +| +| LibName: library name aka library alias or VHDL library name (optional) +| 32 characters or less. Must begin with a letter. +| +| examples: +| +| DIR [p] . +| DIR [r] /libs/74ls (vl74ls) +| DIR [r] /libs/builtin (builtin) +| DIR [w] ./under/development/alu (newalu) +| +DIR [p] . (test) diff --git a/xschem_library/viewdraw_import/test2/dti_28hc_6p5t_40_ffqx1.pdf b/xschem_library/viewdraw_import/test2/dti_28hc_6p5t_40_ffqx1.pdf new file mode 100755 index 00000000..6317fc66 Binary files /dev/null and b/xschem_library/viewdraw_import/test2/dti_28hc_6p5t_40_ffqx1.pdf differ diff --git a/xschem_library/viewdraw_import/test2/dti_28hc_6p5t_40_invx1.pdf b/xschem_library/viewdraw_import/test2/dti_28hc_6p5t_40_invx1.pdf new file mode 100755 index 00000000..8f76bbaa Binary files /dev/null and b/xschem_library/viewdraw_import/test2/dti_28hc_6p5t_40_invx1.pdf differ diff --git a/xschem_library/viewdraw_import/test2/dti_28hc_6p5t_40_nand2x1.pdf b/xschem_library/viewdraw_import/test2/dti_28hc_6p5t_40_nand2x1.pdf new file mode 100755 index 00000000..7b7d9191 Binary files /dev/null and b/xschem_library/viewdraw_import/test2/dti_28hc_6p5t_40_nand2x1.pdf differ diff --git a/xschem_library/viewdraw_import/test2/dti_28hc_6p5t_40_nor2x1.pdf b/xschem_library/viewdraw_import/test2/dti_28hc_6p5t_40_nor2x1.pdf new file mode 100755 index 00000000..8b055b26 Binary files /dev/null and b/xschem_library/viewdraw_import/test2/dti_28hc_6p5t_40_nor2x1.pdf differ diff --git a/xschem_library/viewdraw_import/test2/dti_gen_inv.pdf b/xschem_library/viewdraw_import/test2/dti_gen_inv.pdf new file mode 100755 index 00000000..258d285c Binary files /dev/null and b/xschem_library/viewdraw_import/test2/dti_gen_inv.pdf differ diff --git a/xschem_library/viewdraw_import/test2/dti_gen_tx.pdf b/xschem_library/viewdraw_import/test2/dti_gen_tx.pdf new file mode 100755 index 00000000..232f8029 Binary files /dev/null and b/xschem_library/viewdraw_import/test2/dti_gen_tx.pdf differ diff --git a/xschem_library/viewdraw_import/test2/sch/dti_28hc_6p5t_40_ffqx1.1 b/xschem_library/viewdraw_import/test2/sch/dti_28hc_6p5t_40_ffqx1.1 new file mode 100755 index 00000000..6f491ee1 --- /dev/null +++ b/xschem_library/viewdraw_import/test2/sch/dti_28hc_6p5t_40_ffqx1.1 @@ -0,0 +1,416 @@ +V 51 +K 349782057500 umc_dti_sffqs11ux4 +Y 0 +D 0 0 2338 1653 +Z 7 +i 234 +I 139 test:SHEET_A2 1 0 0 0 1 ' +L 0 0 10 0 3 0 1 0 X1I139 +I 102 test:OUTPUT 1 2160 1010 0 1 ' +L 2190 1010 20 0 3 0 1 0 Q +C 104 1 9 0 +I 106 test:DTI_GEN_TX 1 1590 980 0 1 ' +A 1690 950 10 0 9 1 WNA=0.185 +Q 14 5 0 +A 1710 970 10 0 9 1 M=1 +Q 14 5 0 +A 1710 960 10 0 9 1 WPA=0.185 +L 1590 980 10 0 3 0 1 0 X1I106 +C 87 1 1 0 +C 105 5 2 0 +C 9 7 3 0 +C 6 8 4 0 +I 97 test:DTI_GEN_INV 1 2050 1160 4 1 ' +A 1988 1228 10 4 9 1 WP=0.1 +Q 14 5 0 +A 1988 1218 10 4 9 1 WN=0.1 +Q 14 5 0 +L 2050 1160 10 0 3 0 1 0 X1I97 +C 101 2 5 0 +C 105 3 4 0 +I 112 test:DTI_GEN_INV 1 1580 1370 3 1 ' +A 1638 1308 10 3 9 1 WN=0.185 +Q 14 5 0 +A 1648 1308 10 3 9 1 WP=0.1 +Q 14 5 0 +L 1580 1370 10 0 3 0 1 0 X1I112 +C 9 8 5 0 +C 6 15 4 0 +I 103 test:DTI_GEN_INV 1 1980 980 0 1 ' +A 2042 1038 10 0 9 1 WN=0.185 +Q 14 5 0 +A 2042 1058 10 0 9 1 M=1 +Q 14 5 0 +A 2042 1048 10 0 9 1 WP=0.185 +L 1980 980 10 0 3 0 1 0 X1I103 +C 104 2 5 0 +C 105 1 4 0 +I 88 test:DTI_GEN_INV 1 1400 980 0 1 ' +A 1462 1038 10 0 9 1 WN=0.185 +Q 14 5 0 +A 1462 1048 10 0 9 1 WP=0.185 +Q 14 5 0 +L 1400 980 10 0 3 0 1 0 X1I88 +A 1470 1060 10 0 9 1 M=1 +C 87 2 5 0 +C 187 4 4 0 +I 80 test:PMOS 1 1410 1190 4 1 ' +A 1360 1275 15 4 9 1 W=0.1 +Q 14 5 0 +A 1360 1260 15 4 9 1 L=LPD +Q 14 5 0 +L 1410 1190 10 0 3 0 1 0 M1I80 +C 87 6 12 0 +C 77 2 15 0 +C 78 2 14 0 +I 99 test:PMOS 1 1770 1050 0 1 ' +A 1820 1135 15 0 9 1 W=0.1 +Q 14 5 0 +A 1820 1120 15 0 9 1 L=LPD +Q 14 5 0 +L 1770 1050 10 0 3 0 1 0 M1I99 +C 6 11 12 0 +C 92 2 15 0 +C 105 6 14 0 +I 96 test:PMOS 1 1890 1150 4 1 ' +A 1840 1235 15 4 9 1 W=0.1 +Q 14 5 0 +A 1840 1220 15 4 9 1 L=LPD +Q 14 5 0 +L 1890 1150 10 0 3 0 1 0 M1I96 +C 101 1 12 0 +C 91 2 15 0 +C 92 1 14 0 +I 210 test:PMOS 1 1080 1160 0 1 ' +A 1130 1230 15 0 9 1 L=LPD +Q 14 5 0 +A 1130 1245 15 0 9 1 W=0.185 +Q 14 5 0 +L 1080 1160 10 0 3 0 1 0 M1I210 +C 6 2 12 0 +C 204 2 15 0 +C 203 2 14 0 +I 83 test:PMOS 1 1410 1090 4 1 ' +A 1360 1175 15 4 9 1 W=0.1 +Q 14 5 0 +A 1360 1160 15 4 9 1 L=LPD +Q 14 5 0 +L 1410 1090 10 0 3 0 1 0 M1I83 +C 9 11 12 0 +C 78 1 15 0 +C 187 7 14 0 +I 213 test:PMOS 1 1080 1060 0 1 ' +A 1130 1145 15 0 9 1 W=0.185 +Q 14 5 0 +A 1130 1130 15 0 9 1 L=LPD +Q 14 5 0 +L 1080 1060 10 0 3 0 1 0 M1I213 +C 161 1 12 0 +C 203 1 15 0 +C 187 1 14 0 +I 170 test:PMOS 1 600 1030 0 1 ' +A 650 1115 15 0 9 1 W=0.185 +Q 14 5 0 +A 650 1100 15 0 9 1 L=LPD +Q 14 5 0 +L 600 1030 10 0 3 0 1 0 M1I170 +C 190 5 12 0 +C 178 2 15 0 +C 161 6 14 0 +I 84 test:NMOS 1 1290 790 0 1 ' +A 1340 860 15 0 9 1 L=LND +Q 14 5 0 +A 1340 875 15 0 9 1 W=0.1 +Q 14 5 0 +L 1290 790 10 0 3 0 1 0 M1I84 +C 6 5 12 0 +C 79 2 17 0 +C 187 5 16 0 +I 81 test:NMOS 1 1410 690 4 1 ' +A 1360 760 15 4 9 1 L=LND +Q 14 5 0 +A 1360 775 15 4 9 1 W=0.1 +Q 14 5 0 +L 1410 690 10 0 3 0 1 0 M1I81 +C 87 3 12 0 +C 76 2 17 0 +C 79 1 16 0 +I 98 test:NMOS 1 1770 740 0 1 ' +A 1820 810 15 0 9 1 L=LND +Q 14 5 0 +A 1820 825 15 0 9 1 W=0.1 +Q 14 5 0 +L 1770 740 10 0 3 0 1 0 M1I98 +C 9 5 12 0 +C 94 2 17 0 +C 105 2 16 0 +I 95 test:NMOS 1 1890 640 4 1 ' +A 1770 710 15 4 9 1 L=LND +Q 14 5 0 +A 1770 725 15 4 9 1 W=0.1 +Q 14 5 0 +L 1890 640 10 0 3 0 1 0 M1I95 +C 101 5 12 0 +C 111 2 17 0 +C 94 1 16 0 +I 211 test:NMOS 1 1080 790 0 1 ' +A 1130 860 15 0 9 1 L=LND +Q 14 5 0 +A 1130 875 15 0 9 1 W=0.185 +Q 14 5 0 +L 1080 790 10 0 3 0 1 0 M1I211 +C 9 1 12 0 +C 205 2 17 0 +C 206 2 16 0 +I 212 test:NMOS 1 1080 890 0 1 ' +A 1130 975 15 0 9 1 W=0.185 +Q 14 5 0 +A 1130 960 15 0 9 1 L=LND +Q 14 5 0 +L 1080 890 10 0 3 0 1 0 M1I212 +C 161 3 12 0 +C 206 1 17 0 +C 187 3 16 0 +I 171 test:NMOS 1 600 910 0 1 ' +A 650 980 15 0 9 1 L=LND +Q 14 5 0 +A 650 995 15 0 9 1 W=0.185 +Q 14 5 0 +L 600 910 10 0 3 0 1 0 M1I171 +C 190 6 12 0 +C 173 2 17 0 +C 161 8 16 0 +I 208 test:VSS 1 1120 750 0 1 ' +C 205 1 1 0 +I 110 test:VSS 1 1810 600 0 1 ' +C 111 1 1 0 +I 82 test:VSS 1 1330 650 0 1 ' +C 76 1 1 0 +I 174 test:VSS 1 640 870 0 1 ' +C 173 1 1 0 +I 207 test:VDD 1 1120 1260 0 1 ' +C 204 1 4 0 +I 100 test:VDD 1 1810 1250 0 1 ' +C 91 1 4 0 +I 85 test:VDD 1 1330 1290 0 1 ' +C 77 1 4 0 +I 179 test:VDD 1 640 1130 0 1 ' +C 178 1 4 0 +I 169 test:INPUT 1 260 1020 0 1 ' +L 220 1020 20 0 3 0 1 0 D +C 190 3 8 0 +I 125 test:INPUT 1 260 1390 0 1 ' +L 220 1390 20 0 3 0 1 0 CK +C 6 4 8 0 +N 78 +J 1350 1190 2 +J 1350 1190 2 +S 1 2 +L 1350 1190 10 0 3 0 1 0 1N78 +N 203 +J 1140 1160 2 +J 1140 1160 2 +S 1 2 +L 1140 1160 10 0 3 0 1 0 1N203 +N 204 +J 1140 1260 2 +J 1140 1260 2 +S 1 2 +N 205 +J 1140 790 2 +J 1140 790 2 +S 1 2 +N 206 +J 1140 890 2 +J 1140 890 2 +S 1 2 +L 1140 890 10 0 3 0 1 0 1N206 +N 178 +J 660 1130 2 +J 660 1130 2 +S 2 1 +N 111 +J 1830 640 2 +J 1830 640 2 +S 1 2 +N 91 +J 1830 1250 2 +J 1830 1250 2 +S 1 2 +N 92 +J 1830 1150 2 +J 1830 1150 2 +S 1 2 +L 1830 1150 10 0 3 0 1 0 1N92 +N 94 +J 1830 740 2 +J 1830 740 2 +S 2 1 +L 1830 740 10 0 3 0 1 0 1N94 +N 76 +J 1350 690 2 +J 1350 690 2 +S 1 2 +N 77 +J 1350 1290 2 +J 1350 1290 2 +S 1 2 +N 79 +J 1350 790 2 +J 1350 790 2 +S 1 2 +L 1350 790 10 0 3 0 1 0 1N79 +N 190 +J 560 960 3 +J 560 1080 3 +J 290 1030 2 +J 560 1030 5 +J 600 1080 2 +J 600 960 2 +S 1 6 +S 2 5 +S 3 4 +S 1 4 +S 4 2 +N 104 +J 2160 1020 2 +J 2060 1020 2 +S 2 1 +N 9 +J 1080 840 2 +J 850 840 3 +J 850 1360 3 +J 1570 1360 3 +J 1770 790 2 +J 1570 790 5 +J 1620 1070 2 +J 1620 1290 2 +J 1620 1140 5 +J 1570 1140 5 +J 1410 1140 2 +S 3 4 +S 6 4 +S 6 5 +S 6 10 +S 9 8 +L 1620 1280 10 3 3 0 1 0 CKB +S 10 9 +S 11 10 +S 7 9 +S 2 3 +S 2 1 +N 187 +J 1140 1060 2 +J 1140 1020 5 +J 1140 990 2 +J 1400 1020 2 +J 1350 890 2 +J 1350 1020 5 +J 1350 1090 2 +S 6 7 +S 5 6 +S 6 4 +S 3 2 +S 2 1 +S 2 6 +L 1200 1020 10 0 3 0 1 0 ML +N 6 +J 1060 1210 3 +J 1080 1210 2 +J 1060 1400 5 +J 290 1400 2 +J 1290 840 2 +J 1250 840 3 +J 1250 1400 5 +J 1620 980 2 +J 1620 940 3 +J 1740 940 3 +J 1770 1100 2 +J 1740 1100 5 +J 1740 1400 3 +J 1620 1400 5 +J 1620 1370 2 +S 1 2 +S 1 3 +S 4 3 +S 6 5 +S 7 14 +S 9 8 +S 9 10 +S 10 12 +S 12 11 +S 12 13 +S 14 13 +S 15 14 +S 3 7 +S 6 7 +N 105 +J 1980 1020 2 +J 1830 840 2 +J 2050 1200 2 +J 2090 1200 3 +J 1650 1020 2 +J 1830 1050 2 +J 1830 1020 5 +J 1830 860 5 +J 2090 860 3 +S 2 8 +S 3 4 +S 7 6 +S 8 7 +S 9 4 +S 8 9 +S 5 7 +L 1810 1020 10 0 3 0 1 0 XIDB +S 7 1 +N 101 +J 1890 1200 2 +J 1970 1200 2 +J 1940 1200 5 +J 1940 690 3 +J 1890 690 2 +S 1 3 +L 1900 1200 10 0 3 0 1 0 SL +S 3 2 +S 4 3 +S 5 4 +N 161 +J 1080 1110 2 +J 1050 1110 3 +J 1080 940 2 +J 1050 940 3 +J 1050 1020 5 +J 660 1030 2 +J 660 1020 5 +J 660 1010 2 +S 2 1 +S 5 2 +S 4 3 +S 4 5 +S 7 5 +S 7 6 +S 8 7 +L 1065 1110 10 0 3 0 1 0 1N161 +N 173 +J 660 910 2 +J 660 910 2 +S 1 2 +N 87 +J 1590 1020 2 +J 1480 1020 2 +J 1410 740 2 +J 1530 740 3 +J 1530 1020 5 +J 1410 1240 2 +J 1530 1240 3 +S 3 4 +S 6 7 +S 4 5 +S 2 5 +S 5 1 +L 1535 1020 10 0 3 0 1 0 RM +S 5 7 +l 2 1490 1070 1500 1420 +T 1200 1440 10 0 3 Re-name node to RM for removal sim. +T 100 60 10 0 3 Hiep confirm latest Oct03rd_2021 +E diff --git a/xschem_library/viewdraw_import/test2/sch/dti_28hc_6p5t_40_invx1.1 b/xschem_library/viewdraw_import/test2/sch/dti_28hc_6p5t_40_invx1.1 new file mode 100755 index 00000000..52c30eb4 --- /dev/null +++ b/xschem_library/viewdraw_import/test2/sch/dti_28hc_6p5t_40_invx1.1 @@ -0,0 +1,76 @@ +V 51 +K 250805739600 dti_and2x1 +Y 0 +D 0 0 1700 1100 +Z 1 +i 70 +I 63 test:NM 1 790 540 0 1 ' +L 790 600 10 0 3 0 1 0 N1 +A 790 591 10 0 3 1 W=0.185 +Q 14 5 0 +A 791 545 10 0 3 1 M=1 +Q 14 5 0 +A 791 584 10 0 3 1 L=0.04 +Q 14 5 0 +C 68 2 19 0 +A 840 558 10 3 1 3 #=3 +C 47 2 21 0 +A 786 570 10 0 3 3 #=2 +C 62 3 20 0 +A 840 582 10 1 1 3 #=1 +I 60 test:PM 1 790 680 0 1 ' +L 790 740 10 0 3 0 1 0 P1 +Q 14 5 0 +A 791 724 10 0 3 1 L=0.04 +Q 14 5 0 +A 790 731 10 0 3 1 W=0.185 +Q 14 5 0 +A 791 685 10 0 3 1 M=1 +Q 14 5 0 +C 61 2 15 0 +A 840 722 10 3 1 3 #=1 +C 47 6 12 0 +A 778 710 10 0 3 3 #=2 +C 62 4 14 0 +A 840 698 10 1 1 3 #=3 +I 59 test:VDD 1 820 740 0 1 ' +C 61 1 4 0 +N 61 +J 840 740 2 +J 840 740 2 +S 2 1 +I 67 test:VSS 1 820 500 0 1 ' +C 68 1 1 0 +N 68 +J 840 540 2 +J 840 540 2 +S 2 1 +N 62 +J 960 640 2 +J 840 640 5 +J 840 600 2 +J 840 680 2 +S 2 4 +S 3 2 +S 2 1 +I 1 test:SH_B 1 0 0 0 1 ' +L 0 0 10 0 3 0 1 0 X1I1 +I 70 test:OUTPUT 1 960 630 0 1 ' +L 990 630 20 0 3 0 1 0 Z +C 62 1 9 0 +N 47 +J 630 640 2 +J 790 570 2 +J 760 570 3 +J 760 640 5 +J 760 710 3 +J 790 710 2 +S 1 4 +S 3 2 +S 3 4 +S 4 5 +S 5 6 +I 55 test:INPUT 1 600 630 0 1 ' +L 580 630 20 0 3 0 1 0 A +C 47 1 8 0 +E diff --git a/xschem_library/viewdraw_import/test2/sch/dti_28hc_6p5t_40_nand2x1.1 b/xschem_library/viewdraw_import/test2/sch/dti_28hc_6p5t_40_nand2x1.1 new file mode 100755 index 00000000..83b6b03b --- /dev/null +++ b/xschem_library/viewdraw_import/test2/sch/dti_28hc_6p5t_40_nand2x1.1 @@ -0,0 +1,135 @@ +V 51 +K 250805739600 dti_and2x1 +Y 0 +D 0 0 1700 1100 +Z 1 +i 70 +I 57 test:INPUT 1 440 450 0 1 ' +L 420 450 20 0 3 0 1 0 B +C 56 4 8 0 +N 53 +J 840 730 2 +J 840 730 2 +S 2 1 +N 51 +J 710 730 2 +J 710 730 2 +S 2 1 +N 45 +J 710 430 2 +J 710 430 2 +S 2 1 +N 43 +J 710 490 2 +J 710 530 2 +S 1 2 +L 710 510 10 0 3 0 1 0 1N43 +I 1 test:SH_B 1 0 0 0 1 ' +L 0 0 10 0 3 0 1 0 X1I1 +I 50 test:VDD 1 690 730 0 1 ' +C 51 1 4 0 +I 55 test:INPUT 1 440 620 0 1 ' +L 420 620 20 0 3 0 1 0 A +C 54 2 8 0 +N 54 +J 630 630 5 +J 470 630 2 +J 660 700 2 +J 630 700 3 +J 660 560 2 +J 630 560 3 +S 4 3 +S 1 4 +S 6 1 +S 6 5 +S 2 1 +N 56 +J 760 700 3 +J 630 460 5 +J 760 460 3 +J 470 460 2 +J 660 460 2 +J 790 700 2 +S 1 6 +S 3 1 +S 4 2 +S 2 5 +S 2 3 +I 52 test:VDD 1 820 730 0 1 ' +C 53 1 4 0 +I 44 test:VSS 1 690 390 0 1 ' +C 45 1 1 0 +I 46 test:PM 1 660 670 0 1 ' +L 660 730 10 0 3 0 1 0 P1 +Q 14 5 0 +A 661 714 10 0 3 1 L=0.04 +Q 14 5 0 +A 660 721 10 0 3 1 W=0.185 +Q 14 5 0 +A 661 675 10 0 3 1 M=1 +Q 14 5 0 +C 51 2 15 0 +A 710 712 10 3 1 3 #=1 +C 54 3 12 0 +A 648 700 10 0 3 3 #=2 +C 47 3 14 0 +A 710 688 10 1 1 3 #=3 +I 49 test:PM 1 790 670 0 1 ' +L 790 730 10 0 3 0 1 0 P2 +A 790 721 10 0 3 1 W=0.185 +Q 14 5 0 +A 791 675 10 0 3 1 M=1 +Q 14 5 0 +A 791 714 10 0 3 1 L=0.04 +Q 14 5 0 +C 47 5 14 0 +A 840 688 10 1 1 3 #=3 +C 56 6 12 0 +A 778 700 10 0 3 3 #=2 +C 53 2 15 0 +A 840 712 10 3 1 3 #=1 +N 47 +J 970 630 2 +J 710 590 2 +J 710 670 2 +J 710 630 5 +J 840 670 2 +J 840 630 5 +S 6 1 +S 2 4 +S 4 3 +S 4 6 +S 6 5 +I 70 test:OUTPUT 1 970 620 0 1 ' +L 1000 620 20 0 3 0 1 0 Z +C 47 1 9 0 +I 42 test:NM 1 660 430 0 1 ' +L 660 490 10 0 3 0 1 0 N2 +A 660 481 10 0 3 1 W=0.185 +Q 14 5 0 +A 661 435 10 0 3 1 M=1 +Q 14 5 0 +A 661 474 10 0 3 1 L=0.04 +Q 14 5 0 +C 43 1 20 0 +A 710 472 10 1 1 3 #=1 +C 56 5 21 0 +A 656 460 10 0 3 3 #=2 +C 45 2 19 0 +A 710 448 10 3 1 3 #=3 +I 41 test:NM 1 660 530 0 1 ' +L 660 590 10 0 3 0 1 0 N1 +Q 14 5 0 +A 661 574 10 0 3 1 L=0.04 +Q 14 5 0 +A 660 581 10 0 3 1 W=0.185 +Q 14 5 0 +A 661 535 10 0 3 1 M=1 +Q 14 5 0 +C 43 2 19 0 +A 710 548 10 3 1 3 #=3 +C 54 5 21 0 +A 656 560 10 0 3 3 #=2 +C 47 2 20 0 +A 710 572 10 1 1 3 #=1 +E diff --git a/xschem_library/viewdraw_import/test2/sch/dti_28hc_6p5t_40_nor2x1.1 b/xschem_library/viewdraw_import/test2/sch/dti_28hc_6p5t_40_nor2x1.1 new file mode 100755 index 00000000..9633dac0 --- /dev/null +++ b/xschem_library/viewdraw_import/test2/sch/dti_28hc_6p5t_40_nor2x1.1 @@ -0,0 +1,135 @@ +V 51 +K 250805739600 dti_and2x1 +Y 0 +D 0 0 1700 1100 +Z 1 +i 78 +N 78 +J 710 510 2 +J 710 510 2 +S 2 1 +I 77 test:VSS 1 690 470 0 1 ' +C 78 1 1 0 +N 72 +J 710 810 2 +J 710 820 2 +S 1 2 +N 71 +J 710 750 2 +J 710 710 2 +S 2 1 +L 710 730 10 0 3 0 1 0 1N71 +N 45 +J 850 510 2 +J 850 510 2 +S 2 1 +I 1 test:SH_B 1 0 0 0 1 ' +L 0 0 10 0 3 0 1 0 X1I1 +I 55 test:INPUT 1 440 600 0 1 ' +L 420 600 20 0 3 0 1 0 A +C 54 2 8 0 +N 54 +J 630 610 5 +J 470 610 2 +J 660 680 2 +J 630 680 3 +J 660 540 2 +J 630 540 3 +S 4 3 +S 1 4 +S 6 1 +S 6 5 +S 2 1 +I 46 test:PM 1 660 650 0 1 ' +L 660 710 10 0 3 0 1 0 P1 +Q 14 5 0 +A 661 694 10 0 3 1 L=0.04 +Q 14 5 0 +A 660 701 10 0 3 1 W=0.185 +Q 14 5 0 +A 661 655 10 0 3 1 M=1 +Q 14 5 0 +C 71 2 15 0 +A 710 692 10 3 1 3 #=1 +C 54 3 12 0 +A 648 680 10 0 3 3 #=2 +C 47 3 14 0 +A 710 668 10 1 1 3 #=3 +I 41 test:NM 1 660 510 0 1 ' +L 660 570 10 0 3 0 1 0 N1 +Q 14 5 0 +A 661 554 10 0 3 1 L=0.04 +Q 14 5 0 +A 660 561 10 0 3 1 W=0.185 +Q 14 5 0 +A 661 515 10 0 3 1 M=1 +Q 14 5 0 +C 78 2 19 0 +A 710 528 10 3 1 3 #=3 +C 54 5 21 0 +A 656 540 10 0 3 3 #=2 +C 47 2 20 0 +A 710 552 10 1 1 3 #=1 +I 50 test:VDD 1 690 820 0 1 ' +C 72 2 4 0 +I 74 test:INPUT 1 440 770 0 1 ' +L 420 770 20 0 3 0 1 0 B +C 56 3 8 0 +I 42 test:NM 1 800 510 0 1 ' +L 800 570 10 0 3 0 1 0 N2 +A 800 561 10 0 3 1 W=0.185 +Q 14 5 0 +A 801 515 10 0 3 1 M=1 +Q 14 5 0 +A 801 554 10 0 3 1 L=0.04 +Q 14 5 0 +C 47 6 20 0 +A 850 552 10 1 1 3 #=1 +C 56 6 21 0 +A 796 540 10 0 3 3 #=2 +C 45 2 19 0 +A 850 528 10 3 1 3 #=3 +I 44 test:VSS 1 830 470 0 1 ' +C 45 1 1 0 +N 56 +J 770 780 3 +J 630 780 5 +J 470 780 2 +J 660 780 2 +J 770 540 3 +J 800 540 2 +S 5 1 +S 3 2 +S 2 4 +S 5 6 +S 2 1 +N 47 +J 1100 610 2 +J 710 570 2 +J 710 650 2 +J 710 610 5 +J 850 610 5 +J 850 570 2 +S 5 1 +S 2 4 +S 4 3 +S 4 5 +S 6 5 +I 70 test:OUTPUT 1 1100 600 0 1 ' +L 1130 600 20 0 3 0 1 0 Z +C 47 1 9 0 +I 49 test:PM 1 660 750 0 1 ' +L 660 810 10 0 3 0 1 0 P2 +A 660 801 10 0 3 1 W=0.185 +Q 14 5 0 +A 661 755 10 0 3 1 M=1 +Q 14 5 0 +A 661 794 10 0 3 1 L=0.04 +Q 14 5 0 +C 71 1 14 0 +A 710 768 10 1 1 3 #=3 +C 56 4 12 0 +A 648 780 10 0 3 3 #=2 +C 72 1 15 0 +A 710 792 10 3 1 3 #=1 +E diff --git a/xschem_library/viewdraw_import/test2/sch/dti_gen_inv.1 b/xschem_library/viewdraw_import/test2/sch/dti_gen_inv.1 new file mode 100755 index 00000000..aba42316 --- /dev/null +++ b/xschem_library/viewdraw_import/test2/sch/dti_gen_inv.1 @@ -0,0 +1,67 @@ +V 51 +K 419708849300 INV +Y 0 +D 0 0 1700 1100 +Z 1 +i 18 +I 16 test:INPUT 1 640 600 0 1 ' +C 7 1 8 0 +I 18 test:OUTPUT 1 930 600 0 1 ' +C 5 1 9 0 +I 4 test:NMOS 1 780 464 0 1 ' +A 818 547 10 0 9 1 W=WN +A 819 536 10 0 9 1 L=LN +A 810 524 10 0 9 3 M +L 780 464 10 0 3 0 1 0 M1I4 +C 7 6 12 0 +C 13 3 17 0 +C 5 4 16 0 +I 3 test:PMOS 1 780 634 0 1 ' +A 821 717 10 0 9 1 W=WP +A 820 709 10 0 9 1 L=LP +A 810 699 10 0 9 3 M +L 780 634 10 0 3 0 1 0 M1I3 +C 7 5 12 0 +C 10 3 15 0 +C 5 3 14 0 +I 9 test:VDD 1 820 734 0 1 ' +C 10 1 4 0 +I 12 test:VSS 1 820 424 0 1 ' +C 13 1 1 0 +I 2 test:SHEET_B 1 0 0 0 1 ' +L 0 0 10 0 3 0 1 0 X1I2 +N 13 +J 840 464 2 +J 840 460 3 +J 840 464 2 +S 2 1 +S 2 3 +N 10 +J 840 734 2 +J 840 730 3 +J 840 734 2 +S 2 1 +S 2 3 +N 7 +J 670 610 2 +J 760 610 5 +J 760 684 3 +J 760 514 3 +J 780 684 2 +J 780 514 2 +S 4 2 +S 3 5 +S 2 3 +S 4 6 +S 1 2 +L 710 610 10 0 9 0 1 0 A +N 5 +J 930 610 2 +J 840 610 5 +J 840 634 2 +J 840 564 2 +S 4 2 +S 2 3 +S 2 1 +L 880 610 10 0 9 0 1 0 Z +E diff --git a/xschem_library/viewdraw_import/test2/sch/dti_gen_tx.1 b/xschem_library/viewdraw_import/test2/sch/dti_gen_tx.1 new file mode 100755 index 00000000..5f1c7a9c --- /dev/null +++ b/xschem_library/viewdraw_import/test2/sch/dti_gen_tx.1 @@ -0,0 +1,69 @@ +V 51 +K 175113123700 EW_TXGATE +Y 0 +D 0 0 1169 826 +Z 5 +i 15 +I 2 test:NMOS 1 600 370 1 1 ' +A 510 415 10 1 9 1 W=WNA +L 600 370 10 0 3 0 1 0 M1I2 +C 14 3 12 0 +C 6 6 17 0 +C 4 6 16 0 +I 3 test:PMOS 1 500 570 3 1 ' +A 591 527 10 3 9 1 W=WPA +L 500 570 10 0 3 0 1 0 M1I3 +C 11 3 12 0 +C 6 3 15 0 +C 4 1 14 0 +I 10 test:OUTPUT 1 730 460 0 1 ' +L 790 470 10 0 9 0 1 0 OUT +C 6 1 9 0 +I 12 test:INPUT 1 340 600 0 1 ' +L 340 610 10 0 9 0 1 0 PG +C 11 1 8 0 +I 8 test:INPUT 1 340 460 0 1 ' +L 340 470 10 0 9 0 1 0 IN +C 4 3 8 0 +I 13 test:INPUT 1 340 310 0 1 ' +L 340 320 10 0 9 0 1 0 NG +C 14 1 8 0 +I 1 test:SHEET_A4 1 0 0 0 1 ' +L 0 0 10 0 3 0 1 0 X1I1 +N 14 +J 370 320 2 +J 550 320 3 +J 550 370 2 +S 2 3 +S 1 2 +N 11 +J 370 610 2 +J 550 610 3 +J 550 570 2 +S 1 2 +S 3 2 +N 6 +J 730 470 2 +J 620 470 5 +J 600 510 2 +J 620 510 3 +J 620 430 3 +J 600 430 2 +S 2 1 +S 5 2 +S 3 4 +S 2 4 +S 6 5 +N 4 +J 500 510 2 +J 480 510 3 +J 370 470 2 +J 480 470 5 +J 480 430 3 +J 500 430 2 +S 2 1 +S 4 2 +S 3 4 +S 5 4 +S 5 6 +E diff --git a/xschem_library/viewdraw_import/test2/sym/INPUT.1 b/xschem_library/viewdraw_import/test2/sym/INPUT.1 new file mode 100755 index 00000000..905fece4 --- /dev/null +++ b/xschem_library/viewdraw_import/test2/sym/INPUT.1 @@ -0,0 +1,26 @@ +V 50 +K 360680165500 INPUT +Y 4 +D 0 0 30 20 +Z 10 +i 8 +P 8 30 10 25 10 0 3 0 +A 30 10 10 0 9 0 PINTYPE=IN +L 17 7 5 0 9 0 1 0 IN +Q 14 0 0 +U 0 -20 10 0 9 0 IN +U 0 -10 10 0 9 0 PINORDER=IN +b 28 9 30 11 +Q 4 1 0 +l 2 19 5 25 10 +l 2 25 10 19 15 +l 2 19 15 2 15 +l 3 19 5 19 5 2 5 +l 2 27 10 20 4 +l 2 2 5 2 15 +l 2 1 16 1 16 +l 2 27 10 20 16 +l 2 20 16 1 16 +l 2 20 4 1 4 +l 2 1 4 1 16 +E diff --git a/xschem_library/viewdraw_import/test2/sym/NMOS.1 b/xschem_library/viewdraw_import/test2/sym/NMOS.1 new file mode 100755 index 00000000..04e09104 --- /dev/null +++ b/xschem_library/viewdraw_import/test2/sym/NMOS.1 @@ -0,0 +1,47 @@ +V 51 +K 62580629890 nmos +Y 1 +D 0 0 100 100 +Z 10 +i 18 +P 16 60 100 60 65 0 0 0 +A 60 65 10 1 1 0 #=1 +A 60 65 10 1 1 0 PINTYPE=BI +L 60 80 10 0 9 0 0 0 D +P 17 60 0 60 35 0 1 0 +A 60 35 10 3 1 0 #=3 +A 60 35 10 3 1 0 PINTYPE=BI +L 60 20 10 0 9 0 0 0 S +U 0 -130 10 0 9 0 NRS +U 0 -120 10 0 9 0 NRD +U 0 -110 10 0 9 0 PD +U 0 -100 10 0 9 0 PS +U 0 -90 10 0 9 0 AD +U 0 -70 10 0 9 0 AS +U 0 -40 10 0 9 0 GEO +U 0 -20 10 0 9 0 PINOFF +U 0 -10 10 0 9 0 BULK=VSS +U 50 85 10 0 9 1 W=WND +U 0 -80 10 0 9 0 ORDER=BULK$ MODEL$ L= W= AS= AD= PS= PD= NRD= NRS= M= GEO= +U 10 60 10 0 9 3 M +U 0 -60 10 0 9 0 MODEL=NM +U 0 -50 10 0 9 0 PREFIX=M +U 90 20 10 0 9 0 REFDES=N? +U 0 -30 10 0 9 0 PINORDER=D G S +U 49 72 10 0 9 1 L=LND +T 60 10 5 0 9 S +b 58 0 62 4 +Q 4 1 0 +b 58 96 62 100 +Q 4 1 0 +b 0 48 4 52 +Q 4 1 0 +l 2 40 30 40 70 +l 2 30 35 30 65 +P 12 0 50 30 50 0 2 0 +A -10 50 10 0 3 0 #=2 +A -10 50 10 0 3 0 PINTYPE=IN +L 10 50 10 0 9 0 0 0 G +l 2 60 65 40 65 +l 2 60 35 40 35 +E diff --git a/xschem_library/viewdraw_import/test2/sym/OUTPUT.1 b/xschem_library/viewdraw_import/test2/sym/OUTPUT.1 new file mode 100755 index 00000000..77149bcd --- /dev/null +++ b/xschem_library/viewdraw_import/test2/sym/OUTPUT.1 @@ -0,0 +1,25 @@ +V 50 +K 360680165500 INPUT +Y 4 +D 0 0 30 20 +Z 10 +i 10 +P 9 0 10 4 10 0 2 0 +A 0 10 10 0 3 0 PINTYPE=OUT +L 23 7 5 0 9 0 1 0 OUT +U 0 -20 10 0 9 0 OUT +U 0 -10 10 0 9 0 PINORDER=OUT +b 0 9 2 11 +Q 4 1 0 +l 2 22 5 28 10 +l 2 28 10 22 15 +l 2 22 15 5 15 +l 3 22 5 22 5 5 5 +l 2 30 10 23 4 +l 2 5 5 5 15 +l 2 4 16 4 16 +l 2 30 10 23 16 +l 2 23 16 4 16 +l 2 23 4 4 4 +l 2 4 4 4 16 +E diff --git a/xschem_library/viewdraw_import/test2/sym/PMOS.1 b/xschem_library/viewdraw_import/test2/sym/PMOS.1 new file mode 100755 index 00000000..439756c6 --- /dev/null +++ b/xschem_library/viewdraw_import/test2/sym/PMOS.1 @@ -0,0 +1,49 @@ +V 51 +K 196507574900 pmos +Y 1 +D 0 0 100 100 +Z 10 +i 17 +U 0 -90 10 0 9 0 NRS +U 0 -80 10 0 9 0 NRD +U 0 -70 10 0 9 0 PD +U 0 -60 10 0 9 0 PS +U 0 -50 10 0 9 0 AD +U 0 -40 10 0 9 0 AS +U 0 -30 10 0 9 0 GEO +U 0 -20 10 0 9 0 BULK=VDD +U 0 -10 10 0 9 0 PINOFF +U 148 -10 10 0 9 0 PINORDER=D G S +U 148 0 10 0 9 0 PREFIX=M +U 84 18 10 0 9 0 REFDES=P? +U 148 20 10 0 9 0 ORDER=BULK$ MODEL$ L= W= AS= AD= PS= PD= NRS= NRD= M= GEO= +U 148 30 10 0 9 0 MODEL=PM +U 10 65 10 0 9 3 M +U 49 83 10 0 9 1 W=WPD +U 50 75 10 0 9 1 L=LPD +P 14 60 0 60 35 0 1 0 +A 60 35 10 3 1 0 #=3 +A 60 35 10 3 1 0 PINTYPE=BI +L 60 30 10 0 9 0 0 0 D +P 15 60 100 60 65 0 0 0 +A 60 65 10 1 1 0 #=1 +A 60 65 10 1 1 0 PINTYPE=BI +L 60 80 10 0 9 0 0 0 S +T 70 80 5 0 9 S +b 58 0 62 4 +Q 4 1 0 +b 58 96 62 100 +Q 4 1 0 +b 0 48 4 52 +Q 4 1 0 +l 2 40 30 40 70 +l 2 60 35 40 35 +l 2 60 65 40 65 +l 2 30 35 30 65 +c 23 50 7 +Q 12 0 0 +P 12 0 50 16 50 0 2 0 +A -14 50 10 0 3 0 #=2 +A -14 50 10 0 3 0 PINTYPE=IN +L -4 50 10 0 9 0 0 0 G +E diff --git a/xschem_library/viewdraw_import/test2/sym/SH_B.1 b/xschem_library/viewdraw_import/test2/sym/SH_B.1 new file mode 100755 index 00000000..b89aa0d5 --- /dev/null +++ b/xschem_library/viewdraw_import/test2/sym/SH_B.1 @@ -0,0 +1,94 @@ +V 51 +K 428522324900 SHEET_B +|R 10:12_12-29-21 +Y 3 +D 0 0 1 1 +Z 10 +i 0 +T 1200 20 20 4 9 Library +Q 10 5 0 +l 2 1245 20 1245 0 +Q 11 0 0 +l 2 820 20 820 0 +Q 11 0 0 +l 2 395 20 395 0 +Q 11 0 0 +l 2 20 275 0 275 +Q 11 0 0 +l 2 20 550 0 550 +Q 11 0 0 +l 2 20 825 0 825 +Q 11 0 0 +l 2 400 1100 400 1080 +Q 11 0 0 +l 2 825 1100 825 1080 +Q 11 0 0 +l 2 1250 1075 1250 1075 +l 2 1250 1075 1250 1075 +l 2 1250 1075 1250 1075 +l 2 1245 1085 1245 1085 +l 2 1245 1085 1245 1085 +l 2 1250 1085 1250 1085 +l 2 1265 1075 1265 1075 +l 2 1250 1100 1250 1080 +Q 11 0 0 +l 2 1700 825 1680 825 +Q 11 0 0 +l 2 1700 550 1680 550 +Q 11 0 0 +l 2 1690 550 1690 550 +T 1485 0 10 0 3 D +T 1060 0 10 0 3 C +T 635 0 10 0 3 B +T 185 0 10 0 3 A +T 1685 420 10 0 3 3 +T 1685 695 10 0 3 2 +T 1685 970 10 0 3 1 +T 185 1085 10 0 3 A +T 635 1085 10 0 3 B +T 1060 1085 10 0 3 C +T 1485 1085 10 0 3 D +T 10 930 10 0 3 1 +T 10 655 10 0 3 2 +T 10 380 10 0 3 3 +T 10 105 10 0 3 4 +l 2 1680 20 1680 1080 +Q 11 0 0 +l 2 1700 275 1680 275 +Q 11 0 0 +l 2 1680 1080 20 1080 +Q 11 0 0 +l 2 20 840 20 1080 +Q 11 0 0 +l 2 20 20 20 835 +Q 11 0 0 +T 1685 135 10 0 3 4 +T 1200 40 20 4 9 Author +Q 10 5 0 +T 1440 40 20 4 9 Date +Q 10 5 0 +b 1200 40 1680 60 +Q 11 0 0 +b 1440 40 1680 60 +Q 11 0 0 +b 1200 60 1680 80 +Q 11 0 0 +b 1200 60 1680 80 +Q 11 0 0 +T 1200 60 20 4 9 Name +Q 10 5 0 +T 1540 20 20 4 9 Sheet +Q 10 5 0 +l 2 1680 20 20 20 +Q 11 0 0 +T 1620 20 20 4 9 of +Q 10 5 0 +T 1630 0 20 4 9 SizeB +Q 10 5 0 +b 1200 20 1680 40 +Q 11 0 0 +b 1540 20 1680 40 +Q 11 0 0 +b 1200 80 1680 150 +Q 11 0 0 +E diff --git a/xschem_library/viewdraw_import/test2/sym/Sheet_a2.1 b/xschem_library/viewdraw_import/test2/sym/Sheet_a2.1 new file mode 100755 index 00000000..2b7107e6 --- /dev/null +++ b/xschem_library/viewdraw_import/test2/sym/Sheet_a2.1 @@ -0,0 +1,61 @@ +V 51 +K 281696395000 s_a2 +|R 10:12_12-29-21 +Y 3 +D 0 0 1 1 +Z 10 +i 0 +l 2 1175 1630 1175 1653 +Q 11 0 0 +T 2050 60 10 0 9 Name +T 2320 20 10 0 9 Size A2 +T 2240 40 10 0 9 Sheet +T 2250 60 10 0 9 Author +T 2080 40 10 0 9 Library +l 2 2180 60 2180 80 +Q 11 0 0 +b 2000 60 2320 80 +Q 11 0 0 +b 2000 40 2320 60 +Q 11 0 0 +b 2000 20 2320 40 +Q 11 0 0 +T 2010 20 10 0 3 Date +T 2334 1420 10 0 9 1 +l 2 2322 835 2320 835 +Q 11 0 0 +l 2 2338 1240 2320 1240 +Q 11 0 0 +l 2 2338 435 2320 435 +Q 11 0 0 +l 2 2338 835 2320 835 +Q 11 0 0 +T 2334 1060 10 0 9 2 +T 2334 635 10 0 9 3 +T 2334 215 10 0 9 4 +T 15 216 10 0 9 4 +T 15 636 10 0 9 3 +T 15 1061 10 0 9 2 +T 15 1446 10 0 9 1 +l 2 20 435 0 435 +Q 11 0 0 +l 2 20 1240 0 1240 +Q 11 0 0 +c -45 841 0 +l 2 20 835 0 835 +Q 11 0 0 +l 2 1740 0 1740 20 +Q 11 0 0 +l 2 595 0 595 20 +Q 11 0 0 +l 2 1170 0 1170 20 +Q 11 0 0 +l 2 595 1630 595 1653 +Q 11 0 0 +l 2 1750 1630 1750 1653 +Q 11 0 0 +b 2000 80 2320 150 +Q 11 0 0 +b 20 20 2320 1630 +Q 11 0 0 +E diff --git a/xschem_library/viewdraw_import/test2/sym/Sheet_a4.1 b/xschem_library/viewdraw_import/test2/sym/Sheet_a4.1 new file mode 100755 index 00000000..17ee05e5 --- /dev/null +++ b/xschem_library/viewdraw_import/test2/sym/Sheet_a4.1 @@ -0,0 +1,26 @@ +V 51 +K 271258457200 sheet_a4 +|R 10:12_12-29-21 +Y 3 +D 0 0 1 1 +Z 10 +i 0 +T 882 51 10 0 9 Name +T 1159 10 10 0 9 Size A4 +T 1079 30 10 0 9 Sheet +T 1089 50 10 0 9 Author +T 912 31 10 0 9 Library +l 2 1019 50 1019 70 +Q 11 0 0 +b 839 50 1159 70 +Q 11 0 0 +b 839 30 1159 50 +Q 11 0 0 +b 839 10 1159 30 +Q 11 0 0 +T 842 11 10 0 3 Date +b 839 70 1159 140 +Q 11 0 0 +b 10 10 1159 816 +Q 11 0 0 +E diff --git a/xschem_library/viewdraw_import/test2/sym/Sheet_b.1 b/xschem_library/viewdraw_import/test2/sym/Sheet_b.1 new file mode 100755 index 00000000..7e370db2 --- /dev/null +++ b/xschem_library/viewdraw_import/test2/sym/Sheet_b.1 @@ -0,0 +1,82 @@ +V 51 +K 428522324900 sheet_b +|R 10:13_12-29-21 +Y 3 +D 0 0 1 1 +Z 10 +i 0 +T 1410 60 10 0 9 Name +T 1680 20 10 0 9 Size B +T 1600 40 10 0 9 Sheet +l 2 1245 20 1245 0 +Q 11 0 0 +l 2 820 20 820 0 +Q 11 0 0 +l 2 395 20 395 0 +Q 11 0 0 +l 2 20 275 0 275 +Q 11 0 0 +l 2 20 550 0 550 +Q 11 0 0 +l 2 20 825 0 825 +Q 11 0 0 +l 2 400 1100 400 1080 +Q 11 0 0 +l 2 825 1100 825 1080 +Q 11 0 0 +l 2 1250 1075 1250 1075 +l 2 1250 1075 1250 1075 +l 2 1250 1075 1250 1075 +l 2 1245 1085 1245 1085 +l 2 1245 1085 1245 1085 +l 2 1250 1085 1250 1085 +l 2 1265 1075 1265 1075 +l 2 1250 1100 1250 1080 +Q 11 0 0 +l 2 1700 825 1680 825 +Q 11 0 0 +l 2 1700 550 1680 550 +Q 11 0 0 +l 2 1690 550 1690 550 +T 1610 60 10 0 9 Author +T 1440 40 10 0 9 Library +T 1485 0 10 0 3 D +T 1060 0 10 0 3 C +T 635 0 10 0 3 B +T 185 0 10 0 3 A +T 1685 145 10 0 3 4 +T 1685 420 10 0 3 3 +T 1685 695 10 0 3 2 +T 1685 970 10 0 3 1 +T 185 1085 10 0 3 A +T 635 1085 10 0 3 B +T 1060 1085 10 0 3 C +T 1485 1085 10 0 3 D +T 10 930 10 0 3 1 +T 10 655 10 0 3 2 +T 10 380 10 0 3 3 +T 10 105 10 0 3 4 +l 2 1680 20 1680 1080 +Q 11 0 0 +l 2 1700 275 1680 275 +Q 11 0 0 +l 2 1680 1080 20 1080 +Q 11 0 0 +l 2 20 840 20 1080 +Q 11 0 0 +l 2 20 20 20 835 +Q 11 0 0 +l 2 1680 20 20 20 +Q 11 0 0 +l 2 1540 60 1540 80 +Q 11 0 0 +b 1360 60 1680 80 +Q 11 0 0 +b 1360 40 1680 60 +Q 11 0 0 +b 1360 20 1680 40 +Q 11 0 0 +T 1370 20 10 0 3 Date +b 1360 80 1680 150 +Q 11 0 0 +E diff --git a/xschem_library/viewdraw_import/test2/sym/VDD.1 b/xschem_library/viewdraw_import/test2/sym/VDD.1 new file mode 100755 index 00000000..1b95f579 --- /dev/null +++ b/xschem_library/viewdraw_import/test2/sym/VDD.1 @@ -0,0 +1,17 @@ +V 51 +K 311841422500 PWR +Y 4 +D 0 0 40 40 +Z 10 +i 4 +U 0 -10 10 0 9 0 NETNAME=VDD +U 40 30 4 0 9 0 VDD=3.3V +U 0 -20 10 0 9 0 PINORDER=VDD +P 4 20 0 20 30 0 1 0 +A 20 30 10 3 1 0 PINTYPE=OUT +L 30 30 10 0 9 1 1 0 VDD +Q 14 5 0 +b 18 0 22 4 +Q 4 1 0 +l 2 40 30 0 30 +E diff --git a/xschem_library/viewdraw_import/test2/sym/VSS.1 b/xschem_library/viewdraw_import/test2/sym/VSS.1 new file mode 100755 index 00000000..87d56517 --- /dev/null +++ b/xschem_library/viewdraw_import/test2/sym/VSS.1 @@ -0,0 +1,18 @@ +V 50 +K 423963547100 GRND +Y 4 +D 0 0 40 40 +Z 10 +i 2 +U 0 -30 10 0 9 0 VSS=0V +U 0 -20 10 0 9 0 NETNAME=VSS +U 0 -10 10 0 9 0 PINORDER=VSS +P 1 20 40 20 16 0 0 0 +A 20 16 10 1 1 0 PINTYPE=OUT +L 26 10 4 0 9 1 1 0 VSS +b 18 36 22 40 +Q 4 1 0 +l 2 35 9 5 9 +l 2 40 16 0 16 +l 2 25 2 15 2 +E diff --git a/xschem_library/viewdraw_import/test2/sym/dti_gen_inv.1 b/xschem_library/viewdraw_import/test2/sym/dti_gen_inv.1 new file mode 100755 index 00000000..017e239e --- /dev/null +++ b/xschem_library/viewdraw_import/test2/sym/dti_gen_inv.1 @@ -0,0 +1,36 @@ +V 50 +K 419708849300 INV +Y 0 +D 0 0 80 80 +Z 10 +i 6 +P 4 0 40 10 40 0 2 0 +A 0 40 10 0 3 0 #=1 +A 0 40 10 0 3 0 PINTYPE=IN +L 6 40 10 0 9 0 0 0 A +P 5 80 40 70 40 0 3 0 +A 80 40 10 0 9 0 #=2 +A 80 40 10 0 9 0 PINTYPE=OUT +L 72 40 10 0 9 0 0 0 Z +U 0 -20 10 0 9 0 M +U 84 4 10 0 9 0 LN=LND +U 84 54 10 0 9 0 LP=LPD +U 0 -50 10 0 9 0 ORDER=LN= LP= WN= WP= M= +U 0 -40 10 0 9 0 PARNAM=LN=LND LP=LPD WN=WND WP=WPD +U 0 -30 10 0 9 0 PINOFF +U 38 36 10 0 9 3 REFDES=U? +U 0 -10 10 0 9 0 PINORDER=A Z +b 76 38 80 42 +Q 12 1 0 +b 0 38 4 42 +Q 12 1 0 +c 65 40 5 +Q 12 0 0 +l 2 10 15 60 40 +l 2 60 40 10 65 +l 2 10 15 10 65 +U 72 68 10 0 9 1 WP=WPD +Q 14 5 0 +U 72 58 10 0 9 1 WN=WND +Q 14 5 0 +E diff --git a/xschem_library/viewdraw_import/test2/sym/dti_gen_tx.1 b/xschem_library/viewdraw_import/test2/sym/dti_gen_tx.1 new file mode 100755 index 00000000..09651247 --- /dev/null +++ b/xschem_library/viewdraw_import/test2/sym/dti_gen_tx.1 @@ -0,0 +1,40 @@ +V 50 +K 175113123700 EW_TXGATE +Y 0 +D 0 0 60 90 +Z 10 +i 4 +U 0 -60 10 0 9 0 PARNAM=WNA=WND WPA=WPD +U 90 70 10 0 9 1 WPA=WPD +Q 14 5 0 +U 90 80 10 0 9 1 WNA=WND +Q 14 5 0 +U 58 2 6 0 9 3 @NAME=TXGATE +Q 14 5 0 +U 0 -30 10 0 9 0 PINORDER=PG NG IN OUT +U 0 -20 10 0 9 0 ORDER=WNA= WPA= M= +U 0 -10 10 0 9 0 M +P 4 30 0 30 14 0 1 0 +L 30 6 10 0 9 0 0 0 NG +P 3 30 90 30 74 0 0 0 +L 30 74 10 0 9 0 0 0 PG +P 2 60 40 50 40 0 3 0 +L 52 40 10 0 9 0 0 0 OUT +P 1 0 40 10 40 0 2 0 +L 6 38 10 0 9 0 0 0 IN +b 28 86 32 90 +Q 4 1 0 +b 28 0 32 4 +Q 4 1 0 +b 56 38 60 42 +Q 4 1 0 +b 0 38 4 42 +Q 4 1 0 +c 94 52 0 +c 30 70 0 +c 30 70 4 +Q 12 0 0 +l 2 50 66 10 66 +l 2 50 14 10 14 +b 10 20 50 60 +E diff --git a/xschem_library/viewdraw_import/test2/sym/nm.1 b/xschem_library/viewdraw_import/test2/sym/nm.1 new file mode 100755 index 00000000..14f7ade9 --- /dev/null +++ b/xschem_library/viewdraw_import/test2/sym/nm.1 @@ -0,0 +1,50 @@ +V 51 +K 96375159890 dti_nm +Y 1 +D 0 0 60 60 +Z 10 +i 21 +P 20 50 60 50 42 0 0 0 +A 50 42 10 1 1 0 #=1 +A 50 42 10 1 1 0 PINTYPE=BI +L 50 57 10 0 9 0 0 0 D +P 19 50 0 50 18 0 1 0 +A 50 18 10 3 1 0 #=3 +A 50 18 10 3 1 0 PINTYPE=BI +L 50 13 10 0 9 0 0 0 S +U 0 -130 10 0 9 0 NRS +U 0 -120 10 0 9 0 NRD +U 0 -110 10 0 9 0 PD +U 0 -100 10 0 9 0 PS +U 0 -90 10 0 9 0 AD +U 0 -70 10 0 9 0 AS +U 0 -40 10 0 9 0 GEO +U 0 -20 10 0 9 0 PINOFF +U 0 -10 10 0 9 0 BULK=VSS +U 0 -80 10 0 9 0 ORDER=BULK$ MODEL$ L= W= AS= AD= PS= PD= NRD= NRS= M= GEO= +U 0 -60 10 0 9 0 MODEL=NM +U 0 -50 10 0 9 0 PREFIX=M +U 90 20 10 0 9 0 REFDES=N? +U 0 -30 10 0 9 0 PINORDER=D G S +U 31 42 10 0 9 1 L=LND +Q 14 5 0 +U 34 49 10 0 9 1 W=WND +Q 14 5 0 +b 48 0 52 4 +Q 4 1 0 +b 48 56 52 60 +Q 4 1 0 +b 0 28 4 32 +Q 4 1 0 +l 2 32 14 32 46 +l 2 26 18 26 42 +l 2 50 18 32 18 +l 2 50 42 32 42 +T 40 12 5 0 9 S +P 21 0 30 26 30 0 2 0 +A -4 30 10 0 3 0 #=2 +A -4 30 10 0 3 0 PINTYPE=IN +L 6 30 10 0 9 0 0 0 G +U 0 10 10 0 3 0 M +Q 14 5 0 +E \ No newline at end of file diff --git a/xschem_library/viewdraw_import/test2/sym/pm.1 b/xschem_library/viewdraw_import/test2/sym/pm.1 new file mode 100755 index 00000000..ee53295e --- /dev/null +++ b/xschem_library/viewdraw_import/test2/sym/pm.1 @@ -0,0 +1,53 @@ +V 51 +K 196512789100 pm +Y 1 +D 0 0 60 60 +Z 10 +i 17 +P 14 50 0 50 18 0 1 0 +A 50 18 10 3 1 0 #=3 +A 50 18 10 3 1 0 PINTYPE=BI +L 50 13 10 0 9 0 0 0 D +P 12 0 30 18 30 0 2 0 +A -12 30 10 0 3 0 #=2 +A -12 30 10 0 3 0 PINTYPE=IN +L -2 30 10 0 9 0 0 0 G +P 15 50 60 50 42 0 0 0 +A 50 42 10 1 1 0 #=1 +A 50 42 10 1 1 0 PINTYPE=BI +L 50 57 10 0 9 0 0 0 S +U 0 -90 10 0 9 0 NRS +U 0 -80 10 0 9 0 NRD +U 0 -70 10 0 9 0 PD +U 0 -60 10 0 9 0 PS +U 0 -50 10 0 9 0 AD +U 0 -40 10 0 9 0 AS +U 0 -30 10 0 9 0 GEO +U 0 -20 10 0 9 0 BULK=VDD +U 0 -10 10 0 9 0 PINOFF +U 148 -10 10 0 9 0 PINORDER=D G S +U 148 0 10 0 9 0 PREFIX=M +U 84 18 10 0 9 0 REFDES=P? +U 148 20 10 0 9 0 ORDER=BULK$ MODEL$ L= W= AS= AD= PS= PD= NRS= NRD= M= GEO= +U 33 25 8 0 3 0 MODEL=PM +Q 14 5 0 +b 48 0 52 4 +Q 4 1 0 +b 48 56 52 60 +Q 4 1 0 +b 0 28 4 32 +Q 4 1 0 +c 22 30 4 +Q 12 0 0 +l 2 32 14 32 46 +l 2 26 18 26 42 +l 2 50 18 32 18 +l 2 50 42 32 42 +U 0 51 10 0 3 1 W=WPD +Q 14 5 0 +U 1 43 10 0 3 1 L=LPD +Q 14 5 0 +T 50 41 5 0 9 S +U 1 5 10 0 3 0 M +Q 14 5 0 +E diff --git a/xschem_library/viewdraw_import/test2/test.dproj b/xschem_library/viewdraw_import/test2/test.dproj new file mode 100755 index 00000000..22e2db3d --- /dev/null +++ b/xschem_library/viewdraw_import/test2/test.dproj @@ -0,0 +1,29 @@ + + + + +
+ +
+
+ +
+ + + +
+
+ +
+ + +
+
+ +
+ + +
+
+
+
diff --git a/xschem_library/viewdraw_import/test2/viewdraw.ini b/xschem_library/viewdraw_import/test2/viewdraw.ini new file mode 100755 index 00000000..c66c2f84 --- /dev/null +++ b/xschem_library/viewdraw_import/test2/viewdraw.ini @@ -0,0 +1,207 @@ +| Viewdraw initialization file for ePD Version 2004 +| +| (c) Copyright 2004 Mentor Graphics Corporation +|| +| +| Set the default display characteristics for each object +| +| +| Colors +| ------------------------------------------------------------------ +| +| 0 Black | 4 Red | 8 Gray | 12 Lt. Red +| 1 Blue | 5 Magenta | 9 Lt. Blue | 13 Lt. Magenta +| 2 Green | 6 Brown | 10 Lt. Green | 14 Yellow +| 3 Cyan | 7 Lt. Gray | 11 Lt. Cyan | 15 White +| +| +| Fillstyles: +| ------------------------------------------------------------------ +| +| 0 Hollow | 1 Solid +| +| +| Object Color Fillstyle Linestyle +| or Font +| ------ ----- --------- --------- +| +NET 12 1 0 +COMPONENT 15 0 0 +ATTRIBUTE 14 0 0 +LABEL 15 0 0 +PIN 3 0 0 +BOX 2 0 0 +LINE 2 0 0 +CIRCLE 2 0 0 +ARC 2 0 0 +TEXT 10 0 0 +| +| +| set the display characteristics for the selection layer +| +SELECTION_LAYER 15 0 0 +| +| set the display characteristics for the border layer +| +BORDER_LAYER 15 0 0 +| +| set the display characteristics for the value layer +| +VALUE_LAYER 7 0 0 +| +| set the display characteristics for the annotation layer +| +ANNO_LAYER 7 0 0 +| +| set the background color +| +|5.0 WINDOW_BACKGROUND 0 0 0 +| + +| +| Default values +| + +GRID 10 | Grid spacing (units) + +DOTSIZE 5 | Solder dot radius (units) +BUS_DOTSIZE 12 | Bus solder dot radius (units) +BOXSIZE 5 | Dangling joint box width (units) +TEXTSIZE 10 | Text size (units) +TEXTORIGIN 3 | Text origin +BUSWIDTH 4 | Bus half-width (units) +BUBBLESIZE 5 | Bubble size on pins (units) + +AUTOLOG 10 | Autolog value (number of Viewdraw commands to + | hold before writing to log file) + +SDISTANCE 10 | Selection distance (units) +ADISTANCE 20 | Avoidance distance (units) + +SHEETSIZE 1 | Sheet size. + | 0 = ASIZE, 1 = BSIZE, 2 = CSIZE, 3 = DSIZE, + | 4 = ESIZE, 5 = A4, 6 = A3, 7 = A2, + | 8 = A1, 9 = A0 + | 10 = ZSIZE (requires width and height) + | Ex: SHEETSIZE 10 200 200 + +ROUTE 2 | Net routing. + | 0 = Straight, 1 = Orthogonal, 2 = Avoidance + +SCOPE 0 | Scope for labels 0 = Local, 1 = Global + +TEXT_THRESHOLD 3 | Threshold (units) + +NEW_ATTR_VIS 1 | New attribute and value visibility + | 1 = Name and value visible, + | 2 = Name only visible + | 3 = Value only visible + +BLOCKTYPE 0 | Default block type + | 0 = Composite, 1 = Module, 2 = annotate, 3 = pin + +UNDO 16 | number of commands to undo + +| +| Default modes. (1 = On or Yes; 0 = Off or No.) +| + +GRIDON 1 | Grid display. +BORDERON 1 | Border display. +HEADERON 1 | Header display. +COMPTEXTON 1 | Component text, labels and attributes. +TEXTON 1 | Text. +ATTRON 1 | Attributes +LABELON 1 | labels +DETAIL 1 | detail ** Changed at 5.0 ** +SNAPTOPIN 1 | snap to pin +UNIQUE_LABEL 0 | create unique labels on copy +VALUESON 1 | display simulation values (or generic b/a) +CONTEXT_WINDOW 0 | display context window ** Changed at 5.0 ** +NAMESON 0 | display internal names +SORTON 1 | alphabetically sort dialog entries +PNUMSON 1 | display pin numbers +RNUMSON 1 | display refdes +DEFSHEET 0 | search for sheet template for new sheets +XTRAERRS 1 | print out all errors in checker +DBOXON 0 | pick names from dialog boxes + +| +| Turning this on will enable case preservation for attribute values. This +| may sound interesting, but it can raise havoc with downstream tools, as +| well as with older tools that don't supprt mixed-case. +| +PRESERVE_CASE 0 | turn on case preservation + +| +| This is an example of how to add an attribute to the mixed case list. In +| this example, any attribute named DATASHEET would be allowed to have a +| mixed-case value. +| +| ALLOW_VALUE_MIXED DATASHEET + +|5.0 DB_ERR_VERBOSE 1 | verbose database reader error messages +|5.0 FUBPINTYPEON 1 | create PINTYPE att as FUB pins created +|5.0 SELNAMEON 0 | display selected object's name in LL + + +NETNAME VDD | Upon creation, VDD will have global scope. +NETNAME GND | Upon creation, GND will have global scope. + +|SYMBOL_QUALIFIERS \D | Demorgan +|SYMBOL_QUALIFIERS \C | Conventional +|SYMBOL_QUALIFIERS \A | Ansi +|SYMBOL_QUALIFIERS \P | Package + +ATTR_RESET SS#1 | Never copy this SCICARD attribute +ATTR_RESET SS#2 | Never copy this SCICARD attribute +ATTR_RESET ALL_ID | Never copy this ALLEGRO attribute +ATTR_RESET GEN_ID | Never copy this ALLEGRO attribute +ATTR_RESET DIFF_PAIR | Never copy the DIFF_PAIR attribute +ATTR_RESET REFDES SYMBOL_VALUE | Reset REFDES attribute value from symbol + +|8.0 SHOW_TOOLTIP_FOR REFDES +|8.0 COMPONENT_TOOLTIPS 1 + +|5.0 COARSE_GRID 0 +|5.0 DYNAMIC_XY 0 +|5.0 BEGIN_NETS_IN_SPACE 0 + +|5.0 ATTR_PROMOTE BIT + +|8.0 IO_PINS builtin:in.1 +|8.0 IO_PINS builtin:out.1 +|8.0 IO_PINS builtin:bi.1 +|8.0 ONSHEET_PINS builtin:onsheet.1 +|8.0 OFFSHEET_PINS builtin:offsheet.1 +|8.0 POWER_PINS builtin:pwr.1 +|8.0 GROUND_PINS builtin:gnd.1 +|8.1 SERIES_RESISTOR_SYM analog:res.1 +|8.1 PARALLEL_RESISTOR_SYM analog:res.2 +|8.1 CAPACITOR_SYM analog:cap.1 +|8.1 GROUND_SYM builtin:gnd.1 +|8.1 POWER_SYM builtin:pwr.1 + +| Design Directories +| ------------------ +| +| Format: DIR [DirType(s)] DirPath (LibName) +| +| DirType: p or pw - primary / writable +| w - writable (read/write) +| r - read-only +| m or rm - read-only megafile +| +| DirPath: directory specification ("." for current directory relative path) +| +| LibName: library name aka library alias or VHDL library name (optional) +| 32 characters or less. Must begin with a letter. +| +| examples: +| +| DIR [p] . +| DIR [r] /libs/74ls (vl74ls) +| DIR [r] /libs/builtin (builtin) +| DIR [w] ./under/development/alu (newalu) +| +DIR [p] . (test) diff --git a/xschem_library/viewdraw_import/test_case/Nmos.PNG b/xschem_library/viewdraw_import/test_case/Nmos.PNG new file mode 100755 index 00000000..31ffa9e6 Binary files /dev/null and b/xschem_library/viewdraw_import/test_case/Nmos.PNG differ diff --git a/xschem_library/viewdraw_import/test_case/Pmos.PNG b/xschem_library/viewdraw_import/test_case/Pmos.PNG new file mode 100755 index 00000000..70dc1e89 Binary files /dev/null and b/xschem_library/viewdraw_import/test_case/Pmos.PNG differ diff --git a/xschem_library/viewdraw_import/test_case/Vdd.PNG b/xschem_library/viewdraw_import/test_case/Vdd.PNG new file mode 100755 index 00000000..47f3882a Binary files /dev/null and b/xschem_library/viewdraw_import/test_case/Vdd.PNG differ diff --git a/xschem_library/viewdraw_import/test_case/Vss.PNG b/xschem_library/viewdraw_import/test_case/Vss.PNG new file mode 100755 index 00000000..77c36a27 Binary files /dev/null and b/xschem_library/viewdraw_import/test_case/Vss.PNG differ diff --git a/xschem_library/viewdraw_import/test_case/dti_28hc_6p5t_40_nand2x1.1.PNG b/xschem_library/viewdraw_import/test_case/dti_28hc_6p5t_40_nand2x1.1.PNG new file mode 100755 index 00000000..918b736c Binary files /dev/null and b/xschem_library/viewdraw_import/test_case/dti_28hc_6p5t_40_nand2x1.1.PNG differ diff --git a/xschem_library/viewdraw_import/test_case/input.PNG b/xschem_library/viewdraw_import/test_case/input.PNG new file mode 100755 index 00000000..cc2ee8d8 Binary files /dev/null and b/xschem_library/viewdraw_import/test_case/input.PNG differ diff --git a/xschem_library/viewdraw_import/test_case/output.PNG b/xschem_library/viewdraw_import/test_case/output.PNG new file mode 100755 index 00000000..b0f2bb11 Binary files /dev/null and b/xschem_library/viewdraw_import/test_case/output.PNG differ diff --git a/xschem_library/viewdraw_import/translate.sh b/xschem_library/viewdraw_import/translate.sh new file mode 100755 index 00000000..eae48266 --- /dev/null +++ b/xschem_library/viewdraw_import/translate.sh @@ -0,0 +1,26 @@ +#!/bin/sh +# viewdraw to xschem all-file translate script +# convert all examples in this test directory, put all results in current directory +# usage: +# ./translate.sh + +# process all files in sym/ directory +for i in $(ls test2/sym/*.1) +do + j=$(basename -s .1 $i) # remove path and extension + j=$(echo $j | tr '[:upper:]' '[:lower:]').sym #convert to lowercase, append .sym + # run the translator. 1st param is the ViewDraw file, 2nd param the Xschem reference library + ./viewdraw_import.awk $i xschem_lib > xschem_lib/$j +done + +# process all files in sch/ directory +for i in $(ls test2/sch/*.1) +do + j=$(basename -s .1 $i) # remove path and extension + j=$(echo $j | tr '[:upper:]' '[:lower:]').sch #convert to lowercase, append .sch + # run the translator. 1st param is the ViewDraw file, 2nd param the Xschem reference library + ./viewdraw_import.awk $i xschem_lib > xschem_lib/$j +done + +./viewdraw_import.awk rotation.1 xschem_lib > xschem_lib/rotation.sch +./viewdraw_import.awk align.1 xschem_lib > xschem_lib/align.sch diff --git a/xschem_library/viewdraw_import/viewdraw_import.awk b/xschem_library/viewdraw_import/viewdraw_import.awk new file mode 100755 index 00000000..f815446f --- /dev/null +++ b/xschem_library/viewdraw_import/viewdraw_import.awk @@ -0,0 +1,450 @@ +#!/usr/bin/awk -f +# +# File: viewdraw_import.awk +# +# This file is part of XSCHEM, +# a schematic capture and Spice/Vhdl/Verilog netlisting tool for circuit +# simulation. +# Copyright (C) 1998-2021 Stefan Frederik Schippers +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# +# Stefan Schippers, 20220113 +# Translate viewdraw schematic or symbol files to xschem +# Usage: +# /path/to/viewdraw_import.awk /path/to/viewdraw_schematic.1 > /path/to/xschem_schematic.sch +# /path/to/viewdraw_import.awk /path/to/viewdraw_symbol.1 > /path/to/xschem_symbol.sym +# +# if given is the name of the xschem reference lib instances will use +# to reference symbols. If not given no reference lib will be used and xschem will +# expect to find symbols in current directory. +# NOTES: everything is translated to lower case since in test examples mixed case is used + +BEGIN{ + debug = 1 + # define xschem lib instances will use to reference symbols + if(ARGC > 2) { + xschem_lib = ARGV[2] + ARGC = 2 + } else { + xschem_lib="" + } + # initialize xschem objects + xs_version = "v {xschem version=3.0.0 file_version=1.2 }\n" + xs_vhdl = "G {}\n" + xs_symbol = "K {}\n" + xs_verilog = "V {}\n" + xs_spice = "S {}\n" + xs_tedax = "E {}\n" + xs_texts = "" + xs_lines = "" + xs_circles = "" + xs_boxes = "" + xs_pins = "" + xs_attrs = "" + xs_pin_attr = "" + xs_nets = "" + xs_insts = "" +} + +# read viewdraw file, remove DOS cr characters +{ + gsub(/\r/, "") + line[lines++] = $0 +} + +# parse viewdraw file +END{ + for(lineno = 0; lineno < lines; lineno++) { + $0 = line[lineno] + if($1 ~/^T/){ + get_text() + } + if($1 ~/^l/) { + get_line() + } + if($1 ~/^b/){ + get_box() + } + if($1 ~/^c/){ + get_circle() + } + if($0 ~/^U/){ + get_attr() + } + if($1 ~/^P/) { + get_pin() + } + if($1 ~/^N/) { + get_net() + } + if($1 ~/^I/) { + get_inst() + } + } + # print xschem schematic/symbol + if(xs_version) printf "%s", xs_version + if(xs_vhdl) printf "%s", xs_vhdl + if(xs_symbol) printf "%s", xs_symbol + if(xs_verilog) printf "%s", xs_verilog + if(xs_spice) printf "%s", xs_spice + if(xs_tedax) printf "%s", xs_tedax + if(xs_lines) printf "%s", xs_lines + if(xs_texts) printf "%s", xs_texts + if(xs_circles) printf "%s", xs_circles + if(xs_boxes) printf "%s", xs_boxes + if(xs_pins) printf "%s", xs_pins + if(xs_attrs) printf "%s", xs_attrs + if(xs_pin_attrs) printf "%s", xs_pin_attrs + if(xs_nets) printf "%s", xs_nets + if(xs_insts) printf "%s", xs_insts +} + + +############################## +## functions +############################## + +# 1 2 3 4 5 6 7 8 9 +# id ref ? x y rot ? end +# I 112 test:DTI_GEN_INV 1 1580 1370 3 1 ' +function get_inst( name, attr, x, y, rot) +{ + name = $3 + x = xscale($5) + y = yscale($6) + rot = $7 + sub(/.*:/,"", name) + if(xschem_lib) name = xschem_lib "/" tolower(name) ".sym" + else name = tolower(name) ".sym" + xs_insts = xs_insts "C {" name "} " x " " y " " inst_rot_flip(rot) " {" attr "}\n" +} + +# 1 2 +# N 54 +function get_net( id, lab, p1, p2, x1, y1, x2, y2, joints, jointx, jointy) +{ + id = $2 + while(1) { + # 1 2 3 4 + # J 660 700 2 + if( next_line() ~ /^J/) { + $0 = line[++lineno] + ++joints + jointx[joints] = xscale($2) + jointy[joints] = yscale($3) + # 1 2 3 + # S 6 5 + } else if(next_line() ~/^S/) { + $0 = line[++lineno] + p1 = $2 + p2 = $3 + x1 = jointx[p1] + y1 = jointy[p1] + x2 = jointx[p2] + y2 = jointy[p2] + xs_nets = xs_nets "N " ordered(x1, y1, x2, y2) " {}\n" + # 1 2 3 4 5 6 7 8 9 10 + # x y size rot anchor scope visib invert txt + # L 420 620 20 0 3 0 1 0 A + } else if(next_line() ~/^L/) { + $0 = line[++lineno] + lab = $10 + } else { + break + } + } +} + + +# 1 2 3 4 5 6 7 +# T x y size rot anchor text +function get_text( x, y, size, rot, anchor, text) +{ + x = xscale($2) + y = yscale($3) + size = lenscale($4) + rot=$5 + anchor=$6 + text=get_fields_after(6) + xs_texts = xs_texts "T {" text "} " x " " y " " text_align(size, rot, anchor) "\n" +} + +# poly lines are supported, 0-length segments discarded +# 1 2 3 4 5 6 7 8 +# l line_color xstart ystart xend yend xmore ymore ... +function get_line(x1, y1, x2, y2, color, i) +{ + color=color_map($2) + for(i = 3; i < NF - 2; i += 2) { + x1=xscale($i) + y1=yscale($(i + 1)) + x2=xscale($(i + 2)) + y2=yscale($(i + 3)) + if(x1 == x2 && y1 == y2) continue + xs_lines = xs_lines "L " color " " ordered(x1, y1, x2, y2) " {}" "\n" + } +} +# 1 2 3 4 +# c xcenter ycenter radius +function get_circle( x, y, r, color) +{ + x = xscale($2) + y = yscale($3) + r = lenscale($4) + # 1 2 3 4 + # Q line_color line_style fill + if(next_line() ~/^Q/) { + $0 = line[++lineno] + } + color = color_map($2) + xs_circles = xs_circles "A " color " " x " " y " " r " " 0 " " 360 " {}" "\n" +} + + +# 1 2 3 4 5 +# b x1 y1 x2 y2 +function get_box( x1, y1, x2, y2, color, attr) +{ + x1 = xscale($2) + y1 = yscale($3) + x2 = xscale($4) + y2 = yscale($5) + # 1 2 3 4 + # Q line_color line_style fill + if(next_line() ~/^Q/) { + $0 = line[++lineno] + } + color = color_map($2) + if(color == 5) { + xs_boxes = xs_boxes "B 5 " rectordered(x1, y1, x2, y2) " {}\n" + } else { + xs_boxes = xs_boxes "P " color " 5 " x1 " " y1 " " x2 " " y1 " " x2 " " y2 " " x1 " " y2 " " x1 " " y1 " {}\n" + } +} + + +# 1 2 3 4 5 6 7 8 +# U xpos ypos text_size rotation anchor scope attribute +function get_attr( show_all, x, y, size, rot, anchor, scope, attr) +{ + show_all = 0 + attr = get_fields_after(7) + x = xscale($2) + y = yscale($3) + size = lenscale($4) + rot = $5 + anchor = $6 + scope = $7 + if(scope == 1 || show_all) { + xs_attrs = xs_attrs "T {" attr "} " x " " y " " text_align(size, rot, anchor) "\n" + } +} + +#1 2 3 4 5 6 7 8 9 +# ID Xend Yend Xbeg Xbeg rot side inv_bubble +#P 16 60 100 60 65 0 0 0 +# side: 0:top, 1: bottom, 2:left, 3:right +# rot: 0:0, 1:90,2:180, 3:270 +function get_pin( l, b, t, x, y, show_all, rot, anchor, size, attr, visible, pin_name, pin_dir, pin_order) +{ + show_all = 0 + size = 0.1 + l = "L 1 " ordered(xscale($5), yscale($6), xscale($3), yscale($4)) " {}" + b = "B 5 " rectordered(xscale($3 - size), yscale($4 - size), xscale($3 + size), yscale($4 + size)) + while(1) { + $0 = line[++lineno] + # 1 2 3 4 5 6 7 8 + # A xpos ypos text_size rotation anchor visibility attribute + # A 60 65 10 1 1 0 #=1 + if($0 ~/^A/){ # attributes + x = xscale($2) + y = yscale($3) + size = lenscale($4) + rot = $5 + anchor = $6 + visible = $7 + attr = get_fields_after(7) + if(visible || show_all) { + xs_pin_attrs = xs_pin_attrs "T {" attr "} " x " " y " " text_align(size, rot, anchor, 13) "\n" + } + if(attr ~/#=/) { # pin order + pin_order = attr + sub(/.*=/, "", pin_order) + # 1 2 3 4 5 6 7 8 + # A xpos ypos text_size rotation anchor visibility attribute + # A 60 65 10 1 1 0 PINTYPE=B + } else if(attr ~ /PINTYPE=/) { # pin direction + pin_dir = get_fields_after(7) + sub(/.*=/, "", pin_dir) + if(pin_dir == "BI") pin_dir = "inout" + else if(pin_dir == "IN") pin_dir = "in" + else if(pin_dir == "OUT") pin_dir = "out" + else if(pin_dir == "ANALOG") pin_dir = "inout" + else pin_dir = "inout" + } + # 1 2 3 4 5 6 7 8 9 10 + # L xpos ypos text_size rotation anchor scope visibility logic_sense text_label + } else if($0 ~ /^L/) { # Label + x = xscale($2) + y = yscale($3) + visible = $8 + rot = $5 + anchor=$6 + size = lenscale($4) + pin_name = $10 + b = b " {name=" pin_name " dir=" pin_dir "}" + t = "T {" pin_name "} " x " " y " " text_align(size, rot, anchor) + break # assumption is "P " line is followed by "A ", "A ", and "L " lines. + } + } + xs_pins = xs_pins l "\n" b "\n" + if(visible) xs_pins = xs_pins t "\n" +} + +# the various align/rotate combinations are obtained by reverse engineering +# more combinations need to be added as if(rot...&& anchor...) +function text_align(size, rot, anchor, color, flip, halign, valign, tattrs) +{ + halign = "" + valign = "" + + if(anchor == 2 || anchor == 5 || anchor == 8) valign = "vcenter=true" + if(anchor == 4 || anchor == 5 || anchor == 6) valign = "hcenter=true" + if(color) { + color = "layer=" color + } else { + color = "" + } + size = size / 60 + tattrs = halign " " valign " " color + + + if(anchor == 7 || anchor == 8 || anchor == 9) { + if (rot == 0) {rot = 2; flip = 0} + else if(rot == 1) {rot = 1; flip = 0} + else if(rot == 2) {rot = 0; flip = 0} + else if(rot == 3) {rot = 3; flip = 0} + else if(rot == 4) {rot = 2; flip = 1} + else if(rot == 5) {rot = 1; flip = 1} + else if(rot == 6) {rot = 0; flip = 1} + else if(rot == 7) {rot = 3; flip = 1} + else {rot = 0; flip = 0} + } else { + if (rot == 0) {rot = 2; flip = 1} + else if(rot == 1) {rot = 1; flip = 1} + else if(rot == 2) {rot = 0; flip = 1} + else if(rot == 3) {rot = 3; flip = 1} + else if(rot == 4) {rot = 2; flip = 0} + else if(rot == 5) {rot = 1; flip = 0} + else if(rot == 6) {rot = 0; flip = 0} + else if(rot == 7) {rot = 3; flip = 0} + else {rot = 0; flip = 0} + } + return rot " " flip " " size " " size " {" tattrs "}" +} + + +# the various align/rotate combinations are obtained by reverse engineering +function inst_rot_flip(rot) +{ + if (rot == 0) return "0 0" + else if(rot == 1) return "3 0" + else if(rot == 2) return "2 0" + else if(rot == 3) return "1 0" + else if(rot == 4) return "0 1" + else if(rot == 5) return "3 1" + else if(rot == 6) return "2 1" + else if(rot == 7) return "1 1" + else return "0 0" +} +function color_map(c) +{ + if(c == 2) return 4 # green + if(c == 12) return 5 # red + if(c == 4) return 5 # red + else return 4 +} + +# x, y, length axis transforms. Xschem is downward oriented! +# any geometric coordinate gets processed by these functions +function xscale(x) +{ + return x +} + +function yscale(y) +{ + return -y +} + +# distance transformations (like circle radius) +function lenscale(len) +{ + return len +} + +# print debug info on stderr if debug global is != 0 +function dbg(str) +{ + if(debug) { + print str > "/dev/stderr" + } +} + +# get all of $0 following $n +function get_fields_after(n, str, nf, i, a, arr) +{ + str = "" + a = $0 + nf = split(a, arr) + for(i = n + 1; i <= nf; i++) { + if(i > n + 1) str = str " " + str = str arr[i] + } + return str +} + +#used to poke what's next wihout advancing read to next line +function next_line() +{ + return line[lineno + 1] +} + +# xschem rectangle coordinates are ordered for efficiency reasons +function rectordered(x1, y1, x2, y2, tmp) +{ + if(x2 < x1) { + tmp = x1; x1 = x2; x2 = tmp + } + if(y2 < y1) { + tmp = y1; y1 = y2; y2 = tmp + } + return x1 " " y1 " " x2 " " y2 +} + +# xschem line coordinates are ordered for efficiency reasons +function ordered(x1, y1, x2, y2, tmp) +{ + if(x2 < x1) { + tmp = x1; x1 = x2; x2 = tmp + tmp = y1; y1 = y2; y2 = tmp + } + if(x1 == x2 && y2 < y1) { + tmp = x1; x1 = x2; x2 = tmp + tmp = y1; y1 = y2; y2 = tmp + } + return x1 " " y1 " " x2 " " y2 +} diff --git a/xschem_library/viewdraw_import/xschem_lib/align.sch b/xschem_library/viewdraw_import/xschem_lib/align.sch new file mode 100644 index 00000000..6c06aefe --- /dev/null +++ b/xschem_library/viewdraw_import/xschem_lib/align.sch @@ -0,0 +1,16 @@ +v {xschem version=3.0.0 file_version=1.2 } +G {} +K {} +V {} +S {} +E {} +T {TEXT1} 800 -590 0 0 0.333333 0.333333 { hcenter=true } +T {TEXT3} 1040 -590 0 1 0.333333 0.333333 { } +T {TEXT4} 800 -670 0 0 0.333333 0.333333 { hcenter=true } +T {TEXT5} 570 -670 0 0 0.333333 0.333333 { vcenter=true } +T {TEXT6} 1040 -670 0 1 0.333333 0.333333 { vcenter=true } +T {TEXT7} 800 -750 0 0 0.333333 0.333333 { hcenter=true } +T {TEXT2} 570 -590 0 0 0.333333 0.333333 { } +T {TEXT9} 1040 -750 0 1 0.333333 0.333333 { } +T {TEXT8} 570 -750 0 0 0.333333 0.333333 { } +C {xschem_lib/sheet_b.sym} 0 0 0 0 {} diff --git a/xschem_library/viewdraw_import/xschem_lib/dti_28hc_6p5t_40_ffqx1.sch b/xschem_library/viewdraw_import/xschem_lib/dti_28hc_6p5t_40_ffqx1.sch new file mode 100644 index 00000000..b43f6281 --- /dev/null +++ b/xschem_library/viewdraw_import/xschem_lib/dti_28hc_6p5t_40_ffqx1.sch @@ -0,0 +1,115 @@ +v {xschem version=3.0.0 file_version=1.2 } +G {} +K {} +V {} +S {} +E {} +L 4 1490 -1070 1500 -1420 {} +T {Re-name node to RM for removal sim.} 1200 -1440 2 1 0.166667 0.166667 { } +T {Hiep confirm latest Oct03rd_2021} 100 -60 2 1 0.166667 0.166667 { } +N 1350 -1190 1350 -1190 {} +N 1140 -1160 1140 -1160 {} +N 1140 -1260 1140 -1260 {} +N 1140 -790 1140 -790 {} +N 1140 -890 1140 -890 {} +N 660 -1130 660 -1130 {} +N 1830 -640 1830 -640 {} +N 1830 -1250 1830 -1250 {} +N 1830 -1150 1830 -1150 {} +N 1830 -740 1830 -740 {} +N 1350 -690 1350 -690 {} +N 1350 -1290 1350 -1290 {} +N 1350 -790 1350 -790 {} +N 560 -960 600 -960 {} +N 560 -1080 600 -1080 {} +N 290 -1030 560 -1030 {} +N 560 -1030 560 -960 {} +N 560 -1080 560 -1030 {} +N 2060 -1020 2160 -1020 {} +N 850 -1360 1570 -1360 {} +N 1570 -1360 1570 -790 {} +N 1570 -790 1770 -790 {} +N 1570 -1140 1570 -790 {} +N 1620 -1290 1620 -1140 {} +N 1570 -1140 1620 -1140 {} +N 1410 -1140 1570 -1140 {} +N 1620 -1140 1620 -1070 {} +N 850 -1360 850 -840 {} +N 850 -840 1080 -840 {} +N 1350 -1090 1350 -1020 {} +N 1350 -1020 1350 -890 {} +N 1350 -1020 1400 -1020 {} +N 1140 -1020 1140 -990 {} +N 1140 -1060 1140 -1020 {} +N 1140 -1020 1350 -1020 {} +N 1060 -1210 1080 -1210 {} +N 1060 -1400 1060 -1210 {} +N 290 -1400 1060 -1400 {} +N 1250 -840 1290 -840 {} +N 1250 -1400 1620 -1400 {} +N 1620 -980 1620 -940 {} +N 1620 -940 1740 -940 {} +N 1740 -1100 1740 -940 {} +N 1740 -1100 1770 -1100 {} +N 1740 -1400 1740 -1100 {} +N 1620 -1400 1740 -1400 {} +N 1620 -1400 1620 -1370 {} +N 1060 -1400 1250 -1400 {} +N 1250 -1400 1250 -840 {} +N 1830 -860 1830 -840 {} +N 2050 -1200 2090 -1200 {} +N 1830 -1050 1830 -1020 {} +N 1830 -1020 1830 -860 {} +N 2090 -1200 2090 -860 {} +N 1830 -860 2090 -860 {} +N 1650 -1020 1830 -1020 {} +N 1830 -1020 1980 -1020 {} +N 1890 -1200 1940 -1200 {} +N 1940 -1200 1970 -1200 {} +N 1940 -1200 1940 -690 {} +N 1890 -690 1940 -690 {} +N 1050 -1110 1080 -1110 {} +N 1050 -1110 1050 -1020 {} +N 1050 -940 1080 -940 {} +N 1050 -1020 1050 -940 {} +N 660 -1020 1050 -1020 {} +N 660 -1030 660 -1020 {} +N 660 -1020 660 -1010 {} +N 660 -910 660 -910 {} +N 1410 -740 1530 -740 {} +N 1410 -1240 1530 -1240 {} +N 1530 -1020 1530 -740 {} +N 1480 -1020 1530 -1020 {} +N 1530 -1020 1590 -1020 {} +N 1530 -1240 1530 -1020 {} +C {xschem_lib/sheet_a2.sym} 0 0 0 0 {} +C {xschem_lib/output.sym} 2160 -1010 0 0 {} +C {xschem_lib/dti_gen_tx.sym} 1590 -980 0 0 {} +C {xschem_lib/dti_gen_inv.sym} 2050 -1160 0 1 {} +C {xschem_lib/dti_gen_inv.sym} 1580 -1370 1 0 {} +C {xschem_lib/dti_gen_inv.sym} 1980 -980 0 0 {} +C {xschem_lib/dti_gen_inv.sym} 1400 -980 0 0 {} +C {xschem_lib/pmos.sym} 1410 -1190 0 1 {} +C {xschem_lib/pmos.sym} 1770 -1050 0 0 {} +C {xschem_lib/pmos.sym} 1890 -1150 0 1 {} +C {xschem_lib/pmos.sym} 1080 -1160 0 0 {} +C {xschem_lib/pmos.sym} 1410 -1090 0 1 {} +C {xschem_lib/pmos.sym} 1080 -1060 0 0 {} +C {xschem_lib/pmos.sym} 600 -1030 0 0 {} +C {xschem_lib/nmos.sym} 1290 -790 0 0 {} +C {xschem_lib/nmos.sym} 1410 -690 0 1 {} +C {xschem_lib/nmos.sym} 1770 -740 0 0 {} +C {xschem_lib/nmos.sym} 1890 -640 0 1 {} +C {xschem_lib/nmos.sym} 1080 -790 0 0 {} +C {xschem_lib/nmos.sym} 1080 -890 0 0 {} +C {xschem_lib/nmos.sym} 600 -910 0 0 {} +C {xschem_lib/vss.sym} 1120 -750 0 0 {} +C {xschem_lib/vss.sym} 1810 -600 0 0 {} +C {xschem_lib/vss.sym} 1330 -650 0 0 {} +C {xschem_lib/vss.sym} 640 -870 0 0 {} +C {xschem_lib/vdd.sym} 1120 -1260 0 0 {} +C {xschem_lib/vdd.sym} 1810 -1250 0 0 {} +C {xschem_lib/vdd.sym} 1330 -1290 0 0 {} +C {xschem_lib/vdd.sym} 640 -1130 0 0 {} +C {xschem_lib/input.sym} 260 -1020 0 0 {} +C {xschem_lib/input.sym} 260 -1390 0 0 {} diff --git a/xschem_library/viewdraw_import/xschem_lib/dti_28hc_6p5t_40_invx1.sch b/xschem_library/viewdraw_import/xschem_lib/dti_28hc_6p5t_40_invx1.sch new file mode 100644 index 00000000..325162c7 --- /dev/null +++ b/xschem_library/viewdraw_import/xschem_lib/dti_28hc_6p5t_40_invx1.sch @@ -0,0 +1,23 @@ +v {xschem version=3.0.0 file_version=1.2 } +G {} +K {} +V {} +S {} +E {} +N 840 -740 840 -740 {} +N 840 -540 840 -540 {} +N 840 -680 840 -640 {} +N 840 -640 840 -600 {} +N 840 -640 960 -640 {} +N 630 -640 760 -640 {} +N 760 -570 790 -570 {} +N 760 -640 760 -570 {} +N 760 -710 760 -640 {} +N 760 -710 790 -710 {} +C {xschem_lib/nm.sym} 790 -540 0 0 {} +C {xschem_lib/pm.sym} 790 -680 0 0 {} +C {xschem_lib/vdd.sym} 820 -740 0 0 {} +C {xschem_lib/vss.sym} 820 -500 0 0 {} +C {xschem_lib/sh_b.sym} 0 0 0 0 {} +C {xschem_lib/output.sym} 960 -630 0 0 {} +C {xschem_lib/input.sym} 600 -630 0 0 {} diff --git a/xschem_library/viewdraw_import/xschem_lib/dti_28hc_6p5t_40_nand2x1.sch b/xschem_library/viewdraw_import/xschem_lib/dti_28hc_6p5t_40_nand2x1.sch new file mode 100644 index 00000000..4c40545c --- /dev/null +++ b/xschem_library/viewdraw_import/xschem_lib/dti_28hc_6p5t_40_nand2x1.sch @@ -0,0 +1,36 @@ +v {xschem version=3.0.0 file_version=1.2 } +G {} +K {} +V {} +S {} +E {} +N 840 -730 840 -730 {} +N 710 -730 710 -730 {} +N 710 -430 710 -430 {} +N 710 -530 710 -490 {} +N 630 -700 660 -700 {} +N 630 -700 630 -630 {} +N 630 -630 630 -560 {} +N 630 -560 660 -560 {} +N 470 -630 630 -630 {} +N 760 -700 790 -700 {} +N 760 -700 760 -460 {} +N 470 -460 630 -460 {} +N 630 -460 660 -460 {} +N 630 -460 760 -460 {} +N 840 -630 970 -630 {} +N 710 -630 710 -590 {} +N 710 -670 710 -630 {} +N 710 -630 840 -630 {} +N 840 -670 840 -630 {} +C {xschem_lib/input.sym} 440 -450 0 0 {} +C {xschem_lib/sh_b.sym} 0 0 0 0 {} +C {xschem_lib/vdd.sym} 690 -730 0 0 {} +C {xschem_lib/input.sym} 440 -620 0 0 {} +C {xschem_lib/vdd.sym} 820 -730 0 0 {} +C {xschem_lib/vss.sym} 690 -390 0 0 {} +C {xschem_lib/pm.sym} 660 -670 0 0 {} +C {xschem_lib/pm.sym} 790 -670 0 0 {} +C {xschem_lib/output.sym} 970 -620 0 0 {} +C {xschem_lib/nm.sym} 660 -430 0 0 {} +C {xschem_lib/nm.sym} 660 -530 0 0 {} diff --git a/xschem_library/viewdraw_import/xschem_lib/dti_28hc_6p5t_40_nor2x1.sch b/xschem_library/viewdraw_import/xschem_lib/dti_28hc_6p5t_40_nor2x1.sch new file mode 100644 index 00000000..0ae3ed81 --- /dev/null +++ b/xschem_library/viewdraw_import/xschem_lib/dti_28hc_6p5t_40_nor2x1.sch @@ -0,0 +1,36 @@ +v {xschem version=3.0.0 file_version=1.2 } +G {} +K {} +V {} +S {} +E {} +N 710 -510 710 -510 {} +N 710 -820 710 -810 {} +N 710 -750 710 -710 {} +N 850 -510 850 -510 {} +N 630 -680 660 -680 {} +N 630 -680 630 -610 {} +N 630 -610 630 -540 {} +N 630 -540 660 -540 {} +N 470 -610 630 -610 {} +N 770 -780 770 -540 {} +N 470 -780 630 -780 {} +N 630 -780 660 -780 {} +N 770 -540 800 -540 {} +N 630 -780 770 -780 {} +N 850 -610 1100 -610 {} +N 710 -610 710 -570 {} +N 710 -650 710 -610 {} +N 710 -610 850 -610 {} +N 850 -610 850 -570 {} +C {xschem_lib/vss.sym} 690 -470 0 0 {} +C {xschem_lib/sh_b.sym} 0 0 0 0 {} +C {xschem_lib/input.sym} 440 -600 0 0 {} +C {xschem_lib/pm.sym} 660 -650 0 0 {} +C {xschem_lib/nm.sym} 660 -510 0 0 {} +C {xschem_lib/vdd.sym} 690 -820 0 0 {} +C {xschem_lib/input.sym} 440 -770 0 0 {} +C {xschem_lib/nm.sym} 800 -510 0 0 {} +C {xschem_lib/vss.sym} 830 -470 0 0 {} +C {xschem_lib/output.sym} 1100 -600 0 0 {} +C {xschem_lib/pm.sym} 660 -750 0 0 {} diff --git a/xschem_library/viewdraw_import/xschem_lib/dti_gen_inv.sch b/xschem_library/viewdraw_import/xschem_lib/dti_gen_inv.sch new file mode 100644 index 00000000..fc2eb1f6 --- /dev/null +++ b/xschem_library/viewdraw_import/xschem_lib/dti_gen_inv.sch @@ -0,0 +1,25 @@ +v {xschem version=3.0.0 file_version=1.2 } +G {} +K {} +V {} +S {} +E {} +N 840 -464 840 -460 {} +N 840 -464 840 -460 {} +N 840 -734 840 -730 {} +N 840 -734 840 -730 {} +N 760 -610 760 -514 {} +N 760 -684 780 -684 {} +N 760 -684 760 -610 {} +N 760 -514 780 -514 {} +N 670 -610 760 -610 {} +N 840 -610 840 -564 {} +N 840 -634 840 -610 {} +N 840 -610 930 -610 {} +C {xschem_lib/input.sym} 640 -600 0 0 {} +C {xschem_lib/output.sym} 930 -600 0 0 {} +C {xschem_lib/nmos.sym} 780 -464 0 0 {} +C {xschem_lib/pmos.sym} 780 -634 0 0 {} +C {xschem_lib/vdd.sym} 820 -734 0 0 {} +C {xschem_lib/vss.sym} 820 -424 0 0 {} +C {xschem_lib/sheet_b.sym} 0 0 0 0 {} diff --git a/xschem_library/viewdraw_import/xschem_lib/dti_gen_inv.sym b/xschem_library/viewdraw_import/xschem_lib/dti_gen_inv.sym new file mode 100644 index 00000000..f3203c1a --- /dev/null +++ b/xschem_library/viewdraw_import/xschem_lib/dti_gen_inv.sym @@ -0,0 +1,18 @@ +v {xschem version=3.0.0 file_version=1.2 } +G {} +K {} +V {} +S {} +E {} +L 4 10 -15 60 -40 {} +L 4 10 -65 60 -40 {} +L 4 10 -65 10 -15 {} +A 5 65 -40 5 0 360 {} +B 5 76 -42 80 -38 {} +B 5 0 -42 4 -38 {} +L 1 0 -40 10 -40 {} +B 5 -0.1 -40.1 0.1 -39.9 {name=A dir=in} +L 1 70 -40 80 -40 {} +B 5 79.9 -40.1 80.1 -39.9 {name=Z dir=out} +T {WP=WPD} 72 -68 2 0 0.166667 0.166667 { } +T {WN=WND} 72 -58 2 0 0.166667 0.166667 { } diff --git a/xschem_library/viewdraw_import/xschem_lib/dti_gen_tx.sch b/xschem_library/viewdraw_import/xschem_lib/dti_gen_tx.sch new file mode 100644 index 00000000..7ff7bf51 --- /dev/null +++ b/xschem_library/viewdraw_import/xschem_lib/dti_gen_tx.sch @@ -0,0 +1,27 @@ +v {xschem version=3.0.0 file_version=1.2 } +G {} +K {} +V {} +S {} +E {} +N 550 -370 550 -320 {} +N 370 -320 550 -320 {} +N 370 -610 550 -610 {} +N 550 -610 550 -570 {} +N 620 -470 730 -470 {} +N 620 -470 620 -430 {} +N 600 -510 620 -510 {} +N 620 -510 620 -470 {} +N 600 -430 620 -430 {} +N 480 -510 500 -510 {} +N 480 -510 480 -470 {} +N 370 -470 480 -470 {} +N 480 -470 480 -430 {} +N 480 -430 500 -430 {} +C {xschem_lib/nmos.sym} 600 -370 3 0 {} +C {xschem_lib/pmos.sym} 500 -570 1 0 {} +C {xschem_lib/output.sym} 730 -460 0 0 {} +C {xschem_lib/input.sym} 340 -600 0 0 {} +C {xschem_lib/input.sym} 340 -460 0 0 {} +C {xschem_lib/input.sym} 340 -310 0 0 {} +C {xschem_lib/sheet_a4.sym} 0 0 0 0 {} diff --git a/xschem_library/viewdraw_import/xschem_lib/dti_gen_tx.sym b/xschem_library/viewdraw_import/xschem_lib/dti_gen_tx.sym new file mode 100644 index 00000000..b82a0f2d --- /dev/null +++ b/xschem_library/viewdraw_import/xschem_lib/dti_gen_tx.sym @@ -0,0 +1,26 @@ +v {xschem version=3.0.0 file_version=1.2 } +G {} +K {} +V {} +S {} +E {} +L 4 10 -66 50 -66 {} +L 4 10 -14 50 -14 {} +A 4 94 -52 0 0 360 {} +A 4 30 -70 0 0 360 {} +A 5 30 -70 4 0 360 {} +B 5 28 -90 32 -86 {} +B 5 28 -4 32 0 {} +B 5 56 -42 60 -38 {} +B 5 0 -42 4 -38 {} +P 4 5 10 -20 50 -20 50 -60 10 -60 10 -20 {} +L 1 30 -14 30 0 {} +B 5 29.9 -0.1 30.1 0.1 {name=NG dir=} +L 1 30 -90 30 -74 {} +B 5 29.9 -90.1 30.1 -89.9 {name=PG dir=} +L 1 50 -40 60 -40 {} +B 5 59.9 -40.1 60.1 -39.9 {name=OUT dir=} +L 1 0 -40 10 -40 {} +B 5 -0.1 -40.1 0.1 -39.9 {name=IN dir=} +T {WPA=WPD} 90 -70 2 0 0.166667 0.166667 { } +T {WNA=WND} 90 -80 2 0 0.166667 0.166667 { } diff --git a/xschem_library/viewdraw_import/xschem_lib/input.sym b/xschem_library/viewdraw_import/xschem_lib/input.sym new file mode 100644 index 00000000..27927ad6 --- /dev/null +++ b/xschem_library/viewdraw_import/xschem_lib/input.sym @@ -0,0 +1,20 @@ +v {xschem version=3.0.0 file_version=1.2 } +G {} +K {} +V {} +S {} +E {} +L 4 19 -5 25 -10 {} +L 4 19 -15 25 -10 {} +L 4 2 -15 19 -15 {} +L 4 2 -5 19 -5 {} +L 4 20 -4 27 -10 {} +L 4 2 -15 2 -5 {} +L 4 20 -16 27 -10 {} +L 4 1 -16 20 -16 {} +L 4 1 -4 20 -4 {} +L 4 1 -16 1 -4 {} +B 5 28 -11 30 -9 {} +L 1 25 -10 30 -10 {} +B 5 29.9 -10.1 30.1 -9.9 {name=IN dir=in} +T {IN} 17 -7 2 0 0.0833333 0.0833333 { } diff --git a/xschem_library/viewdraw_import/xschem_lib/nm.sym b/xschem_library/viewdraw_import/xschem_lib/nm.sym new file mode 100644 index 00000000..b3c6c427 --- /dev/null +++ b/xschem_library/viewdraw_import/xschem_lib/nm.sym @@ -0,0 +1,22 @@ +v {xschem version=3.0.0 file_version=1.2 } +G {} +K {} +V {} +S {} +E {} +L 4 32 -46 32 -14 {} +L 4 26 -42 26 -18 {} +L 4 32 -18 50 -18 {} +L 4 32 -42 50 -42 {} +T {S} 40 -12 2 0 0.0833333 0.0833333 { } +B 5 48 -4 52 0 {} +B 5 48 -60 52 -56 {} +B 5 0 -32 4 -28 {} +L 1 50 -60 50 -42 {} +B 5 49.9 -60.1 50.1 -59.9 {name=D dir=inout} +L 1 50 -18 50 0 {} +B 5 49.9 -0.1 50.1 0.1 {name=S dir=inout} +L 1 0 -30 26 -30 {} +B 5 -0.1 -30.1 0.1 -29.9 {name=G dir=in} +T {L=LND} 31 -42 2 0 0.166667 0.166667 { } +T {W=WND} 34 -49 2 0 0.166667 0.166667 { } diff --git a/xschem_library/viewdraw_import/xschem_lib/nmos.sym b/xschem_library/viewdraw_import/xschem_lib/nmos.sym new file mode 100644 index 00000000..8acb4154 --- /dev/null +++ b/xschem_library/viewdraw_import/xschem_lib/nmos.sym @@ -0,0 +1,22 @@ +v {xschem version=3.0.0 file_version=1.2 } +G {} +K {} +V {} +S {} +E {} +L 4 40 -70 40 -30 {} +L 4 30 -65 30 -35 {} +L 4 40 -65 60 -65 {} +L 4 40 -35 60 -35 {} +T {S} 60 -10 2 0 0.0833333 0.0833333 { } +B 5 58 -4 62 0 {} +B 5 58 -100 62 -96 {} +B 5 0 -52 4 -48 {} +L 1 60 -100 60 -65 {} +B 5 59.9 -100.1 60.1 -99.9 {name=D dir=inout} +L 1 60 -35 60 0 {} +B 5 59.9 -0.1 60.1 0.1 {name=S dir=inout} +L 1 0 -50 30 -50 {} +B 5 -0.1 -50.1 0.1 -49.9 {name=G dir=in} +T {W=WND} 50 -85 2 0 0.166667 0.166667 { } +T {L=LND} 49 -72 2 0 0.166667 0.166667 { } diff --git a/xschem_library/viewdraw_import/xschem_lib/output.sym b/xschem_library/viewdraw_import/xschem_lib/output.sym new file mode 100644 index 00000000..5344ac50 --- /dev/null +++ b/xschem_library/viewdraw_import/xschem_lib/output.sym @@ -0,0 +1,20 @@ +v {xschem version=3.0.0 file_version=1.2 } +G {} +K {} +V {} +S {} +E {} +L 4 22 -5 28 -10 {} +L 4 22 -15 28 -10 {} +L 4 5 -15 22 -15 {} +L 4 5 -5 22 -5 {} +L 4 23 -4 30 -10 {} +L 4 5 -15 5 -5 {} +L 4 23 -16 30 -10 {} +L 4 4 -16 23 -16 {} +L 4 4 -4 23 -4 {} +L 4 4 -16 4 -4 {} +B 5 0 -11 2 -9 {} +L 1 0 -10 4 -10 {} +B 5 -0.1 -10.1 0.1 -9.9 {name=OUT dir=out} +T {OUT} 23 -7 2 0 0.0833333 0.0833333 { } diff --git a/xschem_library/viewdraw_import/xschem_lib/pm.sym b/xschem_library/viewdraw_import/xschem_lib/pm.sym new file mode 100644 index 00000000..b863886b --- /dev/null +++ b/xschem_library/viewdraw_import/xschem_lib/pm.sym @@ -0,0 +1,23 @@ +v {xschem version=3.0.0 file_version=1.2 } +G {} +K {} +V {} +S {} +E {} +L 4 32 -46 32 -14 {} +L 4 26 -42 26 -18 {} +L 4 32 -18 50 -18 {} +L 4 32 -42 50 -42 {} +T {S} 50 -41 2 0 0.0833333 0.0833333 { } +A 5 22 -30 4 0 360 {} +B 5 48 -4 52 0 {} +B 5 48 -60 52 -56 {} +B 5 0 -32 4 -28 {} +L 1 50 -18 50 0 {} +B 5 49.9 -0.1 50.1 0.1 {name=D dir=inout} +L 1 0 -30 18 -30 {} +B 5 -0.1 -30.1 0.1 -29.9 {name=G dir=in} +L 1 50 -60 50 -42 {} +B 5 49.9 -60.1 50.1 -59.9 {name=S dir=inout} +T {W=WPD} 0 -51 2 1 0.166667 0.166667 { } +T {L=LPD} 1 -43 2 1 0.166667 0.166667 { } diff --git a/xschem_library/viewdraw_import/xschem_lib/pmos.sym b/xschem_library/viewdraw_import/xschem_lib/pmos.sym new file mode 100644 index 00000000..a9b7ee7d --- /dev/null +++ b/xschem_library/viewdraw_import/xschem_lib/pmos.sym @@ -0,0 +1,23 @@ +v {xschem version=3.0.0 file_version=1.2 } +G {} +K {} +V {} +S {} +E {} +L 4 40 -70 40 -30 {} +L 4 40 -35 60 -35 {} +L 4 40 -65 60 -65 {} +L 4 30 -65 30 -35 {} +T {S} 70 -80 2 0 0.0833333 0.0833333 { } +A 5 23 -50 7 0 360 {} +B 5 58 -4 62 0 {} +B 5 58 -100 62 -96 {} +B 5 0 -52 4 -48 {} +L 1 60 -35 60 0 {} +B 5 59.9 -0.1 60.1 0.1 {name=D dir=inout} +L 1 60 -100 60 -65 {} +B 5 59.9 -100.1 60.1 -99.9 {name=S dir=inout} +L 1 0 -50 16 -50 {} +B 5 -0.1 -50.1 0.1 -49.9 {name=G dir=in} +T {W=WPD} 49 -83 2 0 0.166667 0.166667 { } +T {L=LPD} 50 -75 2 0 0.166667 0.166667 { } diff --git a/xschem_library/viewdraw_import/xschem_lib/rotation.sch b/xschem_library/viewdraw_import/xschem_lib/rotation.sch new file mode 100644 index 00000000..2a069be7 --- /dev/null +++ b/xschem_library/viewdraw_import/xschem_lib/rotation.sch @@ -0,0 +1,47 @@ +v {xschem version=3.0.0 file_version=1.2 } +G {} +K {} +V {} +S {} +E {} +T {TEXT1} 490 -800 2 1 0.333333 0.333333 { } +T {TEXT2} 400 -750 3 1 0.333333 0.333333 { } +T {TEXT3} 310 -820 0 1 0.333333 0.333333 { } +T {TEXT4} 420 -870 1 1 0.333333 0.333333 { } +T {TEXT7} 1090 -820 0 0 0.333333 0.333333 { } +T {TEXT6} 1020 -750 1 0 0.333333 0.333333 { } +T {TEXT5} 910 -800 2 0 0.333333 0.333333 { } +T {TEXT8} 1000 -870 3 0 0.333333 0.333333 { } +N 930 -520 964 -520 {} +N 1064 -520 1110 -520 {} +N 1014 -460 1014 -440 {} +N 1066 -150 1100 -150 {} +N 920 -150 966 -150 {} +N 1016 -230 1016 -210 {} +N 900 -274 900 -240 {} +N 900 -420 900 -374 {} +N 960 -324 980 -324 {} +N 1140 -410 1140 -376 {} +N 1140 -276 1140 -230 {} +N 1060 -326 1080 -326 {} +N 290 -140 324 -140 {} +N 424 -140 470 -140 {} +N 374 -220 374 -200 {} +N 426 -510 460 -510 {} +N 280 -510 326 -510 {} +N 376 -450 376 -430 {} +N 260 -420 260 -386 {} +N 260 -286 260 -240 {} +N 320 -336 340 -336 {} +N 500 -284 500 -250 {} +N 500 -430 500 -384 {} +N 420 -334 440 -334 {} +C {xschem_lib/nmos.sym} 964 -460 1 1 {} +C {xschem_lib/nmos.sym} 1066 -210 3 1 {} +C {xschem_lib/nmos.sym} 960 -274 0 1 {} +C {xschem_lib/nmos.sym} 1080 -376 2 1 {} +C {xschem_lib/nmos.sym} 324 -200 1 0 {} +C {xschem_lib/nmos.sym} 426 -450 3 0 {} +C {xschem_lib/nmos.sym} 320 -386 2 0 {} +C {xschem_lib/sheet_b.sym} 0 0 0 0 {} +C {xschem_lib/nmos.sym} 440 -284 0 0 {} diff --git a/xschem_library/viewdraw_import/xschem_lib/sh_b.sym b/xschem_library/viewdraw_import/xschem_lib/sh_b.sym new file mode 100644 index 00000000..fa59394b --- /dev/null +++ b/xschem_library/viewdraw_import/xschem_lib/sh_b.sym @@ -0,0 +1,53 @@ +v {xschem version=3.0.0 file_version=1.2 } +G {} +K {} +V {} +S {} +E {} +L 4 1245 -20 1245 0 {} +L 4 820 -20 820 0 {} +L 4 395 -20 395 0 {} +L 4 0 -275 20 -275 {} +L 4 0 -550 20 -550 {} +L 4 0 -825 20 -825 {} +L 4 400 -1100 400 -1080 {} +L 4 825 -1100 825 -1080 {} +L 4 1250 -1100 1250 -1080 {} +L 4 1680 -825 1700 -825 {} +L 4 1680 -550 1700 -550 {} +L 4 1680 -1080 1680 -20 {} +L 4 1680 -275 1700 -275 {} +L 4 20 -1080 1680 -1080 {} +L 4 20 -1080 20 -840 {} +L 4 20 -835 20 -20 {} +L 4 20 -20 1680 -20 {} +T {Library} 1200 -20 2 1 0.333333 0.333333 { } +T {D} 1485 0 2 1 0.166667 0.166667 { } +T {C} 1060 0 2 1 0.166667 0.166667 { } +T {B} 635 0 2 1 0.166667 0.166667 { } +T {A} 185 0 2 1 0.166667 0.166667 { } +T {3} 1685 -420 2 1 0.166667 0.166667 { } +T {2} 1685 -695 2 1 0.166667 0.166667 { } +T {1} 1685 -970 2 1 0.166667 0.166667 { } +T {A} 185 -1085 2 1 0.166667 0.166667 { } +T {B} 635 -1085 2 1 0.166667 0.166667 { } +T {C} 1060 -1085 2 1 0.166667 0.166667 { } +T {D} 1485 -1085 2 1 0.166667 0.166667 { } +T {1} 10 -930 2 1 0.166667 0.166667 { } +T {2} 10 -655 2 1 0.166667 0.166667 { } +T {3} 10 -380 2 1 0.166667 0.166667 { } +T {4} 10 -105 2 1 0.166667 0.166667 { } +T {4} 1685 -135 2 1 0.166667 0.166667 { } +T {Author} 1200 -40 2 1 0.333333 0.333333 { } +T {Date} 1440 -40 2 1 0.333333 0.333333 { } +T {Name} 1200 -60 2 1 0.333333 0.333333 { } +T {Sheet} 1540 -20 2 1 0.333333 0.333333 { } +T {of} 1620 -20 2 1 0.333333 0.333333 { } +T {SizeB} 1630 0 2 1 0.333333 0.333333 { } +P 4 5 1200 -40 1680 -40 1680 -60 1200 -60 1200 -40 {} +P 4 5 1440 -40 1680 -40 1680 -60 1440 -60 1440 -40 {} +P 4 5 1200 -60 1680 -60 1680 -80 1200 -80 1200 -60 {} +P 4 5 1200 -60 1680 -60 1680 -80 1200 -80 1200 -60 {} +P 4 5 1200 -20 1680 -20 1680 -40 1200 -40 1200 -20 {} +P 4 5 1540 -20 1680 -20 1680 -40 1540 -40 1540 -20 {} +P 4 5 1200 -80 1680 -80 1680 -150 1200 -150 1200 -80 {} diff --git a/xschem_library/viewdraw_import/xschem_lib/sheet_a2.sym b/xschem_library/viewdraw_import/xschem_lib/sheet_a2.sym new file mode 100644 index 00000000..a29fe784 --- /dev/null +++ b/xschem_library/viewdraw_import/xschem_lib/sheet_a2.sym @@ -0,0 +1,40 @@ +v {xschem version=3.0.0 file_version=1.2 } +G {} +K {} +V {} +S {} +E {} +L 4 1175 -1653 1175 -1630 {} +L 4 2180 -80 2180 -60 {} +L 4 2320 -835 2322 -835 {} +L 4 2320 -1240 2338 -1240 {} +L 4 2320 -435 2338 -435 {} +L 4 2320 -835 2338 -835 {} +L 4 0 -435 20 -435 {} +L 4 0 -1240 20 -1240 {} +L 4 0 -835 20 -835 {} +L 4 1740 -20 1740 0 {} +L 4 595 -20 595 0 {} +L 4 1170 -20 1170 0 {} +L 4 595 -1653 595 -1630 {} +L 4 1750 -1653 1750 -1630 {} +T {Name} 2050 -60 2 0 0.166667 0.166667 { } +T {Size A2} 2320 -20 2 0 0.166667 0.166667 { } +T {Sheet} 2240 -40 2 0 0.166667 0.166667 { } +T {Author} 2250 -60 2 0 0.166667 0.166667 { } +T {Library} 2080 -40 2 0 0.166667 0.166667 { } +T {Date} 2010 -20 2 1 0.166667 0.166667 { } +T {1} 2334 -1420 2 0 0.166667 0.166667 { } +T {2} 2334 -1060 2 0 0.166667 0.166667 { } +T {3} 2334 -635 2 0 0.166667 0.166667 { } +T {4} 2334 -215 2 0 0.166667 0.166667 { } +T {4} 15 -216 2 0 0.166667 0.166667 { } +T {3} 15 -636 2 0 0.166667 0.166667 { } +T {2} 15 -1061 2 0 0.166667 0.166667 { } +T {1} 15 -1446 2 0 0.166667 0.166667 { } +A 4 -45 -841 0 0 360 {} +P 4 5 2000 -60 2320 -60 2320 -80 2000 -80 2000 -60 {} +P 4 5 2000 -40 2320 -40 2320 -60 2000 -60 2000 -40 {} +P 4 5 2000 -20 2320 -20 2320 -40 2000 -40 2000 -20 {} +P 4 5 2000 -80 2320 -80 2320 -150 2000 -150 2000 -80 {} +P 4 5 20 -20 2320 -20 2320 -1630 20 -1630 20 -20 {} diff --git a/xschem_library/viewdraw_import/xschem_lib/sheet_a4.sym b/xschem_library/viewdraw_import/xschem_lib/sheet_a4.sym new file mode 100644 index 00000000..f069e6b6 --- /dev/null +++ b/xschem_library/viewdraw_import/xschem_lib/sheet_a4.sym @@ -0,0 +1,18 @@ +v {xschem version=3.0.0 file_version=1.2 } +G {} +K {} +V {} +S {} +E {} +L 4 1019 -70 1019 -50 {} +T {Name} 882 -51 2 0 0.166667 0.166667 { } +T {Size A4} 1159 -10 2 0 0.166667 0.166667 { } +T {Sheet} 1079 -30 2 0 0.166667 0.166667 { } +T {Author} 1089 -50 2 0 0.166667 0.166667 { } +T {Library} 912 -31 2 0 0.166667 0.166667 { } +T {Date} 842 -11 2 1 0.166667 0.166667 { } +P 4 5 839 -50 1159 -50 1159 -70 839 -70 839 -50 {} +P 4 5 839 -30 1159 -30 1159 -50 839 -50 839 -30 {} +P 4 5 839 -10 1159 -10 1159 -30 839 -30 839 -10 {} +P 4 5 839 -70 1159 -70 1159 -140 839 -140 839 -70 {} +P 4 5 10 -10 1159 -10 1159 -816 10 -816 10 -10 {} diff --git a/xschem_library/viewdraw_import/xschem_lib/sheet_b.sym b/xschem_library/viewdraw_import/xschem_lib/sheet_b.sym new file mode 100644 index 00000000..2906fb63 --- /dev/null +++ b/xschem_library/viewdraw_import/xschem_lib/sheet_b.sym @@ -0,0 +1,50 @@ +v {xschem version=3.0.0 file_version=1.2 } +G {} +K {} +V {} +S {} +E {} +L 4 1245 -20 1245 0 {} +L 4 820 -20 820 0 {} +L 4 395 -20 395 0 {} +L 4 0 -275 20 -275 {} +L 4 0 -550 20 -550 {} +L 4 0 -825 20 -825 {} +L 4 400 -1100 400 -1080 {} +L 4 825 -1100 825 -1080 {} +L 4 1250 -1100 1250 -1080 {} +L 4 1680 -825 1700 -825 {} +L 4 1680 -550 1700 -550 {} +L 4 1680 -1080 1680 -20 {} +L 4 1680 -275 1700 -275 {} +L 4 20 -1080 1680 -1080 {} +L 4 20 -1080 20 -840 {} +L 4 20 -835 20 -20 {} +L 4 20 -20 1680 -20 {} +L 4 1540 -80 1540 -60 {} +T {Name} 1410 -60 2 0 0.166667 0.166667 { } +T {Size B} 1680 -20 2 0 0.166667 0.166667 { } +T {Sheet} 1600 -40 2 0 0.166667 0.166667 { } +T {Author} 1610 -60 2 0 0.166667 0.166667 { } +T {Library} 1440 -40 2 0 0.166667 0.166667 { } +T {D} 1485 0 2 1 0.166667 0.166667 { } +T {C} 1060 0 2 1 0.166667 0.166667 { } +T {B} 635 0 2 1 0.166667 0.166667 { } +T {A} 185 0 2 1 0.166667 0.166667 { } +T {4} 1685 -145 2 1 0.166667 0.166667 { } +T {3} 1685 -420 2 1 0.166667 0.166667 { } +T {2} 1685 -695 2 1 0.166667 0.166667 { } +T {1} 1685 -970 2 1 0.166667 0.166667 { } +T {A} 185 -1085 2 1 0.166667 0.166667 { } +T {B} 635 -1085 2 1 0.166667 0.166667 { } +T {C} 1060 -1085 2 1 0.166667 0.166667 { } +T {D} 1485 -1085 2 1 0.166667 0.166667 { } +T {1} 10 -930 2 1 0.166667 0.166667 { } +T {2} 10 -655 2 1 0.166667 0.166667 { } +T {3} 10 -380 2 1 0.166667 0.166667 { } +T {4} 10 -105 2 1 0.166667 0.166667 { } +T {Date} 1370 -20 2 1 0.166667 0.166667 { } +P 4 5 1360 -60 1680 -60 1680 -80 1360 -80 1360 -60 {} +P 4 5 1360 -40 1680 -40 1680 -60 1360 -60 1360 -40 {} +P 4 5 1360 -20 1680 -20 1680 -40 1360 -40 1360 -20 {} +P 4 5 1360 -80 1680 -80 1680 -150 1360 -150 1360 -80 {} diff --git a/xschem_library/viewdraw_import/xschem_lib/vdd.sym b/xschem_library/viewdraw_import/xschem_lib/vdd.sym new file mode 100644 index 00000000..696a1f48 --- /dev/null +++ b/xschem_library/viewdraw_import/xschem_lib/vdd.sym @@ -0,0 +1,11 @@ +v {xschem version=3.0.0 file_version=1.2 } +G {} +K {} +V {} +S {} +E {} +L 4 0 -30 40 -30 {} +B 5 18 -4 22 0 {} +L 1 20 -30 20 0 {} +B 5 19.9 -0.1 20.1 0.1 {name=VDD dir=out} +T {VDD} 30 -30 2 0 0.166667 0.166667 { } diff --git a/xschem_library/viewdraw_import/xschem_lib/vss.sym b/xschem_library/viewdraw_import/xschem_lib/vss.sym new file mode 100644 index 00000000..ee24bbcd --- /dev/null +++ b/xschem_library/viewdraw_import/xschem_lib/vss.sym @@ -0,0 +1,13 @@ +v {xschem version=3.0.0 file_version=1.2 } +G {} +K {} +V {} +S {} +E {} +L 4 5 -9 35 -9 {} +L 4 0 -16 40 -16 {} +L 4 15 -2 25 -2 {} +B 5 18 -40 22 -36 {} +L 1 20 -40 20 -16 {} +B 5 19.9 -40.1 20.1 -39.9 {name=VSS dir=out} +T {VSS} 26 -10 2 0 0.0666667 0.0666667 { } diff --git a/xschem_library/viewdraw_import/xschemrc b/xschem_library/viewdraw_import/xschemrc new file mode 100644 index 00000000..d962f912 --- /dev/null +++ b/xschem_library/viewdraw_import/xschemrc @@ -0,0 +1,19 @@ +# xschemrc system configuration file +# +# libptr: +# set to noop do nothing +# set to empty for empty XSCHEM_LIBRARY_PATH +# set to sky130 for sky130 schematics +# set to repo to edit directly in xschem-repo workspace +# set to share for installed schematics (share/doc/xschem) + + +set XSCHEM_LIBRARY_PATH {} +append XSCHEM_LIBRARY_PATH :[pwd] +append XSCHEM_LIBRARY_PATH :${XSCHEM_SHAREDIR}/xschem_library/devices +append XSCHEM_LIBRARY_PATH :~/.xschem/xschem_library + +set initial_geometry {1300x950} + +set tabbed_interface 1 +