Skip to content

Commit ceb4d27

Browse files
author
silicon-vlsi
committed
install->glnxa64, added ADMIN, CHANGES and updated README
1 parent ea86567 commit ceb4d27

21 files changed

+99
-46
lines changed

ADMIN.md

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# ADMIN
2+
This documentation is NOT for users, only if you are interested to compile, install and mange releases as done in this repo.
3+
4+
## Compiling and Installing Netgen
5+
6+
**SETTING UP LINUX FOR COMPILE**
7+
8+
- Prepare for building netgen.
9+
- Base dev pkgs if not already installed ```sudo apt install build-essential linux-headers-‘uname -r‘```
10+
- Some required packages if not already installed: **Tcl/Tk** (Ubuntu package names: ```tcl-dev, tk-dev```)
11+
12+
**USING SOURCE FROM GIT REPO**
13+
14+
- Compiled on Linux AWS Lightsail **5.4.0-1049-aws** #51~**18.04.1-Ubuntu**
15+
- cd ```/home/ubuntu/sit-git-repos/eda-src```
16+
- ```git clone git://opencircuitdesign.com/netgen```
17+
- ```cd netgen```
18+
- ```git checkout netgen-1.5```
19+
- Configure: To see all configure options ```./configure -----help```. To install in root with all default options just type ```./configure```
20+
- To install it in a user directory for eg. in ```$HOME/eda-bins/netgen```:
21+
```bash
22+
./configure --prefix=$HOME/eda-bins/netgen
23+
```
24+
- Make and install:
25+
```bash
26+
make
27+
make install
28+
```
29+
- On successful compilation, the new compiled binaries/libs/should be in the target directory eg. ```$HOME/eda-bins/netgen```
30+
31+
- **IMPORTANT** If this install directory needs to be used by other users by copying the install directory, replace the absolute paths: eg. ```/home/vlsi/tools/netgen-15 -> $NETGEN_HOME```
32+
- In the following files:
33+
```bash
34+
bin/netgen, lib/netgen/tcl/netgen.tcl
35+
```
36+
- Additionally, since the ```netgen.tcl``` is sourced from ```bin/netgen``` the environment variable needs to be passed by adding the following statement to ```netgen.tcl```:
37+
```tcl
38+
set NETGEN_HOME $::env(NETGEN_HOME)
39+
```
40+
- Set the environment variables as shown in [README.md](README.md)
41+
42+
43+
**CREATING A NEW RELEASE**
44+
45+
Check out this [doc](https://docs.github.com/en/github/administering-a-repository/releasing-projects-on-github/managing-releases-in-a-repository) in docs.github.com on how to create and manage releases.
46+
47+
- Check out the difference between the previous and current version: eg.
48+
```bash
49+
diff -qr ~/eda-bins/netgen <GIT-INSTALL_DIR>/eda-netgen/glnxa64
50+
```
51+
- Copy only the differences to the git repo, `add`, `commit` and `push` to the `github`.
52+
- **IMPORTANT** Make sure you backup the previous binaries in case you need it.
53+
- Navigate to the main repo page eg. github.com/silicon-vlsi-org/eda-netgen
54+
- To the right of the list of files, click **Create a new release** under the **Release** section.
55+
- Tag the release version eg. ```v1.5.0```
56+
- The major release ```v1.5``` reflects the version of netgen.
57+
- The minor release ```vx.x.0``` reflects any changes done locally eg. examples, docs, etc.
58+
- Do not add any binaries and do not select pre-release.
59+
- Publish the release.
60+
- Now users can checkout this version eg. ```git checkout v8.3.0```
61+
62+
## Tasks
63+
- [ ] Add examples
64+
65+
66+
[OpenRAM]: https://openram.soe.ucsc.edu/
67+
[OpenRAMgit]: https://github.com/VLSIDA/OpenRAM
68+
[OpenRAMpaper]: https://ieeexplore.ieee.org/document/7827670/
69+
[SCMOS]: https://www.mosis.com/files/scmos/scmos.pdf
70+
[NGSpice]: http://ngspice.sourceforge.net
71+
[NGSpiceMan]: http://ngspice.sourceforge.net/docs/ngspice-html-manual/manual.xhtml
72+
[Magic]: http://opencircuitdesign.com/magic/
73+
[Netgen]: http://opencircuitdesign.com/netgen/
74+
75+

CHANGES.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# CHANGES
2+
This file tracks all the changes to each of the releases.
3+
4+
## v1.5.0
5+
- netgen 1.5

README.md

Lines changed: 19 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,31 @@
11
# Netgen
2+
### Current distribution version 1.5.0
3+
Precompiled for **64b 18.04 Ubuntu and Ubuntu-based Linux**. It's also tested on a light-weight Ubuntu-variant LXLE distro. If you are interested in compiling from the source, instructions in [ADMIN.md:Compiling and Installing Magic](ADMIN.md) should help.
4+
25
[Netgen] is a tool for comparing netlists, a process known as LVS, which stands for "Layout vs. Schematic". This is an important step in the integrated circuit design flow, ensuring that the geometry that has been laid out matches the expected circuit.
36
Netgen is currently maintained by Tim Edwards (opencircuitdesign.com/netgen)
47

5-
This repo contains pre-compiled binaries/libraries/etc of **Netgen Version 1.5** for **64-bit 18.04 Ubuntu Linux**. It's also tested on a light-weight Ubuntu-variant LXLE distro. If you are interested in compiling from the source, instructions in Section-[Compiling and Installing Netgen](#compiling-and-installing-netgen) should help.
8+
## Table of Content
9+
- [Downloading & Setting Up Netgen](#downloading-&-setting-up-netgen)
10+
- [Quick Start Guide](#quick-start-guide)
611

7-
## Setting up Netgen
12+
## Downloading & Setting Up Netgen
813

9-
- **NOTE**: The below is path is an example. Just make sure it matches your particular path.
10-
```bash
11-
export NETGEN_HOME=$HOME/eda-netgen
12-
export PATH=$PATH:$NETGEN_HOME/bin
13-
```
14+
- Change directory ```cd``` to install directory <INSTALL_DIR> e.g. ```/home/user/cad```
15+
- To download from the ```git``` repository:
16+
- ```git clone https://github.com/silicon-vlsi-org/eda-netgen```
17+
- Change directory to the installed `netgen` directory eg. ```cd eda-netgen```
18+
- Checkout the desired version: ```git checkout v1.5.0```
19+
- To make sure you are on the right version type ```git branch``` and your output should have a line like this :
20+
- ```* (HEAD detached at v1.5.0)```
1421

15-
## Compiling and Installing Netgen
22+
- Add the following environment variables in your `~/.bashrc` (**NOTE**: The path below is an example, make sure it matches your particular path)
1623

17-
- This repo is compiled on Linux AWS Lightsail **5.4.0-1049-aws #51~18.04.1-Ubuntu**
18-
- Clone and checkout the git repo:
19-
```bash
20-
git clone git://opencircuitdesign.com/netgen
21-
cd netgen
22-
git checkout netgen-1.5
23-
```
24-
- Some required packages if not already installed: **Tcl/Tk** (Ubuntu package names: ```tcl-dev, tk-dev```)
25-
- Configure: To see all configure options ```./configure -----help```. To install in root with all default options just type ```./configure```
26-
- To install it in a user directory:
27-
```bash
28-
./configure --prefix=$HOME/eda-netgen
29-
```
30-
- Make and install:
3124
```bash
32-
make
33-
make install
34-
```
35-
- **IMPORTANT** If this install directory needs to be used by other users by copying the install directory, replace the absolute paths: eg. ```/home/vlsi/tools/netgen-15 -> $NETGEN_HOME```
36-
- In the following files:
37-
```bash
38-
bin/netgen, lib/netgen/tcl/netgen.tcl
39-
```
40-
- Additionally, since the ```netgen.tcl``` is sourced from ```bin/netgen``` the environment variable needs to be passed by adding the following statement to ```netgen.tcl```:
41-
```tcl
42-
set NETGEN_HOME $::env(NETGEN_HOME)
25+
export NETGEN_HOME=$HOME/eda-netgen
26+
export PATH=$PATH:$NETGEN_HOME/bin
4327
```
4428

45-
## Tasks
46-
- [ ] Add examples
47-
48-
49-
[OpenRAM]: https://openram.soe.ucsc.edu/
50-
[OpenRAMgit]: https://github.com/VLSIDA/OpenRAM
51-
[OpenRAMpaper]: https://ieeexplore.ieee.org/document/7827670/
52-
[SCMOS]: https://www.mosis.com/files/scmos/scmos.pdf
53-
[NGSpice]: http://ngspice.sourceforge.net
54-
[NGSpiceMan]: http://ngspice.sourceforge.net/docs/ngspice-html-manual/manual.xhtml
55-
[Magic]: http://opencircuitdesign.com/magic/
56-
[Netgen]: http://opencircuitdesign.com/netgen/
57-
29+
## Quick Start Guide
30+
FIXME: Add examples to the repo
5831

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)