From 9aff6aa55c212df448477f3e28711ac3d0ee5aff Mon Sep 17 00:00:00 2001 From: David Shah Date: Sat, 26 Sep 2020 09:24:01 +0100 Subject: ecp5: Add support for setting PIO clamp Signed-off-by: David Shah --- ecp5/bitstream.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ecp5') diff --git a/ecp5/bitstream.cc b/ecp5/bitstream.cc index bef149a4..dd954e86 100644 --- a/ecp5/bitstream.cc +++ b/ecp5/bitstream.cc @@ -915,6 +915,9 @@ void write_bitstream(Context *ctx, std::string base_config_file, std::string tex if (ci->attrs.count(ctx->id("DIFFRESISTOR"))) cc.tiles[pio_tile].add_enum(pio + ".DIFFRESISTOR", str_or_default(ci->attrs, ctx->id("DIFFRESISTOR"), "OFF")); + if (ci->attrs.count(ctx->id("CLAMP"))) + cc.tiles[pio_tile].add_enum(pio + ".CLAMP", str_or_default(ci->attrs, ctx->id("CLAMP"), "OFF")); + if (ci->attrs.count(ctx->id("DRIVE"))) { static bool drive_3v3_warning_done = false; if (iotype == "LVCMOS33") { -- cgit v1.2.3