Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
refob committed Jun 3, 2021
0 parents commit a9ca0a9
Show file tree
Hide file tree
Showing 45 changed files with 30,603 additions and 0 deletions.
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2021 Reinhard Fobbe

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
23 changes: 23 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#LAYPROPS=output/df2-0.24.10-1.1.lyp
#LAYPROPS=output/df2-0.27-0.lyp
LAYPROPS=output/oa-0.27-0.lyp

default:
firefox doc/load_lefdef_tutorial.html

lefdef:
klayout -l ${LAYPROPS} \
-rd layermap="../klayout/cmos180.encmap" \
-rd leftech="../lef/cmos180.lef" \
-rd lefcell="../lef/cmos180osu.lef" \
-rd def="input/def/fifo.def" \
-rx -rm input/klayout/load_lefdef.rb

gds:
klayout -l ${LAYPROPS} input/gds/fifo.gds

# run: File>Import Cadence Techfile
# gds input required, else you get "error no view selected" from the script
setup:
klayout -rm input/klayout/import_tf_27012017.rbm input/gds/fifo.gds

5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# load_lefdef_tutorial
The easy way to load LEF/DEF into the KLayout editor
<p>
To start the tutorial please download the package using KLayout and then change to ~/.klayout/salt/load_lefdef_tutorial and load "doc/load_lefdef_tutorial.html" into your browser.

21 changes: 21 additions & 0 deletions doc/Copyright.Matthias_Koefferlein
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2017 Matthias Köfferlein

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
13 changes: 13 additions & 0 deletions doc/Copyright.NCSU_CDK
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
;; NCSU CDK v. 1.5.1
;; Last Modified: 2006-08-22

The NCSU CDK is Copyright (C) NC State University, 1998, 1999, 2004,
2006. Users are free to use or modify the NCSU CDK as appropriate as long
as this notice appears in the modified package. The NCSU CDK is
provided with NO WARRANTY.

As of version 1.5.1, all documentation for the NCSU CDK is provided
by the NCSU Cadence Wiki which can be found at:

http://www.cadence.ncsu.edu/

28 changes: 28 additions & 0 deletions doc/Copyright.OSU
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@

This software is being provided to you, the LICENSEE, by the Oklahoma
State University (OSU) under the following license. By
obtaining, using and/or copying this software, you agree that you have
read, understood, and will comply with these terms and conditions:

Permission to use, copy, and modify this software and its documentation for
research and educational purposes only and without fee or royalty is hereby
granted, provided that you agree to comply with the following copyright
notice and statements, including the disclaimer, and that the same appear
on ALL copies of the software and documentation, including modifications
that you make for internal use or for distribution:

Copyright 1999-2007 by the Oklahoma State University.
All rights reserved.

THIS SOFTWARE IS PROVIDED "AS IS", AND OSU MAKES NO REPRESENTATIONS OR
WARRANTIES, EXPRESS OR IMPLIED. By way of example, but not limitation,
OSU MAKES NO REPRESENTATIONS OR WARRANTIES OF MERCHANTABILITY OR FITNESS
FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE LICENSED SOFTWARE OR
DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS,
TRADEMARKS OR OTHER RIGHTS.

The name of the Oklahoma State University or OSU may NOT be
used in advertising or publicity pertaining to distribution of the
software. Title to copyright in this software and any associated
documentation shall at all times remain with OSU, and USER agrees to
preserve same.
49 changes: 49 additions & 0 deletions doc/Copyright.OpenCores
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
//////////////////////////////////////////////////////////////////////
//// ////
//// File name "fifo.v" ////
//// ////
//// This file is part of the "synchronous_reset_fifo" project ////
//// http://opencores.com/project,synchronous_reset_fifo ////
//// ////
//// Author: ////
//// - Madhumangal Javanthieswaran (madhu54321@opencores.org) ////
//// ////
//////////////////////////////////////////////////////////////////////
//// ////
//// Copyright (C) 2008 AUTHORS. All rights reserved. ////
//// ////
//// This source file may be used and distributed without ////
//// restriction provided that this copyright statement is not ////
//// removed from the file and that any derivative work contains ////
//// the original copyright notice and the associated disclaimer. ////
//// ////
//// This source file is free software; you can redistribute it ////
//// and/or modify it under the terms of the GNU Lesser General ////
//// Public License as published by the Free Software Foundation; ////
//// either version 2.1 of the License, or (at your option) any ////
//// later version. ////
//// ////
//// This source 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 Lesser General Public License for more ////
//// details. ////
//// ////
//// You should have received a copy of the GNU Lesser General ////
//// Public License along with this source; if not, download it ////
//// from http://www.opencores.org/lgpl.shtml ////
//// ////
//////////////////////////////////////////////////////////////////////

/************************************************************************
Design Name : synchronous_reset_fifo
Module Name : fifo.v
Description :
Date : 19/12/2011
Author : Madhumangal Javanthieswaran
Email : j.madhumangal@gmail.com
Company :
Version : 1.0
Revision : 0.0
************************************************************************/

Binary file added doc/df2_NCSU_Techlib_tsmc02_laydefs.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
59 changes: 59 additions & 0 deletions doc/df2klayout.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<html>
<head>
</head>

<body>
<h1>Convert an DFII technology file into KLayout format</h1>

Start the Cadence icfb tool and call the "Technology Tool Box". Then press the "Dump"
button in the tool box. In the "Technology Library" pulldown select the OA technology library
you want to dump. Please make sure that that you only switch the "layerDefinitions" toggle
to "On". Fill out the textbox with name of the output ASCII technology file. Then push the "OK"
button to write out the technology file.

<p>
<img src="df2_NCSU_Techlib_tsmc02_laydefs.gif">
<p>
Then locate the current "display.drf" file in the virtuoso run directory. It coIf not found then
please take a look at the technology directory, which should contain the original version of
the display.drf file. The display.drf file contains color and layer visibility and style
defintions, fill pattern and line style information.

As third item we need a copy of the OpenAccess stream layer map file. It should reside in the
technology library and is usually called "streamin.layermap". It will contain a mapping
between OA layer/OA purpose to GDSII layer number and GDSII datatype. Here is an exmaple:
<p>
<pre>
# ------------- --------------------- -----------
# Layer Name Layer purpose GDSII layer
# ------------- --------------------- -----------
nwell drawing 41 0
nwell drawing 42 0
active drawing 43 0
nactive drawing 103 0
pactive drawing 113 0
tactive drawing 60 0
poly drawing 46 0
sblock drawing 29 0
nselect drawing 45 0
pselect drawing 44 0
cc drawing 25 0
cp drawing 47 0
ca drawing 48 0
metal1 drawing 49 0
metal1 pin 81 0
metal1 boundary 49 5
via drawing 50 0
via boundary 50 5
metal2 drawing 51 0
metal2 pin 82 0
metal2 boundary 51 0
...
prBoundary drawing 100 0
instance drawing 101
</pre>
<p>
Then please move your_tech.tf, display.drf and streamin.layermap into your destination folder.

</body>
</html>
Binary file added doc/gds1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/gds2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/gds3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/init.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/lefdef1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/lefdef2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/lefdef3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/lefdef4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/lefdef5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit a9ca0a9

Please sign in to comment.