Merge pull request #969 from YosysHQ/gatecat/ice40-wirename-fix

ice40: Fix wirenames containing / which is the list separator
This commit is contained in:
gatecat 2022-03-31 06:45:54 +01:00 committed by GitHub
commit 219310b203
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1312,7 +1312,7 @@ for t in range(num_tile_types):
bba.l("wire_data_%s" % dev_name, "WireInfoPOD") bba.l("wire_data_%s" % dev_name, "WireInfoPOD")
for wire, info in enumerate(wireinfo): for wire, info in enumerate(wireinfo):
bba.s(info["name"], "name") bba.s(info["name"].replace('/', ':'), "name") # / is used as an IdStringList separator; can't also be within name
bba.u8(info["name_x"], "name_x") bba.u8(info["name_x"], "name_x")
bba.u8(info["name_y"], "name_y") bba.u8(info["name_y"], "name_y")
bba.u16(0, "padding") bba.u16(0, "padding")