aboutsummaryrefslogtreecommitdiffstats
path: root/mistral/globals.cc
diff options
context:
space:
mode:
authorOlivier Galibert <galibert@pobox.com>2021-10-19 22:36:25 +0200
committerOlivier Galibert <galibert@pobox.com>2021-10-19 22:36:25 +0200
commita0f152216720a549957e50493e6d69a4d57c6122 (patch)
treed4ae6185055fd408fc733e00896ed75a68f28005 /mistral/globals.cc
parent8d330f1dc762e07535d148f41fcf7e32d91b060d (diff)
downloadnextpnr-a0f152216720a549957e50493e6d69a4d57c6122.tar.gz
nextpnr-a0f152216720a549957e50493e6d69a4d57c6122.tar.bz2
nextpnr-a0f152216720a549957e50493e6d69a4d57c6122.zip
Normalize formatting
Diffstat (limited to 'mistral/globals.cc')
-rw-r--r--mistral/globals.cc13
1 files changed, 8 insertions, 5 deletions
diff --git a/mistral/globals.cc b/mistral/globals.cc
index 40d34155..d41b2afe 100644
--- a/mistral/globals.cc
+++ b/mistral/globals.cc
@@ -45,18 +45,21 @@ bool Arch::is_clkbuf_cell(IdString cell_type) const
void Arch::create_hps_mpu_general_purpose(int x, int y)
{
- BelId gp_bel = add_bel(x, y, id_cyclonev_hps_interface_mpu_general_purpose, id_cyclonev_hps_interface_mpu_general_purpose);
+ BelId gp_bel =
+ add_bel(x, y, id_cyclonev_hps_interface_mpu_general_purpose, id_cyclonev_hps_interface_mpu_general_purpose);
for (int i = 0; i < 32; i++) {
- add_bel_pin(gp_bel, id(stringf("gp_in[%d]", i)), PORT_IN, get_port(CycloneV::HPS_MPU_GENERAL_PURPOSE, x, y, -1, CycloneV::GP_IN, i));
- add_bel_pin(gp_bel, id(stringf("gp_out[%d]", i)), PORT_OUT, get_port(CycloneV::HPS_MPU_GENERAL_PURPOSE, x, y, -1, CycloneV::GP_OUT, i));
+ add_bel_pin(gp_bel, id(stringf("gp_in[%d]", i)), PORT_IN,
+ get_port(CycloneV::HPS_MPU_GENERAL_PURPOSE, x, y, -1, CycloneV::GP_IN, i));
+ add_bel_pin(gp_bel, id(stringf("gp_out[%d]", i)), PORT_OUT,
+ get_port(CycloneV::HPS_MPU_GENERAL_PURPOSE, x, y, -1, CycloneV::GP_OUT, i));
}
}
void Arch::create_control(int x, int y)
{
BelId oscillator_bel = add_bel(x, y, id_cyclonev_oscillator, id_cyclonev_oscillator);
- add_bel_pin(oscillator_bel, id("oscena"), PORT_IN, get_port(CycloneV::CTRL, x, y, -1, CycloneV::OSC_ENA, -1));
- add_bel_pin(oscillator_bel, id("clkout"), PORT_OUT, get_port(CycloneV::CTRL, x, y, -1, CycloneV::CLK_OUT, -1));
+ add_bel_pin(oscillator_bel, id("oscena"), PORT_IN, get_port(CycloneV::CTRL, x, y, -1, CycloneV::OSC_ENA, -1));
+ add_bel_pin(oscillator_bel, id("clkout"), PORT_OUT, get_port(CycloneV::CTRL, x, y, -1, CycloneV::CLK_OUT, -1));
add_bel_pin(oscillator_bel, id("clkout1"), PORT_OUT, get_port(CycloneV::CTRL, x, y, -1, CycloneV::CLK_OUT1, -1));
}