Skip to content

Commit

Permalink
ice40: Minor fix in predicate checking for logic port
Browse files Browse the repository at this point in the history
 - is_sb_pll40 covers all the PLL types
 - Use helper to test for gbuf

Signed-off-by: Sylvain Munaut <[email protected]>
  • Loading branch information
smunaut committed Nov 19, 2018
1 parent ac5d767 commit 35e9ec7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ice40/pack.cc
Original file line number Diff line number Diff line change
Expand Up @@ -461,8 +461,9 @@ static bool is_logic_port(BaseCtx *ctx, const PortRef &port)
{
if (is_clock_port(ctx, port) || is_reset_port(ctx, port) || is_enable_port(ctx, port))
return false;
return !is_sb_io(ctx, port.cell) && !is_sb_pll40(ctx, port.cell) && !is_sb_pll40_pad(ctx, port.cell) &&
port.cell->type != ctx->id("SB_GB");
return !is_sb_io(ctx, port.cell) &&
!is_gbuf(ctx, port.cell) &&
!is_sb_pll40(ctx, port.cell);
}

static void insert_global(Context *ctx, NetInfo *net, bool is_reset, bool is_cen, bool is_logic)
Expand Down

0 comments on commit 35e9ec7

Please sign in to comment.