mabrains / sky130_klayout_pdk

Skywater 130nm Klayout Device Generators PDK
GNU Affero General Public License v3.0
30 stars 12 forks source link

sky130.lylvs: XML parser error #28

Open sergeiandreyev opened 1 year ago

sergeiandreyev commented 1 year ago

Root cause

Angle brackets in copyright comment result in XML parser error:

> ...
> # You should have received a copy of the GNU Affero General Public License
> # along with this program.  If not, see <https://www.gnu.org/licenses/>.

Actual Behavior

ERROR: Reading .../klayout_sky130/sky130_tech/tech/sky130/lvs/sky130.lylvs: XML parser error: error occurred while parsing element in line 31, column 49

Steps to Reproduce the Problem

  1. Run: > KLAYOUT_HOME=./sky130_tech klayout -e

Specifications

proppy commented 1 year ago

This can be worked around by removing the following files from the lylvs file: https://github.com/mabrains/sky130_klayout_pdk/blob/main/sky130_tech/tech/sky130/lvs/sky130.lylvs#L18-L32 but a proper fix would be to escape the angle bracket appropriately as < &lt; and > &gt;