Fix NEXTPNR_NAMESPACE
Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
parent
d62e341d5a
commit
426fb75bb5
@ -19,7 +19,11 @@
|
|||||||
|
|
||||||
#include "arch_place.h"
|
#include "arch_place.h"
|
||||||
|
|
||||||
|
NEXTPNR_NAMESPACE_BEGIN
|
||||||
|
|
||||||
bool isValidBelForCell(Design *design, CellInfo *cell, BelId bel)
|
bool isValidBelForCell(Design *design, CellInfo *cell, BelId bel)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
NEXTPNR_NAMESPACE_END
|
||||||
|
@ -22,6 +22,8 @@
|
|||||||
|
|
||||||
#include "nextpnr.h"
|
#include "nextpnr.h"
|
||||||
|
|
||||||
|
NEXTPNR_NAMESPACE_BEGIN
|
||||||
|
|
||||||
// Architecure-specific placement functions
|
// Architecure-specific placement functions
|
||||||
|
|
||||||
// Whether or not a given cell can be placed at a given Bel
|
// Whether or not a given cell can be placed at a given Bel
|
||||||
@ -29,4 +31,6 @@
|
|||||||
// such as conflicting set/reset signals, etc
|
// such as conflicting set/reset signals, etc
|
||||||
bool isValidBelForCell(Design *design, CellInfo *cell, BelId bel);
|
bool isValidBelForCell(Design *design, CellInfo *cell, BelId bel);
|
||||||
|
|
||||||
|
NEXTPNR_NAMESPACE_END
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -19,6 +19,8 @@
|
|||||||
|
|
||||||
#include "arch_place.h"
|
#include "arch_place.h"
|
||||||
|
|
||||||
|
NEXTPNR_NAMESPACE_BEGIN
|
||||||
|
|
||||||
static bool logicCellsCompatible(const std::vector<const CellInfo *> &cells)
|
static bool logicCellsCompatible(const std::vector<const CellInfo *> &cells)
|
||||||
{
|
{
|
||||||
bool dffs_exist = false, dffs_neg = false;
|
bool dffs_exist = false, dffs_neg = false;
|
||||||
@ -87,3 +89,5 @@ bool isValidBelForCell(Design *design, CellInfo *cell, BelId bel)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
NEXTPNR_NAMESPACE_END
|
||||||
|
@ -23,9 +23,13 @@
|
|||||||
#include "nextpnr.h"
|
#include "nextpnr.h"
|
||||||
// Architecure-specific placement functions
|
// Architecure-specific placement functions
|
||||||
|
|
||||||
|
NEXTPNR_NAMESPACE_BEGIN
|
||||||
|
|
||||||
// Whether or not a given cell can be placed at a given Bel
|
// Whether or not a given cell can be placed at a given Bel
|
||||||
// This is not intended for Bel type checks, but finer-grained constraints
|
// This is not intended for Bel type checks, but finer-grained constraints
|
||||||
// such as conflicting set/reset signals, etc
|
// such as conflicting set/reset signals, etc
|
||||||
bool isValidBelForCell(Design *design, CellInfo *cell, BelId bel);
|
bool isValidBelForCell(Design *design, CellInfo *cell, BelId bel);
|
||||||
|
|
||||||
|
NEXTPNR_NAMESPACE_END
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
12
ice40/chip.h
12
ice40/chip.h
@ -215,25 +215,25 @@ struct BelPin
|
|||||||
NEXTPNR_NAMESPACE_END
|
NEXTPNR_NAMESPACE_END
|
||||||
|
|
||||||
namespace std {
|
namespace std {
|
||||||
template <> struct hash<NEXTPNR_NAMESPACE::BelId>
|
template <> struct hash<NEXTPNR_NAMESPACE_PREFIX BelId>
|
||||||
{
|
{
|
||||||
std::size_t operator()(const NEXTPNR_NAMESPACE::BelId &bel) const noexcept
|
std::size_t operator()(const NEXTPNR_NAMESPACE_PREFIX BelId &bel) const noexcept
|
||||||
{
|
{
|
||||||
return bel.index;
|
return bel.index;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
template <> struct hash<NEXTPNR_NAMESPACE::WireId>
|
template <> struct hash<NEXTPNR_NAMESPACE_PREFIX WireId>
|
||||||
{
|
{
|
||||||
std::size_t operator()(const NEXTPNR_NAMESPACE::WireId &wire) const noexcept
|
std::size_t operator()(const NEXTPNR_NAMESPACE_PREFIX WireId &wire) const noexcept
|
||||||
{
|
{
|
||||||
return wire.index;
|
return wire.index;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
template <> struct hash<NEXTPNR_NAMESPACE::PipId>
|
template <> struct hash<NEXTPNR_NAMESPACE_PREFIX PipId>
|
||||||
{
|
{
|
||||||
std::size_t operator()(const NEXTPNR_NAMESPACE::PipId &wire) const noexcept
|
std::size_t operator()(const NEXTPNR_NAMESPACE_PREFIX PipId &wire) const noexcept
|
||||||
{
|
{
|
||||||
return wire.index;
|
return wire.index;
|
||||||
}
|
}
|
||||||
|
@ -25,6 +25,8 @@
|
|||||||
|
|
||||||
#include <unordered_set>
|
#include <unordered_set>
|
||||||
|
|
||||||
|
NEXTPNR_NAMESPACE_BEGIN
|
||||||
|
|
||||||
// Pack LUTs and LUT-FF pairs
|
// Pack LUTs and LUT-FF pairs
|
||||||
static void pack_lut_lutffs(Design *design)
|
static void pack_lut_lutffs(Design *design)
|
||||||
{
|
{
|
||||||
@ -120,3 +122,5 @@ void pack_design(Design *design)
|
|||||||
pack_lut_lutffs(design);
|
pack_lut_lutffs(design);
|
||||||
pack_nonlut_ffs(design);
|
pack_nonlut_ffs(design);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
NEXTPNR_NAMESPACE_END
|
||||||
|
@ -22,6 +22,10 @@
|
|||||||
|
|
||||||
#include "nextpnr.h"
|
#include "nextpnr.h"
|
||||||
|
|
||||||
|
NEXTPNR_NAMESPACE_BEGIN
|
||||||
|
|
||||||
void pack_design(Design *design);
|
void pack_design(Design *design);
|
||||||
|
|
||||||
|
NEXTPNR_NAMESPACE_END
|
||||||
|
|
||||||
#endif // ROUTE_H
|
#endif // ROUTE_H
|
||||||
|
Loading…
Reference in New Issue
Block a user