lots more work on klayout approach
This commit is contained in:
parent
9017984b4b
commit
0ffe18c9f1
9 changed files with 303 additions and 170 deletions
|
|
@ -6,6 +6,7 @@ from pprint import pformat
|
|||
import logging
|
||||
|
||||
import snarled
|
||||
from snarled.types import layer_t
|
||||
|
||||
|
||||
logging.basicConfig()
|
||||
|
|
@ -13,12 +14,12 @@ logging.getLogger('snarled').setLevel(logging.INFO)
|
|||
|
||||
|
||||
connectivity = [
|
||||
((1, 0), (1, 2), (2, 0)), #M1 to M2 (via V12)
|
||||
((1, 0), (1, 3), (3, 0)), #M1 to M3 (via V13)
|
||||
((2, 0), (2, 3), (3, 0)), #M2 to M3 (via V23)
|
||||
((1, 0), (1, 2), (2, 0)), # M1 to M2 (via V12)
|
||||
((1, 0), (1, 3), (3, 0)), # M1 to M3 (via V13)
|
||||
((2, 0), (2, 3), (3, 0)), # M2 to M3 (via V23)
|
||||
]
|
||||
|
||||
labels_map = {
|
||||
labels_map: dict[layer_t, layer_t] = {
|
||||
(1, 0): (1, 0),
|
||||
(2, 0): (2, 0),
|
||||
(3, 0): (3, 0),
|
||||
|
|
@ -26,6 +27,7 @@ labels_map = {
|
|||
|
||||
filename = 'connectivity.oas'
|
||||
|
||||
result = snarled.trace_layout(filename, connectivity, topcell='top', labels_map=labels_map)
|
||||
nets = snarled.trace_layout(filename, connectivity, topcell='top', labels_map=labels_map)
|
||||
result = snarled.TraceAnalysis(nets)
|
||||
|
||||
print('Result:\n', pformat(result))
|
||||
|
|
|
|||
Binary file not shown.
2
examples/run.sh
Normal file → Executable file
2
examples/run.sh
Normal file → Executable file
|
|
@ -2,4 +2,4 @@
|
|||
|
||||
cd $(dirname -- "$0") # cd to this script's parent directory
|
||||
|
||||
snarled connectivity.oas connectivity.txt -l layermap.txt
|
||||
snarled connectivity.oas connectivity.txt -m layermap.txt
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue