Normalize formatting
This commit is contained in:
parent
8d330f1dc7
commit
a0f1522167
@ -81,7 +81,8 @@ Arch::Arch(ArchArgs args)
|
|||||||
|
|
||||||
auto hps_pos = cyclonev->hps_get_pos();
|
auto hps_pos = cyclonev->hps_get_pos();
|
||||||
if (!hps_pos.empty()) {
|
if (!hps_pos.empty()) {
|
||||||
create_hps_mpu_general_purpose(CycloneV::pos2x(hps_pos[CycloneV::I_HPS_MPU_GENERAL_PURPOSE]), CycloneV::pos2y(hps_pos[CycloneV::I_HPS_MPU_GENERAL_PURPOSE]));
|
create_hps_mpu_general_purpose(CycloneV::pos2x(hps_pos[CycloneV::I_HPS_MPU_GENERAL_PURPOSE]),
|
||||||
|
CycloneV::pos2y(hps_pos[CycloneV::I_HPS_MPU_GENERAL_PURPOSE]));
|
||||||
}
|
}
|
||||||
|
|
||||||
// This import takes about 5s, perhaps long term we can speed it up, e.g. defer to Mistral more...
|
// This import takes about 5s, perhaps long term we can speed it up, e.g. defer to Mistral more...
|
||||||
|
@ -45,10 +45,13 @@ bool Arch::is_clkbuf_cell(IdString cell_type) const
|
|||||||
|
|
||||||
void Arch::create_hps_mpu_general_purpose(int x, int y)
|
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++) {
|
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_in[%d]", i)), PORT_IN,
|
||||||
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));
|
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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user