Crate bitsy_lang
source ·Re-exports
Modules
Structs
- A user-defined
alt
type. - A
Circuit
is a module instance. It allows you to walk the instance, following references to definitions. - A
Context
is an associative list which assigns each element with type information. - A user-defined
enum
type. - A user-defined
fn
function. - A
LineCol
is a container for a line and column. - A
MatchArm
is a case in amatch
expression. - A Package is a parsed Bitsy file. It consists of a number of top-level
Item
s. - A
SourceInfo
maintains location data for parsed objects. Maintains the filename (if from a file) or the originating string (if from a string). Helps with the conversion from byte-position in the source to aLineCol
. - A
Span
tracks the span of an object parsed from a source. - A user-defined
struct
type. - A user-defined
tb
testbench. Wire
s drive the value of port, node, or register.
Enums
- An expression.
- A top-level declaration in a
Package
. - A
Pat
is a pattern for amatch
expression. - A statement which appears in a testbench
- A type classifier for
crate::sim::Value
s.
Traits
- Many objects have location information.
HasSpan
allows you to call [HasLoc::loc
] to get the span information.
Functions
Type Aliases
- The length of a
Type::Vec
. - The bitwidth of a
Type::Word
.