-
Notifications
You must be signed in to change notification settings - Fork 0
LanguageDocs
The primary structure of the Chrono language is the module. Each module contains the code for the logic being described. Modules can be placed inside one another to form hierarchies.
A module is declared with a input/output list enclosed with parentheses, followed by a code section enclosed with curly braces.
ModuleName(inputs/output)
{
code...
}
The default type of a wire is a uint
The default type of a reg is a uint
A tristate wire signal. The default type of a tri is a uint
Signals can be bit-vectors/slices of various sizes.
This indicates an integer data type. Any real value converted to an int will be truncated.
This indicates an unsigned integer data type. Any negative integer will get interpreted as it's 2s-complement bit representation.
Reals store decimal values. These are only able to be used with parameters
Fixed point values
Keywords in alphabetical order