home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume12 / cake / part06 / Lib / Vlsi < prev    next >
Encoding:
Text File  |  1987-10-15  |  2.3 KB  |  127 lines

  1. $    Cakefile for VLSI
  2. $    by Raymond Leung
  3. $    University of New South Wales
  4.  
  5. #ifndef    plotter
  6. #    define    plotter        $TERM
  7. #endif    plotter
  8.  
  9. #ifndef    lambda
  10. #    define    lambda        2.5
  11. #endif    lambda
  12.  
  13. #ifndef    layers
  14. #    define    layers        d
  15. #endif    layers
  16.  
  17. #ifndef    PLOTSITE
  18. #    define    PLOTCMD
  19. #else
  20. #    define    PLOTCMD        | lpr PLOTSITE
  21. #endif
  22.  
  23. #define    CADLIB    /cad/lib
  24.  
  25. $===================================================================
  26.  
  27. help&:
  28.         @cat /cad/lib/bake.help
  29.  
  30. %.tt:        %.fdl
  31.         fidel < %.fdl > %.tt
  32.  
  33. %.sl:        %.tt                if exist %.fdl
  34.         spla -t nmos -o % %.tt;
  35.  
  36. %.pla&:        %.tt
  37.         spla -t nmos -o % %.tt;
  38.         @echo "PLA is in file %.sl"
  39.  
  40. %.cif:        %.sl
  41.         jigsaw %
  42.  
  43. %.slplot&:    %.sl
  44.         slplot -t plotter % PLOTCMD
  45.  
  46. %.cif:        %.kic
  47.         (echo lambda; echo %.kic; echo layers) | kictocif | grep -s succ
  48.  
  49. %.root&:    %.cif
  50.         (echo n; echo lambda; echo %.cif) | ciftokic | grep -s succ
  51.  
  52. %.plot&:    %.cif
  53.         @echo "Try 'bake %.cplot'"; exit 1
  54.  
  55. %.cplot&:    %.cif
  56.         cifplot -t plotter -h %.cif %.cif PLOTCMD
  57.  
  58. %.sim:        %.cif
  59.         galah %.cif
  60.         @-grep -v '^|' < %.sim | tr " " "\012" | grep '#' | sort -u > %.x2
  61.         @-if [ -s %.x2 ]; then \
  62.             echo many nodes, one name:; cat %.x2 \
  63.           else \
  64.             echo \
  65.           fi
  66.         @-if [ -s %.al ]; then \
  67.             echo many names, one node:; cat %.al \
  68.           else \
  69.             echo \
  70.           fi
  71.  
  72. %.tout:        %.tin %.sim
  73.         trek %.sim < %.tin
  74.  
  75. %.tplot&:    %.tout
  76.         simplot -t plotter -h % %.tout PLOTCMD
  77.  
  78. %.tprint:    %.tout            if not exist %.f
  79.         simprint %.tout > %.tprint
  80.  
  81. %.tprint:    %.tout %.f        if exist %.f
  82.         simprint -f %.f %.tout > %.tprint
  83.  
  84. %.spice %.names:    %.sim
  85.         simtospice %.sim
  86.  
  87. %.spint:    %.sim
  88.         runspice -n %
  89.  
  90. %.spout:    %.spice %.spin %.names
  91.         runspice %
  92.         @echo
  93.         @echo "Spice finished" 
  94.  
  95. %.splot&:    %.spout
  96.         schange % | simplot -t plotter -h % PLOTCMD
  97.  
  98. %.ssplot&:    %.spout
  99.         spiceplot -t plotter %.spout PLOTCMD
  100.  
  101. %.sprint:    %.spout            if not exist %.f
  102.         schange % | simprint > %.sprint
  103.  
  104. %.sprint:    %.spout %.f        if exist %.f
  105.         schange % | simprint -f %.f > %.sprint
  106.  
  107. %.box:        %.cif
  108.         ciftobox %.cif > %.box
  109.  
  110. %.vplot&:    %.vout
  111.         vchange %.vout | simplot -t plotter -h % PLOTCMD
  112.  
  113. %.vprint:    %.vout            if not exist %.f
  114.         vchange %.vout | simprint > %.vprint
  115.  
  116. %.vprint:    %.vout %.f        if exist %.f
  117.         vchange %.vout | simprint -f %.f > %.vprint
  118.  
  119. %.aout:        %.ain %.sim
  120.         asim %.sim < %.ain
  121.  
  122. %.aplot&:    %.aout
  123.         simplot -t plotter -h % %.aout PLOTCMD
  124.  
  125. clean&:
  126.         -/bin/rm *.log *.rec *.drc *.def *.list *.names *.temp *.nodes cifplot.kic *[0-9][0-9][0-9] >& /dev/null
  127.