mirror of https://github.com/YosysHQ/nextpnr.git
Add a workaround for DCI for now
Signed-off-by: gatecat <gatecat@ds0.me>
This commit is contained in:
parent
fc1f50937c
commit
1f4d3fdc91
|
|
@ -742,6 +742,8 @@ struct FasmBackend
|
||||||
|
|
||||||
dict<int, BankIoConfig> ioconfig_by_hclk;
|
dict<int, BankIoConfig> ioconfig_by_hclk;
|
||||||
|
|
||||||
|
bool warned_dci = false;
|
||||||
|
|
||||||
void write_io_config(CellInfo *pad)
|
void write_io_config(CellInfo *pad)
|
||||||
{
|
{
|
||||||
NetInfo *pad_net = pad->getPort(id_PAD);
|
NetInfo *pad_net = pad->getPort(id_PAD);
|
||||||
|
|
@ -760,6 +762,13 @@ struct FasmBackend
|
||||||
std::string tile = uarch->tile_name(pad->bel.tile);
|
std::string tile = uarch->tile_name(pad->bel.tile);
|
||||||
push(tile);
|
push(tile);
|
||||||
|
|
||||||
|
if (boost::ends_with(iostandard, "_T_DCI")) {
|
||||||
|
if (!warned_dci)
|
||||||
|
log_warning("DCI is not supported, will be removed.\n");
|
||||||
|
warned_dci = true;
|
||||||
|
iostandard.erase(iostandard.size() - 6, iostandard.size());
|
||||||
|
}
|
||||||
|
|
||||||
bool is_riob18 = boost::starts_with(tile, "RIOB18_");
|
bool is_riob18 = boost::starts_with(tile, "RIOB18_");
|
||||||
bool is_sing = boost::contains(tile, "_SING_");
|
bool is_sing = boost::contains(tile, "_SING_");
|
||||||
bool is_top_sing = pad->bel.tile < uarch->hclk_for_iob(pad->bel);
|
bool is_top_sing = pad->bel.tile < uarch->hclk_for_iob(pad->bel);
|
||||||
|
|
@ -780,6 +789,7 @@ struct FasmBackend
|
||||||
iostandard.erase(0, 5);
|
iostandard.erase(0, 5);
|
||||||
bool is_sstl = iostandard == "SSTL12" || iostandard == "SSTL135" || iostandard == "SSTL15";
|
bool is_sstl = iostandard == "SSTL12" || iostandard == "SSTL135" || iostandard == "SSTL15";
|
||||||
|
|
||||||
|
|
||||||
int hclk = uarch->hclk_for_iob(pad->bel);
|
int hclk = uarch->hclk_for_iob(pad->bel);
|
||||||
|
|
||||||
if (only_diff)
|
if (only_diff)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue