clangformat
Signed-off-by: David Shah <davey1576@gmail.com>
This commit is contained in:
parent
75744ff14c
commit
7a8e8999d2
@ -276,11 +276,11 @@ struct CellInfo : ArchCellInfo
|
|||||||
|
|
||||||
// placement constraints
|
// placement constraints
|
||||||
CellInfo *constr_parent;
|
CellInfo *constr_parent;
|
||||||
std::vector<CellInfo*> constr_children;
|
std::vector<CellInfo *> constr_children;
|
||||||
const int UNCONSTR = INT_MIN;
|
const int UNCONSTR = INT_MIN;
|
||||||
int constr_x = UNCONSTR; // this.x - parent.x
|
int constr_x = UNCONSTR; // this.x - parent.x
|
||||||
int constr_y = UNCONSTR; // this.y - parent.y
|
int constr_y = UNCONSTR; // this.y - parent.y
|
||||||
int constr_z = UNCONSTR; // this.z - parent.z
|
int constr_z = UNCONSTR; // this.z - parent.z
|
||||||
bool constr_abs_z = false; // parent.z := 0
|
bool constr_abs_z = false; // parent.z := 0
|
||||||
// parent.[xyz] := 0 when (constr_parent == nullptr)
|
// parent.[xyz] := 0 when (constr_parent == nullptr)
|
||||||
};
|
};
|
||||||
|
@ -328,7 +328,8 @@ BelId Arch::getPackagePinBel(const std::string &pin) const
|
|||||||
std::string Arch::getBelPackagePin(BelId bel) const
|
std::string Arch::getBelPackagePin(BelId bel) const
|
||||||
{
|
{
|
||||||
for (int i = 0; i < package_info->num_pins; i++) {
|
for (int i = 0; i < package_info->num_pins; i++) {
|
||||||
if (Location(package_info->pin_data[i].abs_loc) == bel.location && package_info->pin_data[i].bel_index == bel.index) {
|
if (Location(package_info->pin_data[i].abs_loc) == bel.location &&
|
||||||
|
package_info->pin_data[i].bel_index == bel.index) {
|
||||||
return package_info->pin_data[i].name.get();
|
return package_info->pin_data[i].name.get();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -280,8 +280,8 @@ void write_bitstream(Context *ctx, std::string base_config_file, std::string tex
|
|||||||
other = "PIOD";
|
other = "PIOD";
|
||||||
else
|
else
|
||||||
log_error("cannot place differential IO at location %s\n", pio.c_str());
|
log_error("cannot place differential IO at location %s\n", pio.c_str());
|
||||||
//cc.tiles[pio_tile].add_enum(other + ".BASE_TYPE", "_NONE_");
|
// cc.tiles[pio_tile].add_enum(other + ".BASE_TYPE", "_NONE_");
|
||||||
//cc.tiles[pic_tile].add_enum(other + ".BASE_TYPE", "_NONE_");
|
// cc.tiles[pic_tile].add_enum(other + ".BASE_TYPE", "_NONE_");
|
||||||
cc.tiles[pio_tile].add_enum(other + ".PULLMODE", "NONE");
|
cc.tiles[pio_tile].add_enum(other + ".PULLMODE", "NONE");
|
||||||
cc.tiles[pio_tile].add_enum(pio + ".PULLMODE", "NONE");
|
cc.tiles[pio_tile].add_enum(pio + ".PULLMODE", "NONE");
|
||||||
}
|
}
|
||||||
|
@ -207,15 +207,9 @@ BelId Arch::getBelByLocation(Loc loc) const
|
|||||||
return BelId();
|
return BelId();
|
||||||
}
|
}
|
||||||
|
|
||||||
const std::vector<BelId> &Arch::getBelsByTile(int x, int y) const
|
const std::vector<BelId> &Arch::getBelsByTile(int x, int y) const { return bels_by_tile.at(x).at(y); }
|
||||||
{
|
|
||||||
return bels_by_tile.at(x).at(y);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool Arch::getBelGlobalBuf(BelId bel) const
|
bool Arch::getBelGlobalBuf(BelId bel) const { return bels.at(bel).gb; }
|
||||||
{
|
|
||||||
return bels.at(bel).gb;
|
|
||||||
}
|
|
||||||
|
|
||||||
uint32_t Arch::getBelChecksum(BelId bel) const
|
uint32_t Arch::getBelChecksum(BelId bel) const
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user