Data type system
Logic
Logic types represent the basic element of computation. This is either a boolean value, or a 4 state logic value (depending on the simulator).
Nail
|
Chisel
|
SystemVerilog
|
Arrays
Array types represent a repeating data elements.
Nail
|
Chisel
|
SystemVerilog
|
Structs
Structures are also present in Nail. We use the keyword “structdef” in Nail to avoid confusion with the struct keyword in lean4/rocq.
Nail
|
Chisel
|
SystemVerilog
|
Parametric structs are also supported in Nail. Note that SystemVerilog does not have native parametric structs: the work around for this is to define a struct within a parametric interface.
Nail
|
Chisel
|
SystemVerilog
|