-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
621 changed files
with
400,976 additions
and
48,597 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[flake8] | ||
max-line-length = 100 | ||
extend-exclude = build, dist, lambdapdk/gf180/base/klayout | ||
extend-exclude = build, dist, lambdapdk/gf180/base/setup/klayout | ||
|
This file contains 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 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,7 @@ | ||
This is a refactored copy of the GLobalFoundries 180 library that is compatible with the Silicon Compiler Collection and industry practices. The golden version which might be updated fron time to time can be found at: | ||
|
||
volare enable --pdk gf180mcu 3af133706e554a740cfe60f21e773d9eaa41838c | ||
gf180mcuA | ||
|
||
https://github.com/The-OpenROAD-Project/OpenROAD-flow-scripts/tree/bba05379e6de0e3f7ab818d9052a2dd80d9f5dea/flow/platforms/gf180 | ||
https://github.com/google/gf180mcu-pdk |
This file contains 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,131 @@ | ||
|
||
import siliconcompiler | ||
from lambdapdk import register_data_source | ||
|
||
|
||
#################################################### | ||
# PDK Setup | ||
#################################################### | ||
def setup(chip): | ||
''' | ||
... | ||
... Process Highlights: | ||
* ... | ||
PDK content: | ||
* ... | ||
More information: | ||
* ... | ||
Sources: | ||
* ... | ||
''' | ||
|
||
foundry = 'globalfoundries' | ||
process = 'gf180' | ||
stackup = '5LM_1TM' | ||
|
||
node = 180 | ||
|
||
pdkdir = "lambdapdk/gf180/base/" | ||
|
||
register_data_source(chip) | ||
pdk = siliconcompiler.PDK(chip, process, package='lambdapdk') | ||
|
||
# process name | ||
pdk.set('pdk', process, 'foundry', foundry) | ||
pdk.set('pdk', process, 'node', node) | ||
pdk.set('pdk', process, 'stackup', stackup) | ||
pdk.set('pdk', process, 'wafersize', 200) | ||
|
||
for stackup in ("3LM_1TM_6K", | ||
"3LM_1TM_9K", | ||
"3LM_1TM_11K", | ||
"3LM_1TM_30K", | ||
"4LM_1TM_6K", | ||
"4LM_1TM_9K", | ||
"4LM_1TM_11K", | ||
"4LM_1TM_30K", | ||
"5LM_1TM_9K", | ||
"5LM_1TM_11K", | ||
"6LM_1TM_9K"): | ||
for libtype in ("7t", "9t"): | ||
# APR Setup | ||
for tool in ('openroad', 'klayout', 'magic'): | ||
pdk.set('pdk', process, 'aprtech', tool, stackup, libtype, 'lef', | ||
pdkdir + f'/apr/gf180mcu_{stackup}_{libtype}_tech.lef') | ||
max_layer = int(stackup[0]) | ||
|
||
pdk.set('pdk', process, 'minlayer', stackup, 'Metal1') | ||
pdk.set('pdk', process, 'maxlayer', stackup, f'Metal{max_layer}') | ||
|
||
# Layer map and display file | ||
pdk.set('pdk', process, 'layermap', 'klayout', 'def', 'klayout', stackup, | ||
pdkdir + '/setup/klayout/tech/gf180mcu.lyt') | ||
pdk.set('pdk', process, 'display', 'klayout', stackup, | ||
pdkdir + '/setup/klayout/tech/gf180mcu.lyp') | ||
|
||
# Openroad global routing grid derating | ||
openroad_layer_adjustments = { | ||
'Metal1': 0.0, | ||
'Metal2': 0.0, | ||
'Metal3': 0.0, | ||
'Metal4': 0.0, | ||
'Metal5': 0.0, | ||
'Metal6': 0.0, | ||
'MetalTop': 1.0 | ||
} | ||
for layer, adj in openroad_layer_adjustments.items(): | ||
pdk.set('pdk', process, 'var', 'openroad', f'{layer}_adjustment', stackup, str(adj)) | ||
if layer == pdk.get('pdk', process, 'maxlayer', stackup): | ||
break | ||
|
||
if max_layer == 2: | ||
pdk.set('pdk', process, 'var', 'openroad', 'rclayer_signal', stackup, 'Metal2') | ||
pdk.set('pdk', process, 'var', 'openroad', 'rclayer_clock', stackup, 'Metal2') | ||
|
||
pdk.set('pdk', process, 'var', 'openroad', 'pin_layer_vertical', stackup, 'Metal2') | ||
pdk.set('pdk', process, 'var', 'openroad', 'pin_layer_horizontal', stackup, 'Metal1') | ||
elif max_layer == 3: | ||
pdk.set('pdk', process, 'var', 'openroad', 'rclayer_signal', stackup, 'Metal2') | ||
pdk.set('pdk', process, 'var', 'openroad', 'rclayer_clock', stackup, 'Metal2') | ||
|
||
pdk.set('pdk', process, 'var', 'openroad', 'pin_layer_vertical', stackup, 'Metal2') | ||
pdk.set('pdk', process, 'var', 'openroad', 'pin_layer_horizontal', stackup, 'Metal3') | ||
elif max_layer == 4: | ||
pdk.set('pdk', process, 'var', 'openroad', 'rclayer_signal', stackup, 'Metal2') | ||
pdk.set('pdk', process, 'var', 'openroad', 'rclayer_clock', stackup, 'Metal3') | ||
|
||
pdk.set('pdk', process, 'var', 'openroad', 'pin_layer_vertical', stackup, 'Metal4') | ||
pdk.set('pdk', process, 'var', 'openroad', 'pin_layer_horizontal', stackup, 'Metal3') | ||
elif max_layer >= 5: | ||
pdk.set('pdk', process, 'var', 'openroad', 'rclayer_signal', stackup, 'Metal3') | ||
pdk.set('pdk', process, 'var', 'openroad', 'rclayer_clock', stackup, 'Metal4') | ||
|
||
pdk.set('pdk', process, 'var', 'openroad', 'pin_layer_vertical', stackup, 'Metal4') | ||
pdk.set('pdk', process, 'var', 'openroad', 'pin_layer_horizontal', stackup, 'Metal3') | ||
|
||
# PEX | ||
for corner in ["bst", "typ", "wst"]: | ||
if stackup in ('3LM_1TM_6K', '3LM_1TM_9K', '3LM_1TM_11K', '3LM_1TM_30K', '4LM_1TM_6K'): | ||
continue | ||
base_name = f'gf180mcu_1p{stackup.replace("L", "").lower()}_sp_smim_OPTB_{corner}' | ||
pdk.set('pdk', process, 'pexmodel', 'openroad', stackup, corner, | ||
pdkdir + '/pex/openroad/' + base_name + '.tcl') | ||
pdk.set('pdk', process, 'pexmodel', 'openroad-openrcx', stackup, corner, | ||
pdkdir + '/pex/openroad/' + base_name + '.rules') | ||
|
||
return pdk | ||
|
||
|
||
######################### | ||
if __name__ == "__main__": | ||
pdk = setup(siliconcompiler.Chip('<pdk>')) | ||
pdk.write_manifest(f'{pdk.top()}.json') | ||
pdk.check_filepaths() |
This file contains 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
Oops, something went wrong.