aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5
diff options
context:
space:
mode:
authorDavid Shah <dave@ds0.me>2020-04-07 09:44:40 +0100
committerGitHub <noreply@github.com>2020-04-07 09:44:40 +0100
commite8933f8519768447874167dcb62a6cd2b24a0225 (patch)
tree0fba0aa5671d7eb2a98b98a011f8986fafde4ee8 /ecp5
parent571ad7d604ac430b58bae61eeada85e75bc11a66 (diff)
parent31e9fffadd95f8df77cf7e2db1050968f3f044e8 (diff)
downloadnextpnr-e8933f8519768447874167dcb62a6cd2b24a0225.tar.gz
nextpnr-e8933f8519768447874167dcb62a6cd2b24a0225.tar.bz2
nextpnr-e8933f8519768447874167dcb62a6cd2b24a0225.zip
Merge pull request #419 from garytwong/handle-opendrain
Handle OPENDRAIN attribute.
Diffstat (limited to 'ecp5')
-rw-r--r--ecp5/bitstream.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/ecp5/bitstream.cc b/ecp5/bitstream.cc
index 620add54..54d0c0a4 100644
--- a/ecp5/bitstream.cc
+++ b/ecp5/bitstream.cc
@@ -931,6 +931,9 @@ void write_bitstream(Context *ctx, std::string base_config_file, std::string tex
iovoltage_to_str(vccio).c_str(), ci->name.c_str(ctx));
}
}
+ if (ci->attrs.count(ctx->id("OPENDRAIN")))
+ cc.tiles[pio_tile].add_enum(pio + ".OPENDRAIN",
+ str_or_default(ci->attrs, ctx->id("OPENDRAIN"), "OFF"));
std::string datamux_oddr = str_or_default(ci->params, ctx->id("DATAMUX_ODDR"), "PADDO");
if (datamux_oddr != "PADDO")
cc.tiles[pic_tile].add_enum(pio + ".DATAMUX_ODDR", datamux_oddr);