Sign in

    alicedhaha/moonrcinspect/src/model does not have a README file

    Capacitor

    pub(all) struct Capacitor {
    id : Int
    from_node : Int
    to_node : Int?
    capacitance : Double
    span :
    SourceSpan
    ?
    } derive(
    Debug
    )

    to_node = None represents a capacitance to ground.

    Connection

    pub(all) struct Connection {
    node_id : Int
    direction : Direction
    coordinate : Point?
    load_capacitance : Double?
    driving_cell : String?
    span :
    SourceSpan
    ?
    } derive(
    Debug
    )

    Design

    pub(all) struct Design {
    header : DesignHeader
    name_map : Array[NameMapEntry]
    ports : Array[PortDecl]
    nets : Array[Net]
    } derive(
    Debug
    )

    Design-level view exposed to library consumers.

    DesignHeader

    pub(all) struct DesignHeader {
    spef_version : String?
    design_name : String?
    date : String?
    vendor : String?
    program : String?
    program_version : String?
    design_flow : Array[String]
    divider : String
    delimiter : String
    bus_delimiter_open : String
    bus_delimiter_close : String
    time_unit : UnitScale
    capacitance_unit : UnitScale
    resistance_unit : UnitScale
    inductance_unit : UnitScale
    } derive(
    Debug
    )

    DesignHeader::default

    fn DesignHeader::default() -> DesignHeader

    Direction

    pub(all) enum Direction {
    Input
    Output
    Inout
    Unknown
    } derive(Eq,
    Debug
    )

    Direction::from_spef

    fn Direction::from_spef(value : String) -> Direction

    Direction::spef_code

    fn Direction::spef_code(self : Direction) -> String

    NameMapEntry

    pub(all) struct NameMapEntry {
    index : Int
    name : String
    span :
    SourceSpan
    ?
    } derive(
    Debug
    )

    Net

    pub(all) struct Net {
    id : Int
    name : String
    declared_capacitance : Double
    nodes : Array[Node]
    connections : Array[Connection]
    resistors : Array[Resistor]
    capacitors : Array[Capacitor]
    span :
    SourceSpan
    ?
    } derive(
    Debug
    )

    Net::coupling_capacitance

    fn Net::coupling_capacitance(self : Net) -> Double

    Net::driver_nodes

    fn Net::driver_nodes(self : Net) -> Array[Int]

    Net::effective_capacitance

    fn Net::effective_capacitance(self : Net) -> Double

    Effective grounded capacitance using a 0.5 split for coupling capacitors.

    Net::find_node

    fn Net::find_node(self : Net, node_id : Int) -> Node?

    Net::ground_capacitance

    fn Net::ground_capacitance(self : Net) -> Double

    Net::pins

    fn Net::pins(self : Net) -> Array[Pin]

    Net::total_resistance

    fn Net::total_resistance(self : Net) -> Double

    Node

    pub(all) struct Node {
    id : Int
    name : String
    kind : NodeKind
    span :
    SourceSpan
    ?
    } derive(
    Debug
    )

    NodeKind

    pub(all) enum NodeKind {
    Port
    InstancePin
    Internal
    External
    } derive(Eq,
    Debug
    )

    Pin

    pub(all) struct Pin {
    node_id : Int
    name : String
    kind : NodeKind
    direction : Direction
    coordinate : Point?
    load_capacitance : Double?
    driving_cell : String?
    } derive(
    Debug
    )

    Semantic pin view resolved from a connection and its backing node.

    Point

    pub(all) struct Point {
    x : Double
    y : Double
    } derive(
    Debug
    )

    PortDecl

    pub(all) struct PortDecl {
    name : String
    direction : Direction
    coordinate : Point?
    span :
    SourceSpan
    ?
    } derive(
    Debug
    )

    Quantity

    pub(all) enum Quantity {
    Time
    Capacitance
    Resistance
    Inductance
    } derive(Eq,
    Debug
    )

    Physical quantity represented by a SPEF unit declaration.

    RCNetwork

    RCNetwork::design

    fn RCNetwork::design(self : RCNetwork) -> Design

    RCNetwork::empty

    fn RCNetwork::empty() -> RCNetwork

    Resistor

    pub(all) struct Resistor {
    id : Int
    from_node : Int
    to_node : Int
    resistance : Double
    span :
    SourceSpan
    ?
    } derive(
    Debug
    )

    UnitScale

    pub(all) struct UnitScale {
    quantity : Quantity
    magnitude : Double
    symbol : String
    multiplier : Double
    } derive(Eq,
    Debug
    )

    Unit declaration normalized to an SI multiplier.

    UnitScale::new

    fn UnitScale::new(quantity : Quantity, magnitude : Double, symbol : String) -> UnitScale?

    UnitScale::to_si

    fn UnitScale::to_si(self : UnitScale, value : Double) -> Double

    default_capacitance_unit

    fn default_capacitance_unit() -> UnitScale

    default_inductance_unit

    fn default_inductance_unit() -> UnitScale

    default_resistance_unit

    fn default_resistance_unit() -> UnitScale

    default_time_unit

    fn default_time_unit() -> UnitScale

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io