In Group G, unless the Ivory Coast can beat North Korea something like 10-0, then Portugal will be definitely through to the Last 16 regardless of their result with Brazil who are of course already there.
But because Group H is still wide open, perm any 2 of that 4 as to who will qualify for the Last 16. Even Chile, presently leading with 6 points, aren't guaranteed to get through, particularly if Spain, say, beat them by a couple of goals, and if Switzerland were to thrash Honduras in the other game. Spain and Switzerland would go through.
On the other hand, were Chile to hammer Spain, and Honduras beat the Swiss, say 4-1, then Chile and Honduras would qualify.
Good, eh?