aboutsummaryrefslogtreecommitdiffstats
path: root/mistral/arch.cc
diff options
context:
space:
mode:
authorgatecat <gatecat@ds0.me>2022-02-03 15:28:46 +0000
committergatecat <gatecat@ds0.me>2022-02-03 15:28:46 +0000
commit84399caebe3c3eb0eba5275b7e2d5479404ba1a7 (patch)
tree42d9ba33932d4da9155fdb5b44e4a4ed6e6ef104 /mistral/arch.cc
parenta78719ecc157475213356c210aff26502c372c34 (diff)
downloadnextpnr-84399caebe3c3eb0eba5275b7e2d5479404ba1a7.tar.gz
nextpnr-84399caebe3c3eb0eba5275b7e2d5479404ba1a7.tar.bz2
nextpnr-84399caebe3c3eb0eba5275b7e2d5479404ba1a7.zip
run clangformat
Signed-off-by: gatecat <gatecat@ds0.me>
Diffstat (limited to 'mistral/arch.cc')
-rw-r--r--mistral/arch.cc15
1 files changed, 8 insertions, 7 deletions
diff --git a/mistral/arch.cc b/mistral/arch.cc
index f61d07ab..c50e30f4 100644
--- a/mistral/arch.cc
+++ b/mistral/arch.cc
@@ -43,18 +43,19 @@ void IdString::initialize_arch(const BaseCtx *ctx)
#undef X
}
-CycloneV::rnode_t Arch::find_rnode(CycloneV::block_type_t bt, int x, int y, CycloneV::port_type_t port, int bi, int pi) const
+CycloneV::rnode_t Arch::find_rnode(CycloneV::block_type_t bt, int x, int y, CycloneV::port_type_t port, int bi,
+ int pi) const
{
auto pn1 = CycloneV::pnode(bt, x, y, port, bi, pi);
auto rn1 = cyclonev->pnode_to_rnode(pn1);
- if(rn1)
+ if (rn1)
return rn1;
- if(bt == CycloneV::GPIO) {
+ if (bt == CycloneV::GPIO) {
auto pn2 = cyclonev->p2p_to(pn1);
- if(!pn2) {
+ if (!pn2) {
auto pnv = cyclonev->p2p_from(pn1);
- if(!pnv.empty())
+ if (!pnv.empty())
pn2 = pnv[0];
}
auto pn3 = cyclonev->hmc_get_bypass(pn2);
@@ -68,9 +69,9 @@ CycloneV::rnode_t Arch::find_rnode(CycloneV::block_type_t bt, int x, int y, Cycl
WireId Arch::get_port(CycloneV::block_type_t bt, int x, int y, int bi, CycloneV::port_type_t port, int pi) const
{
auto rn = find_rnode(bt, x, y, port, bi, pi);
- if(rn)
+ if (rn)
return WireId(rn);
-
+
log_error("Trying to connect unknown node %s\n", CycloneV::pn2s(CycloneV::pnode(bt, x, y, port, bi, pi)).c_str());
}