From 81c549549d88640ed77fc2b1f3da52a10b4f93ce Mon Sep 17 00:00:00 2001 From: gatecat Date: Tue, 6 Jul 2021 11:45:27 +0100 Subject: ecp5: Add DCSC support Signed-off-by: gatecat --- ecp5/bitstream.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ecp5/bitstream.cc') diff --git a/ecp5/bitstream.cc b/ecp5/bitstream.cc index c92de083..a544f2b7 100644 --- a/ecp5/bitstream.cc +++ b/ecp5/bitstream.cc @@ -1019,6 +1019,11 @@ void write_bitstream(Context *ctx, std::string base_config_file, std::string tex tg.config.add_enum(std::string("DCC_") + belname[0] + belname.substr(4) + ".MODE", "DCCA"); cc.tilegroups.push_back(tg); } + } else if (ci->type == ctx->id("DCSC")) { + std::set dcs_tiles{"EBR_CMUX_LL", "EBR_CMUX_UL", "EBR_CMUX_LL_25K", "DSP_CMUX_UL"}; + std::string tile = ctx->get_tile_by_type_loc(bel.location.y, bel.location.x, dcs_tiles); + std::string dcs = ctx->loc_info(bel)->bel_data[bel.index].name.get(); + cc.tiles[tile].add_enum(dcs + ".DCSMODE", str_or_default(ci->attrs, ctx->id("DCSMODE"), "POS")); } else if (ci->type == ctx->id("DP16KD")) { TileGroup tg; Loc loc = ctx->getBelLocation(ci->bel); -- cgit v1.2.3