Enum libreda_structural_verilog::ParseError[][src]

pub enum ParseError {
    UndefinedError(String),
    CyclicDependency,
    InvalidUTF8,
    InvalidVerilog(String),
    MissingModules(Vec<String>),
    PortsWithoutDirection(StringVec<String>),
    UndeclaredNets(Vec<String>),
    AssignmentWidthMismatch(Vec<(LValue, Expr)>),
    PortConnectionMismatch,
    PortConnectionWidthMismatch,
}
Expand description

Error type returned by the Verilog reader.

Variants

UndefinedError(String)

Tuple Fields

0: String

Some unspecified error.

CyclicDependency

Modules have a cyclic dependency. (Recursive module instantiation)

InvalidUTF8

The Verilog data is not UTF-8 encoded.

InvalidVerilog(String)

Tuple Fields

0: String

The syntax is not not accepted. Contains an error message string.

MissingModules(Vec<String>)

Tuple Fields

0: Vec<String>

Some modules are not known yet. Contains names of the missing modules.

PortsWithoutDirection(StringVec<String>)

Tuple Fields

0: String
1: Vec<String>

Some module ports are neither declared as input nor output. Contains module name and list of affected module ports.

UndeclaredNets(Vec<String>)

Tuple Fields

0: Vec<String>

Some nets are used but not declared with a wire/input/output/inout statement.

AssignmentWidthMismatch(Vec<(LValue, Expr)>)

Tuple Fields

0: Vec<(LValue, Expr)>

Bit width is wrong in an assignment.

PortConnectionMismatch

Mismatch of number of ports in port connection of a module instantiation.

PortConnectionWidthMismatch

Bit-width mismatch in a port connection.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Compare self to key and return true if they are equal.

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.