Skip to content

Commit

Permalink
machxo2: Misc tidying up
Browse files Browse the repository at this point in the history
Signed-off-by: gatecat <[email protected]>
  • Loading branch information
gatecat committed Feb 12, 2021
1 parent 33eca9a commit 6de733b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
5 changes: 4 additions & 1 deletion machxo2/arch.cc
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,10 @@ delay_t Arch::predictDelay(const NetInfo *net_info, const PortRef &sink) const
ArcBounds Arch::getRouteBoundingBox(WireId src, WireId dst) const
{
ArcBounds bb;

bb.x0 = std::min(src.location.x, dst.location.x);
bb.y0 = std::min(src.location.y, dst.location.y);
bb.x1 = std::max(src.location.x, dst.location.x);
bb.y1 = std::max(src.location.y, dst.location.y);
return bb;
}

Expand Down
7 changes: 0 additions & 7 deletions machxo2/archdefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,6 @@ struct NetInfo;

struct ArchCellInfo
{
// Custom grouping set via "PACK_GROUP" attribute. All cells with the same group
// value may share a tile (-1 = don't care, default if not set)
int user_group;
// Is a slice type primitive
bool is_slice;
// Only packing rule for slice type primitives is a single clock per tile
const NetInfo *slice_clk;
};

NEXTPNR_NAMESPACE_END
Expand Down

0 comments on commit 6de733b

Please sign in to comment.