aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Shah <dave@ds0.me>2018-11-01 20:41:51 +0000
committerDavid Shah <dave@ds0.me>2018-11-01 20:41:51 +0000
commit04f9b87101cc10356ccee8d189e3201258782daa (patch)
treec61cdb7465fd86910b20ee0b3a90cd5b240aab8e
parente005cc675417c4a10bfda321db2bca19c80a722f (diff)
downloadnextpnr-04f9b87101cc10356ccee8d189e3201258782daa.tar.gz
nextpnr-04f9b87101cc10356ccee8d189e3201258782daa.tar.bz2
nextpnr-04f9b87101cc10356ccee8d189e3201258782daa.zip
ecp5: Allow setting IO SLEWRATE
Signed-off-by: David Shah <dave@ds0.me>
-rw-r--r--ecp5/bitstream.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/ecp5/bitstream.cc b/ecp5/bitstream.cc
index b8d9fdda..95256732 100644
--- a/ecp5/bitstream.cc
+++ b/ecp5/bitstream.cc
@@ -664,6 +664,8 @@ void write_bitstream(Context *ctx, std::string base_config_file, std::string tex
if (dir == "INPUT" && !is_differential(ioType_from_str(iotype))) {
cc.tiles[pio_tile].add_enum(pio + ".HYSTERESIS", "ON");
}
+ if (ci->attrs.count(ctx->id("SLEWRATE")))
+ cc.tiles[pio_tile].add_enum(pio + ".SLEWRATE", str_or_default(ci->attrs, ctx->id("SLEWRATE"), "SLOW"));
} else if (ci->type == ctx->id("DCCA")) {
// Nothing to do
} else if (ci->type == ctx->id("DP16KD")) {