diff options
author | gatecat <gatecat@ds0.me> | 2021-07-06 14:06:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-06 14:06:31 +0100 |
commit | bf542f07b02856f6a04ffc8b5a177baf9acfcd72 (patch) | |
tree | 607728a549cf4920ed66420ce8f28828a0c624e2 /ecp5/bitstream.cc | |
parent | 5b2db015a9fb27f9af9a1ce4a2f7b186fb56ea03 (diff) | |
parent | 81c549549d88640ed77fc2b1f3da52a10b4f93ce (diff) | |
download | nextpnr-bf542f07b02856f6a04ffc8b5a177baf9acfcd72.tar.gz nextpnr-bf542f07b02856f6a04ffc8b5a177baf9acfcd72.tar.bz2 nextpnr-bf542f07b02856f6a04ffc8b5a177baf9acfcd72.zip |
Merge pull request #754 from YosysHQ/gatecat/ecp5-dcs
ecp5: Add DCSC support
Diffstat (limited to 'ecp5/bitstream.cc')
-rw-r--r-- | ecp5/bitstream.cc | 5 |
1 files changed, 5 insertions, 0 deletions
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<std::string> 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); |