-
Notifications
You must be signed in to change notification settings - Fork 483
Synopsys Library Preparation flow #185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
20Mhz
wants to merge
9
commits into
google:main
Choose a base branch
from
20Mhz:synopsys_pull
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
3a6c8b1
Synopsys Library Preparation flow
20Mhz a5aa74f
typo
20Mhz 259e9d3
Fix for PR Boundary
20Mhz c036190
Updated PR boundary to 81 to pick physical only cells
20Mhz f10f0b7
Added some text layers used by sram examples
20Mhz ea44ef7
Adds info from ICT and fix bugs
20Mhz 70b3381
Update requirements.txt
20Mhz 502c6c5
ITF: Split TOPNIT and lint
20Mhz 41f891b
Update skywater130.nominal.itf
20Mhz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,65 @@ | ||
| LIBRARIES = ../../../libraries | ||
|
|
||
| LIB_NAME = sky130_fd_sc_hd | ||
|
|
||
| ROOT = $(realpath .) | ||
| SCRIPTS = $(ROOT)/scripts | ||
| RESULTS_DIR = $(ROOT)/results | ||
| LIBS_DIR = $(RESULTS_DIR)/lib | ||
| TECH_DIR = $(RESULTS_DIR)/tech | ||
| OUTPUT_DIR = $(LIBS_DIR)/$(LIB_NAME) | ||
| LOGS = $(ROOT)/logs | ||
|
|
||
| COMMON_OPTIONS = 'set target_lib_dir $(LIBRARIES)/$(LIB_NAME)/latest; set target_lib_name $(LIB_NAME); set output_dir $(OUTPUT_DIR)' | ||
| LC_OPTIONS = -x $(COMMON_OPTIONS) | ||
| LM_OPTIONS = -x $(COMMON_OPTIONS) | ||
| MW_OPTIONS = $(COMMON_OPTIONS) | ||
|
|
||
| all: $(LIB_NAME)_ndm tech | ||
|
|
||
| setup: | ||
| test -d work || mkdir work | ||
| test -d $(OUTPUT_DIR) || mkdir -p $(OUTPUT_DIR) | ||
| test -d $(LOGS) || mkdir $(LOGS) | ||
| test -d $(TECH_DIR) || mkdir -p $(TECH_DIR) | ||
| date > $@ | ||
|
|
||
| $(LIB_NAME)_db: setup | ||
| cd work && lc_shell -f $(SCRIPTS)/lc.tcl $(LC_OPTIONS) |& tee $(LOGS)/lc_$@.log | ||
| #! grep -q '^Error' $(LOGS)/lc_$@.log | ||
| date > $@ | ||
|
|
||
| $(LIB_NAME)_mw: setup | ||
| cd work && echo $(MW_OPTIONS) > setup.tcl | ||
| cd work && Milkyway -nogui -file $(SCRIPTS)/mw.tcl |& tee $(LOGS)/mw_$@.log | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In some license-bundles standalone Milkyway must be called with This could be fixed by introducing a new variable |
||
| #! grep -q '^Error' $(LOGS)/mw_$@.log | ||
| date > $@ | ||
|
|
||
| $(LIB_NAME)_ndm: $(LIB_NAME)_db $(LIB_NAME)_mw setup | ||
| cd work && icc2_lm_shell -f $(SCRIPTS)/lm.tcl $(LM_OPTIONS) |& tee $(LOGS)/lm_$@.log | ||
| date > $@ | ||
|
|
||
| techfile: setup | ||
| test -d $(TECH_DIR)/milkyway/ || mkdir $(TECH_DIR)/milkyway/ | ||
| cp $(ROOT)/milkyway/sky130_fd_sc_hd.tf $(TECH_DIR)/milkyway/skywater130_fd_sc_hd.tf | ||
| date > $@ | ||
|
|
||
| tluplus: setup | ||
| test -d $(TECH_DIR)/star_rcxt/ || mkdir $(TECH_DIR)/star_rcxt/ | ||
| cp $(ROOT)/milkyway/skywater130.mw2itf.map $(TECH_DIR)/star_rcxt/ | ||
| cd work && grdgenxo -itf2TLUPlus -i $(ROOT)/star_rcxt/skywater130.nominal.itf -o $(TECH_DIR)/star_rcxt/skywater130.nominal.tluplus |& tee $(LOGS)/$@.log | ||
| date > $@ | ||
|
|
||
| tech: techfile tluplus | ||
| date > $@ | ||
|
|
||
| clean: | ||
| rm -rfv setup *_mw *_db *_ndm *_all techfile tluplus tech | ||
|
|
||
| clean_all: clean | ||
| rm -rf work | ||
| rm -rf $(LOGS) | ||
| rm -rf $(RESULTS_DIR) | ||
|
|
||
| # TODO: | ||
| #all: sky130_fd_sc_hd sky130_fd_sc_hdll sky130_fd_sc_hs sky130_fd_sc_ls sky130_fd_sc_ms | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| Support files for setting up the technology on Synospys Flow | ||
| Alpha quality, provided as-is, no guarantees. | ||
|
|
||
| ``` | ||
| git submodule update --init libraries/sky130_fd_sc_hd/latest | ||
| make sky130_fd_sc_hd | ||
| cd vendor/synopsys | ||
| make sky130_fd_sc_hd_db | ||
| make sky130_fd_sc_hd_mw | ||
| make sky130_fd_sc_hd_ndm | ||
| make tluplus | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
|
|
||
| Library Manager (TM) | ||
|
|
||
| Version R-2020.09 for linux64 - Sep 01, 2020 | ||
| This release has significant feature enhancements. Please review the Release | ||
| Notes associated with this release. | ||
|
|
||
| Copyright (c) 1988 - 2020 Synopsys, Inc. | ||
| This software and the associated documentation are proprietary to Synopsys, | ||
| Inc. This software may only be used in accordance with the terms and conditions | ||
| of a written license agreement with Synopsys, Inc. All other use, reproduction, | ||
| or distribution of this software is strictly prohibited. | ||
|
|
||
| lm_shell> exit | ||
| Maximum memory usage for this session: 63.54 MB | ||
| CPU usage for this session: 4 seconds ( 0.00 hours) | ||
| Elapsed time for this session: 15 seconds ( 0.00 hours) | ||
| Thank you for using Library Manager. | ||
|
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The |& before tee result in an error:
/bin/sh: 1: Syntax error: "&" unexpected
It works after removing the &
cd work && lc_shell -f $(SCRIPTS)/lc.tcl $(LC_OPTIONS) |& tee $(LOGS)/lc_$@.log