blarney-0.1.0.0
Copyright(c) Alexandre Joannou 2020-2021
LicenseMIT
Stabilityexperimental
Safe HaskellSafe-Inferred
LanguageGHC2021

Blarney.Netlist.Passes.Utils

Description

This module provides helper functions to write netlist passes.

Synopsis

Queries on individual Nets

netIsRoot :: Net -> Bool Source #

A helper function to tell if a Net is a netlist root

netDontKill :: Net -> Bool Source #

A helper function to tell if a Net should not be optimised away

readNet :: InstId -> MNetlistPass s Net Source #

A helper function to read a Net from a MNetlist

Basic MNetlistPasses

type NetCounts s = STUArray s InstId Int Source #

A helper type for Net reference counting

countNetRef :: MNetlistPass s (NetCounts s) Source #

A Net reference counting helper function

Exported Blarney modules