Skip to content

Commit 08ec56b

Browse files
authored
Merge pull request #1958 from antmicro/acom/fpga-interchange-improve-arch-reading-consts-upstream
FPGA Interchange: add constant synthetic tiles
2 parents 220fa98 + 724b87e commit 08ec56b

File tree

5 files changed

+383
-142
lines changed

5 files changed

+383
-142
lines changed

libs/libarchfpga/src/physical_types.h

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -795,11 +795,19 @@ struct t_physical_tile_port {
795795
bool is_clock;
796796
bool is_non_clock_global;
797797
int num_pins;
798-
PortEquivalence equivalent = PortEquivalence::NONE;
798+
PortEquivalence equivalent;
799799

800800
int index;
801801
int absolute_first_pin_index;
802802
int port_index_by_type;
803+
804+
t_physical_tile_port() {
805+
is_clock = false;
806+
is_non_clock_global = false;
807+
808+
num_pins = 1;
809+
equivalent = PortEquivalence::NONE;
810+
}
803811
};
804812

805813
/* Describes the type for a logical block
@@ -1807,8 +1815,8 @@ struct t_arch {
18071815
// for the interchange netlist format, to determine which are the constants
18081816
// net names and which virtual cell is responsible to generate them.
18091817
// The information is present in the device database.
1810-
std::string gnd_cell;
1811-
std::string vcc_cell;
1818+
std::pair<std::string, std::string> gnd_cell;
1819+
std::pair<std::string, std::string> vcc_cell;
18121820

18131821
std::string gnd_net = "$__gnd_net";
18141822
std::string vcc_net = "$__vcc_net";

0 commit comments

Comments
 (0)