Use apply or port instead: val b = in Bool ()
or val rgb = out port Rgb
Create a new Bits
Create a new Bits
Create a new Bits of a given width
Create a new Bits of a given width
Declare a port without braces, short syntax
Declare a port without braces, short syntax
See IODirection for other syntaxes.
Create a new Bool with a value
Create a new Bool with a value
Create a new SInt
Create a new SInt
Create a new SInt of a given width
Create a new SInt of a given width
Create a new UInt
Create a new UInt
Create a new UInt of a given width
Create a new UInt of a given width
Declare existing Data as ports, "variadic" syntax
Declare a SpinalEnum port with braces
Declare a SpinalEnum port with braces
See IODirection for other syntaxes.
Declare a port with braces
Declare a port with braces
See IODirection for other syntaxes.
Declare a port with braces
Declare a port with braces
See IODirection for other syntaxes.
Declare port with same type as that
Declare a SpinalEnum port without braces, spaceful syntax
Declare a SpinalEnum port without braces, spaceful syntax
See IODirection for other syntax.
Declare a port without braces, spaceful syntax
Declare a port without braces, spaceful syntax
See IODirection for other syntax.
Declare a port without braces, spaceful syntax
Declare a port without braces, spaceful syntax
See IODirection for other syntax.
Use Bool()
(with braces) instead
(Since version ) see corresponding Javadoc for more information.
Declare ports
A port is some Data with a direction, which can be
in
,out
orinout
.There are 4 available syntaxes, which are all equivalent:
The "braces" syntax is short and generic, but it uses braces.
The "short" syntax is short, but it is formatted with a space between the type and its parameters, and it can be used only with:
Bool
Bits
UInt
SInt
Vec
The "spaceful" syntax is generic and beatiful, but more verbose.
The "variadic" syntax can be used with any number of ports, but can be used only if the ports types are already declared.
in out inout