Skip to content

Commit

Permalink
Add comment saying we should warn on Unsupported Cell Types in Yosys.
Browse files Browse the repository at this point in the history
  • Loading branch information
mccleeary-galois committed Oct 16, 2024
1 parent b7575e8 commit 02278f5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/SAWScript/Yosys/IR.hs
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,8 @@ instance Aeson.FromJSON CellType where
_ | cellTypeIsPrimitive s ->
case Map.lookup s textToPrimitiveCellType of
Just cellType -> pure cellType
-- XXX We should probably log a warning when generating CellTypeUnsupportedPrimitive,
-- we can't do that here however.
Nothing -> pure $ CellTypeUnsupportedPrimitive s
| otherwise -> pure $ CellTypeUserType s
parseJSON v = fail $ "Failed to parse cell type: " <> show v
Expand Down

0 comments on commit 02278f5

Please sign in to comment.