pub enum ParseError {
UndefinedError(String),
CyclicDependency,
InvalidUTF8,
InvalidVerilog(String),
MissingModules(Vec<String>),
PortsWithoutDirection(String, Vec<String>),
UndeclaredNets(Vec<String>),
AssignmentWidthMismatch(Vec<(LValue, Expr)>),
PortConnectionMismatch,
PortConnectionWidthMismatch,
}
Expand description
Error type returned by the Verilog reader.
Variants§
UndefinedError(String)
Some unspecified error.
CyclicDependency
Modules have a cyclic dependency. (Recursive module instantiation)
InvalidUTF8
The Verilog data is not UTF-8 encoded.
InvalidVerilog(String)
The syntax is not not accepted. Contains an error message string.
MissingModules(Vec<String>)
Some modules are not known yet. Contains names of the missing modules.
PortsWithoutDirection(String, Vec<String>)
Some module ports are neither declared as input nor output. Contains module name and list of affected module ports.
UndeclaredNets(Vec<String>)
Some nets are used but not declared with a wire
/input
/output
/inout
statement.
AssignmentWidthMismatch(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§
Source§impl Clone for ParseError
impl Clone for ParseError
Source§fn clone(&self) -> ParseError
fn clone(&self) -> ParseError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ParseError
impl Debug for ParseError
Source§impl PartialEq for ParseError
impl PartialEq for ParseError
impl Eq for ParseError
impl StructuralPartialEq for ParseError
Auto Trait Implementations§
impl Freeze for ParseError
impl RefUnwindSafe for ParseError
impl Send for ParseError
impl Sync for ParseError
impl Unpin for ParseError
impl UnwindSafe for ParseError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more