commit | dc8149d8bd5bc475f99fb02e75b058e82de5f9eb | [log] [tgz] |
---|---|---|
author | Tim Edwards <tim@opencircuitdesign.com> | Tue Oct 13 14:28:03 2020 -0400 |
committer | Tim Edwards <tim@opencircuitdesign.com> | Tue Oct 13 14:28:03 2020 -0400 |
tree | 433fd25d1f5d8b70eed823ae2710964cbc58794b | |
parent | 116a34a1c2bad2418d2ce815a50894824a16510e [diff] [blame] |
Updated cdl2spi.py to handle resistors with models specified normally and not with $[...].
diff --git a/common/cdl2spi.py b/common/cdl2spi.py index 02e3bb7..8ed0eab 100755 --- a/common/cdl2spi.py +++ b/common/cdl2spi.py
@@ -231,7 +231,12 @@ cdlModel="" for i in range(len(tok)-1, 0, -1): if not tok[i].startswith("$"): - continue + if '=' in tok[i]: + continue + elif cdlModel == '': + cdlModel = tok[i] + del tok[i] + break tokl = tok[i].lower() if tokl.startswith("$sub="): if cdlTerm == "":