Skip to content

Commit

Permalink
Clock prerouting Gowin fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianparvino committed May 20, 2024
1 parent b7f91e5 commit 2f1f97a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions himbaechel/uarch/gowin/gowin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ struct GowinImpl : HimbaechelAPI

// wires
bool checkPipAvail(PipId pip) const override;
bool checkPipAvailForNet(PipId pip, const NetInfo *net) const override;

// Cluster
bool isClusterStrict(const CellInfo *cell) const { return true; }
Expand Down Expand Up @@ -188,6 +189,10 @@ void GowinImpl::init(Context *ctx)
// We do not allow the use of global wires that bypass a special router.
bool GowinImpl::checkPipAvail(PipId pip) const { return !gwu.is_global_pip(pip); }

bool GowinImpl::checkPipAvailForNet(PipId pip, const NetInfo *net) const {
return checkPipAvail(pip) || ctx->getBoundPipNet(pip) == net;
}

void GowinImpl::pack()
{
if (ctx->settings.count(ctx->id("cst.filename"))) {
Expand Down

0 comments on commit 2f1f97a

Please sign in to comment.