gowin: Proper use of the C++ mechanisms
Signed-off-by: YRabbit <rabbit@yrabbit.cyou>
This commit is contained in:
parent
6a1212a1e1
commit
2829a7d70a
@ -2108,7 +2108,7 @@ bool Arch::is_GCLKT_iob(const CellInfo *cell)
|
||||
return false;
|
||||
}
|
||||
|
||||
void Arch::bind_pll_to_bel(CellInfo *ci, int loc)
|
||||
void Arch::bind_pll_to_bel(CellInfo *ci, PLL loc)
|
||||
{
|
||||
BelId bel;
|
||||
switch (ci->type.hash()) {
|
||||
|
16
gowin/arch.h
16
gowin/arch.h
@ -283,6 +283,12 @@ struct ArchRanges : BaseArchRanges
|
||||
using GroupGroupsRangeT = const std::vector<GroupId> &;
|
||||
};
|
||||
|
||||
enum class PLL // fixed PLL locations
|
||||
{
|
||||
left,
|
||||
right
|
||||
};
|
||||
|
||||
struct Arch : BaseArch<ArchRanges>
|
||||
{
|
||||
std::string family;
|
||||
@ -482,7 +488,7 @@ struct Arch : BaseArch<ArchRanges>
|
||||
void add_rpll_ports(DatabasePOD const *db, BelsPOD const *bel, IdString belname, int row, int col);
|
||||
void fix_pll_nets(Context *ctx);
|
||||
bool is_GCLKT_iob(const CellInfo *cell);
|
||||
void bind_pll_to_bel(CellInfo *ci, int loc);
|
||||
void bind_pll_to_bel(CellInfo *ci, PLL loc);
|
||||
|
||||
GowinGlobalRouter globals_router;
|
||||
void mark_gowin_globals(Context *ctx);
|
||||
@ -531,14 +537,6 @@ enum
|
||||
};
|
||||
}
|
||||
|
||||
namespace PLL { // fixed PLL locations
|
||||
enum
|
||||
{
|
||||
left = 0,
|
||||
right = 1
|
||||
};
|
||||
}
|
||||
|
||||
NEXTPNR_NAMESPACE_END
|
||||
|
||||
#endif /* GOWIN_ARCH_H */
|
||||
|
Loading…
Reference in New Issue
Block a user