All Packages Class Hierarchy This Package Previous Next Index
Class byucc.jhdl.Logic.Logic
java.lang.Object
|
+----byucc.jhdl.base.Nameable
|
+----byucc.jhdl.base.Node
|
+----byucc.jhdl.base.Cell
|
+----byucc.jhdl.base.Structural
|
+----byucc.jhdl.Logic.Logic
- public class Logic
- extends Structural
The Logic class provides a platform-independent interface into
FPGA circuit design. It provides many convenience methods for
accelerating structural design. It should be emphasized
that none of these methods provide any compution
whatsoever, they only are shortcuts for instantiating
gates. For example, the method call and(a, b)
instantiates a new 2-input and gate for you, wires up a and
b to the inputs, instantiates a new wire for you, connects
the new wire to the output of the gate, and returns the new wire.
Because these method calls return wires, not gates, it
allows you to have nested method calls to quickly build up complex
logic circuits. For example:
Wire carryOut = or( and(a, b), and(a, ci), and(b, ci) );
One more time: this instantiates 3 "and" gates and 1 "or" gate, it
does not compute the resulting carry value. The
gates are instantiated as technology-specific primitives from an
appropriate vendor library via a TechMapper object.
One more style convention is noteworthy. Most every logic function
provided has two versions. One version creates a new output wire for
you and returns that wire. The other version lets you pass in the
wire reference that you want to use as output; it will return the
output wire you pass simply to facilitate nesting. For example, here
are the different prototypes for a multiplexor and a 2-input and
gate:
and ( Wire in1, Wire in2 ); // Creates a new wire for the
output, and returns it
and_o ( Wire in1, Wire in2, Wire out ); // Uses out
as the output wire, and returns it
mux ( Wire d0, Wire d1, Wire sel ); // Creates a new wire
as the output, and returns it.
mux_o ( Wire d0, Wire d1, Wire sel, Wire out ); // Uses
out as the output wire, and returns it.
Note that both gates use a slightly different method call name
for the different cases. This is because we need to differentiate
the and_o(Wire in1, Wire in2, Wire, out) call from a
three-input and-gate: and(Wire in1, Wire in2, Wire in3).
This general naming convention will apply for all logic methods
-- the suffix "_o" is appended if you provide the output wire; the
suffix is not appended when you do not provide the output wire.
Say that you need an and gate. Which version of and
should you use? Should be obvious with a little thought: if you
already have a reference to the output wire, you need to pass that
wire into the function. This is common when the wire has been
passed to you and connected to one of the ports, for example. If
you don't have a reference, you can let the Logic methods
create it for you. This approach is common when building up
intermediate logic.
- Author:
- Peter Bellows, Brad Hutchings
-
ABOVE
- Relational Placement directive which indicates that the current cell
should be placed in the negative Y direction on the JHDL grid from a
previous cell.
-
ALIGN_BOTTOM
-
-
ALIGN_CENTER
-
-
ALIGN_LEFT
-
-
ALIGN_LSB
-
-
ALIGN_MSB
-
-
ALIGN_RIGHT
-
-
ALIGN_TOP
-
-
BELOW
- Relational Placement directive which indicates that the current cell
should be placed in the negative Y direction on the JHDL grid from a
previous cell.
-
DOWN
- Value stored in class byucc.jhdl.Logic.Directive that indicates
direction of relational placement.
-
EAST_OF
- Relational Placement directive which indicates that the current cell
should be placed in the negative X direction on the JHDL grid from a
previous cell.
-
implicit_interface
-
-
LEFT_OF
- Relational Placement directive which indicates that the current cell
should be placed in the negative X direction on the JHDL grid from a
previous cell.
-
MAX_PACK
- Placement directive representing maximal "primitive" packing.
-
NORTH_OF
- Relational Placement directive which indicates that the current cell
should be placed in the negative Y direction on the JHDL grid from a
previous cell.
-
ON
- Relational Placement directive which indicates that the current cell
should be placed in the same spot on the JHDL grid as a
previous cell.
-
ONTOP
- Value stored in class byucc.jhdl.Logic.Directive that indicates
direction of relational placement.
-
ONTOP_OF
- Relational Placement directive which indicates that the current cell
should be placed in the same spot on the JHDL grid as a
previous cell.
-
RIGHT_OF
- Relational Placement directive which indicates that the current cell
should be placed in the negative X direction on the JHDL grid from a
previous cell.
-
SOUTH_OF
- Relational Placement directive which indicates that the current cell
should be placed in the negative Y direction on the JHDL grid from a
previous cell.
-
TOLEFT
- Value stored in class byucc.jhdl.Logic.Directive that indicates
direction of relational placement.
-
TORIGHT
- Value stored in class byucc.jhdl.Logic.Directive that indicates
direction of relational placement.
-
UNCONSTRAINED
-
The value representing an unconstrained coordinate in placement.
-
UP
- Value stored in class byucc.jhdl.Logic.Directive that indicates
direction of relational placement.
-
WEST_OF
- Relational Placement directive which indicates that the current cell
should be placed in the negative X direction on the JHDL grid from a
previous cell.
-
Logic(Node)
- Constructs a new Logic object with given node as parent.
-
Logic(Node, String)
- Constructs a new Logic object with given node as parent, naming
it with the given string.
-
Logic(Node, TechMapper)
- Constructs a new Logic object with given node as parent, using
the given TechMapper object for technology mapping.
-
Logic(Node, TechMapper, String)
- Constructs a new Logic object with given node as parent, naming
it with the given string, and using the given TechMapper object
for technology mapping.
-
add(Wire, Wire)
-
Constructs a new adder with no carry-in or carry-out, and with a
new wire connected to the sum output.
-
add(Wire, Wire, String)
-
Constructs a new adder with no carry-in or carry-out, and with a
new wire connected to the sum output.
-
add(Wire, Wire, Wire)
-
Constructs a new adder with no carry-out, and with a new wire
connected to the sum output.
-
add(Wire, Wire, Wire, String)
-
Constructs a new adder with no carry-out, and with a new wire
connected to the sum output.
-
add_o(Wire, Wire, Wire)
-
Constructs a new adder with no carry-out.
-
add_o(Wire, Wire, Wire, String)
-
Constructs a new adder with no carry-out.
-
add_o(Wire, Wire, Wire, Wire)
-
Constructs a new adder with no carry-out.
-
add_o(Wire, Wire, Wire, Wire, String)
-
Constructs a new adder with no carry-out.
-
add_o(Wire, Wire, Wire, Wire, Wire)
-
Constructs a new adder.
-
add_o(Wire, Wire, Wire, Wire, Wire, String)
-
Constructs a new adder.
-
addsub(Wire, Wire, Wire)
-
Constructs a new adder-subtractor with no carry-in or carry-out,
and with a new wire connected to its sum output.
-
addsub(Wire, Wire, Wire, String)
-
Constructs a new adder-subtractor with no carry-in or carry-out,
and with a new wire connected to its sum output.
-
addsub(Wire, Wire, Wire, Wire)
-
Constructs a new adder-subtractor with no carry-out, and with a
new wire connected to its sum output.
-
addsub(Wire, Wire, Wire, Wire, String)
-
Constructs a new adder-subtractor with no carry-out, and with a
new wire connected to its sum output.
-
addsub_o(Wire, Wire, Wire, Wire)
-
Constructs a new adder-subtractor with no carry-out.
-
addsub_o(Wire, Wire, Wire, Wire, String)
-
Constructs a new adder-subtractor with no carry-out.
-
addsub_o(Wire, Wire, Wire, Wire, Wire)
-
Constructs a new adder-subtractor with no carry-out.
-
addsub_o(Wire, Wire, Wire, Wire, Wire, String)
-
Constructs a new adder-subtractor with no carry-out.
-
addsub_o(Wire, Wire, Wire, Wire, Wire, Wire)
-
Constructs a new adder-subtractor.
-
addsub_o(Wire, Wire, Wire, Wire, Wire, Wire, String)
-
Constructs a new adder-subtractor.
-
and(Wire)
- Constructs a new named arbitrary-number-input and gate, with a
new wire as its output.
-
and(Wire, String)
- Constructs a new arbitrary-number-input and gate, with a new
wire as its output.
-
and(Wire, Wire)
- Constructs a new 2-input and gate, with a new wire as its
output.
-
and(Wire, Wire, String)
- Constructs a new 2-input and gate, with a new wire as its
output.
-
and(Wire, Wire, Wire)
- Constructs a new 3-input and gate with a new wire as its output.
-
and(Wire, Wire, Wire, String)
- Constructs a new 3-input and gate with a new wire as its output.
-
and(Wire, Wire, Wire, Wire)
- Constructs a new 4-input and gate with a new wire as its output.
-
and(Wire, Wire, Wire, Wire, String)
- Constructs a new 4-input and gate with a new wire as its output.
-
and(Wire, Wire, Wire, Wire, Wire)
- Constructs a new 5-input and gate with a new wire as its output.
-
and(Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 5-input and gate with a new wire as its output.
-
and(Wire, Wire, Wire, Wire, Wire, Wire)
- Constructs a new 6-input and gate with a new wire as its output.
-
and(Wire, Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 6-input and gate with a new wire as its output.
-
and(Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Constructs a new 7-input and gate with a new wire as its output.
-
and(Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 7-input and gate with a new wire as its output.
-
and(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Constructs a new 8-input and gate with a new wire as its output.
-
and(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 8-input and gate with a new wire as its output.
-
and(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Constructs a new 9-input and gate with a new wire as its output.
-
and(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 9-input and gate with a new wire as its output.
-
and_o(Wire, Wire)
- Constructs a new named arbitrary-number-input and gate.
-
and_o(Wire, Wire, String)
- Constructs a new arbitrary-number-input and gate.
-
and_o(Wire, Wire, Wire)
- Constructs a new 2-input and gate.
-
and_o(Wire, Wire, Wire, String)
- Constructs a new 2-input and gate.
-
and_o(Wire, Wire, Wire, Wire)
- Constructs a new 3-input and gate.
-
and_o(Wire, Wire, Wire, Wire, String)
- Constructs a new 3-input and gate.
-
and_o(Wire, Wire, Wire, Wire, Wire)
- Constructs a new 4-input and gate.
-
and_o(Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 4-input and gate.
-
and_o(Wire, Wire, Wire, Wire, Wire, Wire)
- Constructs a new 5-input and gate.
-
and_o(Wire, Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 5-input and gate.
-
and_o(Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Constructs a new 6-input and gate.
-
and_o(Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 6-input and gate.
-
and_o(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Constructs a new 7-input and gate.
-
and_o(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 7-input and gate.
-
and_o(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Constructs a new 8-input and gate.
-
and_o(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 8-input and gate.
-
and_o(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Constructs a new 9-input and gate.
-
and_o(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 9-input and gate.
-
ashiftr(Wire, int)
- Returns an arithmetically-right-shifted version of the input wire
parameter, with a new wire as its output.
-
ashiftr_o(Wire, int, Wire)
- Returns an arithmetically-right-shifted version of the input wire
parameter.
-
buf(Wire)
- Constructs a new buffer, with a new wire as its output.
-
buf(Wire, String)
- Constructs a new buffer, with a new wire as its output.
-
buf_o(Wire, Wire)
- Constructs a new buffer, with user-supplied wire as its output.
-
buf_o(Wire, Wire, String)
- Constructs a new buffer, with user-supplied wire as its output.
-
clockDriver(Wire, String, String)
-
-
concat(Cell, Wire, Wire)
- Returns a new wire that is the concatenation of the input
parameter wires.
-
concat(Cell, Wire, Wire, String)
- Returns a new wire that is the concatenation of the wire
parameter, with name given by the
String parameter.
-
concat(Cell, Wire, Wire, Wire)
- Returns a new wire that is the concatenation of the input parameter wires.
-
concat(Cell, Wire, Wire, Wire, String)
- Returns a new wire that is the concatenation of the wire parameter, with name given by the
String parameter.
-
concat(Cell, Wire, Wire, Wire, Wire)
- Returns a new wire that is the concatenation of the input parameter wires.
-
concat(Cell, Wire, Wire, Wire, Wire, String)
- Returns a new wire that is the concatenation of the wire parameter, with name given by the
String parameter.
-
concat(Cell, Wire, Wire, Wire, Wire, Wire)
- Returns a new wire that is the concatenation of the input parameter wires.
-
concat(Cell, Wire, Wire, Wire, Wire, Wire, String)
- Returns a new wire that is the concatenation of the wire parameter, with name given by the
String parameter.
-
concat(Cell, Wire, Wire, Wire, Wire, Wire, Wire)
- Returns a new wire that is the concatenation of the input parameter wires.
-
concat(Cell, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Returns a new wire that is the concatenation of the wire parameter, with name given by the
String parameter.
-
concat(Cell, Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Returns a new wire that is the concatenation of the input parameter wires.
-
concat(Cell, Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Returns a new wire that is the concatenation of the wire parameter, with name given by the
String parameter.
-
concat(Cell, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Returns a new wire that is the concatenation of the input parameter wires.
-
concat(Cell, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Returns a new wire that is the concatenation of the wire parameter, with name given by the
String parameter.
-
concat(Cell, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Returns a new wire that is the concatenation of the input parameter wires.
-
concat(Cell, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Returns a new wire that is the concatenation of the wire parameter, with name given by the
String parameter.
-
concat(Cell, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Returns a new wire that is the concatenation of the input parameter wires.
-
concat(Cell, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Returns a new wire that is the concatenation of the wire parameter, with name given by the
String parameter.
-
concat(Cell, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Returns a new wire that is the concatenation of the input parameter wires.
-
concat(Cell, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Returns a new wire that is the concatenation of the wire parameter, with name given by the
String parameter.
-
concat(Cell, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Returns a new wire that is the concatenation of the input parameter wires.
-
concat(Cell, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Returns a new wire that is the concatenation of the wire parameter, with name given by the
String parameter.
-
concat(Cell, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Returns a new wire that is the concatenation of the input parameter wires.
-
concat(Cell, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Returns a new wire that is the concatenation of the wire parameter, with name given by the
String parameter.
-
concat(Cell, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Returns a new wire that is the concatenation of the input parameter wires.
-
concat(Cell, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Returns a new wire that is the concatenation of the wire parameter, with name given by the
String parameter.
-
concat(Cell, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Returns a new wire that is the concatenation of the input parameter wires.
-
concat(Cell, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Returns a new wire that is the concatenation of the wire parameter, with name given by the
String parameter.
-
concat(Cell, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Returns a new wire that is the concatenation of the input parameter wires.
-
concat(Cell, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Returns a new wire that is the concatenation of the wire parameter, with name given by the
String parameter.
-
concat(Wire, Wire)
- Returns a new wire that is the concatenation of the input
parameter wires.
-
concat(Wire, Wire, String)
- Returns a new wire that is the concatenation of the wire
parameter, with name given by the
String parameter.
-
concat(Wire, Wire, Wire)
- Returns a new wire that is the concatenation of the input parameter wires.
-
concat(Wire, Wire, Wire, String)
- Returns a new wire that is the concatenation of the wire parameter, with name given by the
String parameter.
-
concat(Wire, Wire, Wire, Wire)
- Returns a new wire that is the concatenation of the input parameter wires.
-
concat(Wire, Wire, Wire, Wire, String)
- Returns a new wire that is the concatenation of the wire parameter, with name given by the
String parameter.
-
concat(Wire, Wire, Wire, Wire, Wire)
- Returns a new wire that is the concatenation of the input parameter wires.
-
concat(Wire, Wire, Wire, Wire, Wire, String)
- Returns a new wire that is the concatenation of the wire parameter, with name given by the
String parameter.
-
concat(Wire, Wire, Wire, Wire, Wire, Wire)
- Returns a new wire that is the concatenation of the input parameter wires.
-
concat(Wire, Wire, Wire, Wire, Wire, Wire, String)
- Returns a new wire that is the concatenation of the wire parameter, with name given by the
String parameter.
-
concat(Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Returns a new wire that is the concatenation of the input parameter wires.
-
concat(Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Returns a new wire that is the concatenation of the wire parameter, with name given by the
String parameter.
-
concat(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Returns a new wire that is the concatenation of the input parameter wires.
-
concat(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Returns a new wire that is the concatenation of the wire parameter, with name given by the
String parameter.
-
concat(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Returns a new wire that is the concatenation of the input parameter wires.
-
concat(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Returns a new wire that is the concatenation of the wire parameter, with name given by the
String parameter.
-
concat(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Returns a new wire that is the concatenation of the input parameter wires.
-
concat(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Returns a new wire that is the concatenation of the wire parameter, with name given by the
String parameter.
-
concat(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Returns a new wire that is the concatenation of the input parameter wires.
-
concat(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Returns a new wire that is the concatenation of the wire parameter, with name given by the
String parameter.
-
concat(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Returns a new wire that is the concatenation of the input parameter wires.
-
concat(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Returns a new wire that is the concatenation of the wire parameter, with name given by the
String parameter.
-
concat(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Returns a new wire that is the concatenation of the input parameter wires.
-
concat(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Returns a new wire that is the concatenation of the wire parameter, with name given by the
String parameter.
-
concat(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Returns a new wire that is the concatenation of the input parameter wires.
-
concat(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Returns a new wire that is the concatenation of the wire parameter, with name given by the
String parameter.
-
concat(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Returns a new wire that is the concatenation of the input parameter wires.
-
concat(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Returns a new wire that is the concatenation of the wire parameter, with name given by the
String parameter.
-
concat(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Returns a new wire that is the concatenation of the input parameter wires.
-
concat(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Returns a new wire that is the concatenation of the wire parameter, with name given by the
String parameter.
-
concat(WireList)
- Returns a new wire that is the concatenation of the wires in the
WireList parameter.
-
concat(WireList, String)
- Returns a new named wire that is the concatenation of the wires in the
WireList parameter.
-
connect_implicit_ports()
-
-
constant(Cell, int, int)
- Constructs a new wire of width width, driven with constant
value value.
-
constant(Cell, int, int, String)
- Constructs a new named wire of width width, driven with constant
value value.
-
constant(Cell, int, int[])
- Constructs a new wire of width width, driven with constant
value value.
-
constant(Cell, int, int[], String)
- Constructs a new named wire of width width, driven with constant
value value.
-
constant(Cell, int, long)
- Constructs a new wire of width width, driven with constant
value value.
-
constant(Cell, int, long, String)
- Constructs a new named wire of width width, driven with constant
value value.
-
constant(int, int)
- Constructs a new wire of width width, driven with constant
value value.
-
constant(int, int, String)
- Constructs a new named wire of width width, driven with constant
value value.
-
constant(int, int[])
- Constructs a new wire of width width, driven with constant
value value.
-
constant(int, int[], String)
- Constructs a new named wire of width width, driven with constant
value value.
-
constant(int, long)
- Constructs a new wire of width width, driven with constant
value value.
-
constant(int, long, String)
- Constructs a new named wire of width width, driven with constant
value value.
-
constant_o(Cell, Wire, int)
- Drives the constant value value onto the wire parameter.
-
constant_o(Cell, Wire, int, String)
- Drives the constant value value onto the wire parameter.
-
constant_o(Cell, Wire, int[])
- Drives the constant value value onto the wire parameter.
-
constant_o(Cell, Wire, int[], String)
- Drives the constant value value onto the wire parameter.
-
constant_o(Cell, Wire, long)
- Drives the constant value value onto the wire parameter.
-
constant_o(Cell, Wire, long, String)
- Drives the constant value value onto the wire parameter.
-
constant_o(Wire, int)
- Drives the constant value value onto the wire parameter.
-
constant_o(Wire, int, String)
- Drives the constant value value onto the wire parameter.
-
constant_o(Wire, int[])
- Drives the constant value value onto the wire parameter.
-
constant_o(Wire, int[], String)
- Drives the constant value value onto the wire parameter.
-
constant_o(Wire, long)
- Drives the constant value value onto the wire parameter.
-
constant_o(Wire, long, String)
- Drives the constant value value onto the wire parameter.
-
enableNewPlacement()
-
-
enableNewPlacement(boolean)
-
-
getDefaultTechMapper()
- Returns the TechMapper object associated with the Logic class.
-
getGlobalClock(HWSystem)
- Returns the global clock wire associated with the
current TechMapper.
-
getSinkCell(Wire)
- Finds the simulation sink of the wire parameter.
-
getSourceCell(Wire)
- Finds the simulation source of the wire parameter.
-
getTechMapHint(Cell)
- Returns a
String describing the technology mapping
hints for the Cell parameter.
-
getTechMapHint(Wire)
- Returns a
String describing the technology mapping
hints for the Cell that is the source for the wire parameter.
-
getTechMapper()
- Returns the TechMapper object associated with Logic.
-
gnd()
- Returns a new wire connected to ground.
-
gnd(int)
- Returns a new wire of the given width connected to ground.
-
gnd(int, String)
- Returns a new wire of the given width connected to ground.
-
gnd(String)
- Returns a new wire connected to ground.
-
gnd_o(Wire)
- Connects wire o to ground, and returns o.
-
gnd_o(Wire, String)
- Connects wire o to ground, and returns o.
-
lockChildPlacement(Cell)
- Locks the placement of the children of the specified cell.
-
map(Wire, Wire)
- Attempts to map given wires to a single architectural
"primitive" in the target device.
-
map(Wire, Wire, String)
- Attempts to map given wires to a single architectural
"primitive" in the target device, with
String
hints.
-
map(Wire, Wire, Wire)
- Attempts to map given wires to a single architectural
"primitive" in the target device.
-
map(Wire, Wire, Wire, String)
- Attempts to map given wires to a single architectural
"primitive" in the target device, with
String
hints.
-
map(Wire, Wire, Wire, Wire)
- Attempts to map given wires to a single architectural
"primitive" in the target device.
-
map(Wire, Wire, Wire, Wire, String)
- Attempts to map given wires to a single architectural
"primitive" in the target device, with
String
hints.
-
map(Wire, Wire, Wire, Wire, Wire)
- Attempts to map given wires to a single architectural
"primitive" in the target device.
-
map(Wire, Wire, Wire, Wire, Wire, String)
- Attempts to map given wires to a single architectural
"primitive" in the target device, with
String
hints.
-
map(Wire, Wire, Wire, Wire, Wire, Wire)
- Attempts to map given wires to a single architectural
"primitive" in the target device.
-
map(Wire, Wire, Wire, Wire, Wire, Wire, String)
- Attempts to map given wires to a single architectural
"primitive" in the target device, with
String
hints.
-
map(Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Attempts to map given wires to a single architectural
"primitive" in the target device.
-
map(Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Attempts to map given wires to a single architectural
"primitive" in the target device, with
String
hints.
-
map(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Attempts to map given wires to a single architectural
"primitive" in the target device.
-
map(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Attempts to map given wires to a single architectural
"primitive" in the target device, with
String
hints.
-
map(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Attempts to map given wires to a single architectural
"primitive" in the target device.
-
map(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Attempts to map given wires to a single architectural
"primitive" in the target device, with
String
hints.
-
map(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Attempts to map given wires to a single architectural
"primitive" in the target device.
-
map(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Attempts to map given wires to a single architectural
"primitive" in the target device, with
String
hints.
-
mux(Wire, Wire, Wire)
- Constructs a new multiplexor with a new wire as its output.
-
mux(Wire, Wire, Wire, String)
- Constructs a new multiplexor with a new wire as its output.
-
mux_o(Wire, Wire, Wire, Wire)
- Constructs a new multiplexor.
-
mux_o(Wire, Wire, Wire, Wire, String)
- Constructs a new multiplexor.
-
nand(Wire, Wire)
- Constructs a new 2-input nand gate, with a new wire as its
output.
-
nand(Wire, Wire, String)
- Constructs a new 2-input nand gate, with a new wire as its
output.
-
nand(Wire, Wire, Wire)
- Constructs a new 3-input nand gate with a new wire as its output.
-
nand(Wire, Wire, Wire, String)
- Constructs a new 3-input nand gate with a new wire as its output.
-
nand(Wire, Wire, Wire, Wire)
- Constructs a new 4-input nand gate with a new wire as its output.
-
nand(Wire, Wire, Wire, Wire, String)
- Constructs a new 4-input nand gate with a new wire as its output.
-
nand(Wire, Wire, Wire, Wire, Wire)
- Constructs a new 5-input nand gate with a new wire as its output.
-
nand(Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 5-input nand gate with a new wire as its output.
-
nand(Wire, Wire, Wire, Wire, Wire, Wire)
- Constructs a new 6-input nand gate with a new wire as its output.
-
nand(Wire, Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 6-input nand gate with a new wire as its output.
-
nand(Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Constructs a new 7-input nand gate with a new wire as its output.
-
nand(Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 7-input nand gate with a new wire as its output.
-
nand(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Constructs a new 8-input nand gate with a new wire as its output.
-
nand(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 8-input nand gate with a new wire as its output.
-
nand(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Constructs a new 9-input nand gate with a new wire as its output.
-
nand(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 9-input nand gate with a new wire as its output.
-
nand_o(Wire, Wire)
- Constructs a new named arbitrary-number-input nand gate.
-
nand_o(Wire, Wire, String)
- Constructs a new arbitrary-number-input nand gate.
-
nand_o(Wire, Wire, Wire)
- Constructs a new 2-input nand gate.
-
nand_o(Wire, Wire, Wire, String)
- Constructs a new 2-input nand gate.
-
nand_o(Wire, Wire, Wire, Wire)
- Constructs a new 3-input nand gate.
-
nand_o(Wire, Wire, Wire, Wire, String)
- Constructs a new 3-input nand gate.
-
nand_o(Wire, Wire, Wire, Wire, Wire)
- Constructs a new 4-input nand gate.
-
nand_o(Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 4-input nand gate.
-
nand_o(Wire, Wire, Wire, Wire, Wire, Wire)
- Constructs a new 5-input nand gate.
-
nand_o(Wire, Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 5-input nand gate.
-
nand_o(Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Constructs a new 6-input nand gate.
-
nand_o(Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 6-input nand gate.
-
nand_o(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Constructs a new 7-input nand gate.
-
nand_o(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 7-input nand gate.
-
nand_o(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Constructs a new 8-input nand gate.
-
nand_o(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 8-input nand gate.
-
nand_o(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Constructs a new 9-input nand gate.
-
nand_o(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 9-input nand gate.
-
nc()
- Constructs a "dangling output" wire of width 1.
-
nc(int)
- Constructs a "dangling output" wire of width width.
-
nor(Wire, Wire)
- Constructs a new 2-input nor gate with a new wire as its output.
-
nor(Wire, Wire, String)
- Constructs a new 2-input nor gate with a new wire as its output.
-
nor(Wire, Wire, Wire)
- Constructs a new 3-input nor gate with a new wire as its output.
-
nor(Wire, Wire, Wire, String)
- Constructs a new 3-input nor gate with a new wire as its output.
-
nor(Wire, Wire, Wire, Wire)
- Constructs a new 4-input nor gate with a new wire as its output.
-
nor(Wire, Wire, Wire, Wire, String)
- Constructs a new 4-input nor gate with a new wire as its output.
-
nor(Wire, Wire, Wire, Wire, Wire)
- Constructs a new 5-input nor gate with a new wire as its output.
-
nor(Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 5-input nor gate with a new wire as its output.
-
nor(Wire, Wire, Wire, Wire, Wire, Wire)
- Constructs a new 6-input nor gate with a new wire as its output.
-
nor(Wire, Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 6-input nor gate with a new wire as its output.
-
nor(Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Constructs a new 7-input nor gate with a new wire as its output.
-
nor(Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 7-input nor gate with a new wire as its output.
-
nor(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Constructs a new 8-input nor gate with a new wire as its output.
-
nor(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 8-input nor gate with a new wire as its output.
-
nor(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Constructs a new 9-input nor gate with a new wire as its output.
-
nor(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 9-input nor gate with a new wire as its output.
-
nor_o(Wire, Wire)
- Constructs a new named arbitrary-number-input nor gate.
-
nor_o(Wire, Wire, String)
- Constructs a new arbitrary-number-input nor gate.
-
nor_o(Wire, Wire, Wire)
- Constructs a new 2-input nor gate.
-
nor_o(Wire, Wire, Wire, String)
- Constructs a new 2-input nor gate.
-
nor_o(Wire, Wire, Wire, Wire)
- Constructs a new 3-input nor gate.
-
nor_o(Wire, Wire, Wire, Wire, String)
- Constructs a new 3-input nor gate.
-
nor_o(Wire, Wire, Wire, Wire, Wire)
- Constructs a new 4-input nor gate.
-
nor_o(Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 4-input nor gate.
-
nor_o(Wire, Wire, Wire, Wire, Wire, Wire)
- Constructs a new 5-input nor gate.
-
nor_o(Wire, Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 5-input nor gate.
-
nor_o(Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Constructs a new 6-input nor gate.
-
nor_o(Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 6-input nor gate.
-
nor_o(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Constructs a new 7-input nor gate.
-
nor_o(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 7-input nor gate.
-
nor_o(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Constructs a new 8-input nor gate.
-
nor_o(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 8-input nor gate.
-
nor_o(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Constructs a new 9-input nor gate.
-
nor_o(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 9-input nor gate.
-
not(Wire)
- Constructs a new inverter with a new wire as its output.
-
not(Wire, String)
- Constructs a new inverter with a new wire as its output.
-
not_o(Wire, Wire)
- Constructs a new inverter.
-
not_o(Wire, Wire, String)
- Constructs a new inverter.
-
or(Wire)
- Constructs a new named arbitrary-number-input or gate, with a
new wire as its output.
-
or(Wire, String)
- Constructs a new arbitrary-number-input or gate, with a new
wire as its output.
-
or(Wire, Wire)
- Constructs a new 2-input or gate with a new wire as its output.
-
or(Wire, Wire, String)
- Constructs a new 2-input or gate with a new wire as its output.
-
or(Wire, Wire, Wire)
- Constructs a new 3-input or gate with a new wire as its output.
-
or(Wire, Wire, Wire, String)
- Constructs a new 3-input or gate with a new wire as its output.
-
or(Wire, Wire, Wire, Wire)
- Constructs a new 4-input or gate with a new wire as its output.
-
or(Wire, Wire, Wire, Wire, String)
- Constructs a new 4-input or gate with a new wire as its output.
-
or(Wire, Wire, Wire, Wire, Wire)
- Constructs a new 5-input or gate with a new wire as its output.
-
or(Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 5-input or gate with a new wire as its output.
-
or(Wire, Wire, Wire, Wire, Wire, Wire)
- Constructs a new 6-input or gate with a new wire as its output.
-
or(Wire, Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 6-input or gate with a new wire as its output.
-
or(Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Constructs a new 7-input or gate with a new wire as its output.
-
or(Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 7-input or gate with a new wire as its output.
-
or(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Constructs a new 8-input or gate with a new wire as its output.
-
or(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 8-input or gate with a new wire as its output.
-
or(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Constructs a new 9-input or gate with a new wire as its output.
-
or(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 9-input or gate with a new wire as its output.
-
or_o(Wire, Wire)
- Constructs a new named arbitrary-number-input or gate.
-
or_o(Wire, Wire, String)
- Constructs a new arbitrary-number-input or gate.
-
or_o(Wire, Wire, Wire)
- Constructs a new 2-input or gate.
-
or_o(Wire, Wire, Wire, String)
- Constructs a new 2-input or gate.
-
or_o(Wire, Wire, Wire, Wire)
- Constructs a new 3-input or gate.
-
or_o(Wire, Wire, Wire, Wire, String)
- Constructs a new 3-input or gate.
-
or_o(Wire, Wire, Wire, Wire, Wire)
- Constructs a new 4-input or gate.
-
or_o(Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 4-input or gate.
-
or_o(Wire, Wire, Wire, Wire, Wire, Wire)
- Constructs a new 5-input or gate.
-
or_o(Wire, Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 5-input or gate.
-
or_o(Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Constructs a new 6-input or gate.
-
or_o(Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 6-input or gate.
-
or_o(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Constructs a new 7-input or gate.
-
or_o(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 7-input or gate.
-
or_o(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Constructs a new 8-input or gate.
-
or_o(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 8-input or gate.
-
or_o(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Constructs a new 9-input or gate.
-
or_o(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 9-input or gate.
-
place(Cell, Directive, Cell)
- Places the cell curr_cell in the direction of dir from prev_cell.
-
place(Cell, Directive, Wire)
- Places curr_cell in the direction of dir from the cell associate with prev_out.
-
place(Cell, int, int)
- Annotates [x,y] placement hint onto the Cell parameter.
-
place(Cell, int, int, String)
- Aqnnotates [x,y] placement hint and target-specific
String hint onto the Cell parameter.
-
place(Cell, String)
- Annotates target-specific
String placement hint onto
the Cell parameter.
-
place(Wire, Directive, Cell)
- Places the cell associate with curr_out in the direction of dir from prev_cell.
-
place(Wire, Directive, Wire)
- Places the cell associate with curr_out in the direction of dir from prev_out.
-
place(Wire, int, int)
- Annotates placement hint (x,y) onto the Cell which drives
wire out1.
-
place(Wire, int, int, int, int)
- Annotates placement hint (x,y) onto the Cell which drives
wire out1.
-
place(Wire, int, int, int, int, String)
- Annotates [x,y] placement hint and target-specific
String hint onto the Cell which drives the wire
parameter.
Deprecated.
-
place(Wire, int, int, String)
- Annotates [x,y] placement hint and target-specific
String hint onto the Cell which drives the wire
parameter.
-
place(Wire, String)
- Annotates target-specific
String placement hint onto
the Cell which drives the wire parameter.
-
placeInPort(Wire, Cell, Directive)
-
-
placeInPort(Wire, Cell, Directive, Cell)
-
-
placeInPort(Wire, Cell, Directive, Wire)
-
-
placeInPort(Wire, Cell, Directive, Wire, Cell)
-
-
placeInPort(Wire, Wire, Directive)
-
-
placeOutPort(Wire, Cell, Directive, Wire, Cell)
-
-
printTechMapHints()
- Debugging method.
-
pulldown(Wire)
- Constructs a new pulldown resistor attached to a
user-supplied wire.
-
pulldown(Wire, String)
- Constructs a new pulldown resistor attached to a
user-supplied wire.
-
pullup(Wire)
- Constructs a new pullup resistor attached to a
user-supplied wire.
-
pullup(Wire, String)
- Constructs a new pullup resistor attached to a
user-supplied wire.
-
ram(Wire, Wire, Wire)
-
Instantiates an asynchronous RAM initialized to all zeros,
creating a new wire for the data-output signal.
-
ram(Wire, Wire, Wire, long[])
-
Instantiates an asynchronous RAM with the given
long[] array as the initialization values,
creating a new wire for the data-output signal.
-
ram(Wire, Wire, Wire, long[], String)
-
Instantiates a named asynchronous RAM with the given
long[] array as the initialization values, creating
a new wire for the data-output signal.
-
ram(Wire, Wire, Wire, String)
-
Instantiates a named asynchronous RAM initialized to all zeros,
creating a new wire for the data-output signal.
-
ram_o(Wire, Wire, Wire, Wire)
-
Instantiates an asynchronous RAM initialized to all zeros.
-
ram_o(Wire, Wire, Wire, Wire, long[])
-
Instantiates an asynchronous RAM with the given
long[] array as the initialization values.
-
ram_o(Wire, Wire, Wire, Wire, long[], String)
-
Instantiates a named asynchronous RAM with the given
long[] array as the initialization values.
-
ram_o(Wire, Wire, Wire, Wire, String)
-
Instantiates a named asynchronous RAM initialized to all zeros.
-
rams(Wire, Wire, Wire)
-
Instantiates a synchronous RAM initialized to all zeros,
creating a new wire for the data-output signal.
-
rams(Wire, Wire, Wire, long[])
-
Instantiates a synchronous RAM with the given
long[] array as the initialization values,
creating a new wire for the data-output signal.
-
rams(Wire, Wire, Wire, long[], String)
-
Instantiates a named synchronous RAM with the given
long[] array as the initialization values, creating
a new wire for the data-output signal.
-
rams(Wire, Wire, Wire, String)
-
Instantiates a named synchronous RAM initialized to all zeros,
creating a new wire for the data-output signal.
-
rams_o(Wire, Wire, Wire, Wire)
-
Instantiates a synchronous RAM initialized to all zeros.
-
rams_o(Wire, Wire, Wire, Wire, long[])
-
Instantiates a synchronous RAM with the given
long[] array as the initialization values.
-
rams_o(Wire, Wire, Wire, Wire, long[], String)
-
Instantiates a named synchronous RAM with the given
long[] array as the initialization values.
-
rams_o(Wire, Wire, Wire, Wire, String)
-
Instantiates a named synchronous RAM initialized to all zeros.
-
range(Wire, int, int)
- Returns the sub-range of bits, [hi, lo] (inclusive) from a bus.
-
reg(Wire)
- Constructs a new register with a new wire as its output.
-
reg(Wire, String)
- Constructs a new register with a new wire as its output.
-
reg_o(Wire, Wire)
- Constructs a new register.
-
reg_o(Wire, Wire, String)
- Constructs a new register.
-
regc(Wire)
- Constructs a new register with a new wire as its output, with
global reset state '0'.
-
regc(Wire, String)
- Constructs a new register with a new wire as its output, with
global reset state '0'.
-
regc_o(Wire, Wire)
- Constructs a new enabled register, with global reset state '0'.
-
regc_o(Wire, Wire, String)
- Constructs a new enabled register, with global reset state '0'.
-
regce(Wire, Wire)
- Constructs a new enabled register with a new wire as its output,
with global reset state '0'.
-
regce(Wire, Wire, String)
- Constructs a new enabled register with a new wire as its output,
with global reset state '0'.
-
regce_o(Wire, Wire, Wire)
- Constructs a new enabled register.
-
regce_o(Wire, Wire, Wire, String)
- Constructs a new enabled register.
-
regp(Wire)
- Constructs a new register with a new wire as its output, with
global reset state '1' x (width of output wire).
-
regp(Wire, String)
- Constructs a new register with a new wire as its output, with
global reset state '1' x (width of output wire).
-
regp_o(Wire, Wire)
- Constructs a new enabled register, with global reset state '1' x
(width of output wire).
-
regp_o(Wire, Wire, String)
- Constructs a new enabled register, with global reset state '1' x
(width of output wire).
-
regpe(Wire, Wire)
- Constructs a new enabled register with a new wire as its output,
with global reset state '1' x (width of output wire).
-
regpe(Wire, Wire, String)
- Constructs a new enabled register with a new wire as its output,
with global reset state '1' x (width of output wire).
-
regpe_o(Wire, Wire, Wire)
- Constructs a new enabled register, with global reset state '1' x
(width of output wire).
-
regpe_o(Wire, Wire, Wire, String)
- Constructs a new enabled register, with global reset state '1' x
(width of output wire).
-
regr(Wire, Wire)
-
Constructs a new synchronously reset register.
-
regr(Wire, Wire, String)
-
Constructs a new synchronously reset register with instance name
given by the
String parameter.
-
regr_o(Wire, Wire, Wire)
-
Constructs a new synchronously reset register.
-
regr_o(Wire, Wire, Wire, String)
-
Constructs a new synchronously reset register with instance name
given by the
String parameter.
-
regre(Wire, Wire, Wire)
-
Constructs a new clock-enabled synchronously reset register.
-
regre(Wire, Wire, Wire, String)
- Constructs a new clock-enabled synchronously reset register with
instance name given by the
String parameter.
-
regre_o(Wire, Wire, Wire, Wire)
-
Constructs a new clock-enabled synchronously reset register.
-
regre_o(Wire, Wire, Wire, Wire, String)
-
Constructs a new clock-enabled synchronously reset register with
instance name given by the
String parameter.
-
regs(Wire, Wire)
-
Constructs a new synchronously preset register.
-
regs(Wire, Wire, String)
-
Constructs a new synchronously preset register with instance name
given by the
String parameter.
-
regs_o(Wire, Wire, Wire)
-
Constructs a new synchronously preset register.
-
regs_o(Wire, Wire, Wire, String)
-
Constructs a new synchronously preset register with instance name
given by the
String parameter.
-
regse(Wire, Wire, Wire)
-
Constructs a new clock-enabled synchronously preset register.
-
regse(Wire, Wire, Wire, String)
- Constructs a new clock-enabled synchronously preset register with
instance name given by the
String parameter.
-
regse_o(Wire, Wire, Wire, Wire)
-
Constructs a new clock-enabled synchronously preset register.
-
regse_o(Wire, Wire, Wire, Wire, String)
-
Constructs a new clock-enabled synchronously preset register with
instance name given by the
String parameter.
-
rom(Wire, int, long[])
-
Instantiates a ROM with the given
long[] array as
the initialization values, returning a new wire as the data
output.
-
rom(Wire, int, long[], String)
-
Instantiates a named ROM with the given
long[]
array as the initialization values, returning a new wire as the
data output.
-
rom_o(Wire, Wire, long[])
-
Instantiates a ROM with the given
long[] array as
the initialization values.
-
rom_o(Wire, Wire, long[], String)
-
Instantiates a named ROM with the given
long[]
array as the initialization values.
-
rotate(Cell, int)
- Rotates the specified cell by the specifed number of degrees
in a counter-clockwise direction.
-
rotate(Wire, int)
- Rotates the source of the specified wire by the specifed number of degrees
in a counter-clockwise direction.
-
scale(Cell, int, int)
- Scales the specified cell by the specifed amount in the x
direction and by the specified amount in the y direction.
-
scale(Wire, int, int)
- Scales the source of the specified wire by the specifed amount in the x
direction and by the specified amount in the y direction.
-
setBBox(Cell)
- This method computes the bounding box of a cell, translates the children of that cell to position the upper left hand corner at (0,0) and returns how far the children were translated.
-
setDefaultTechMapper(TechMapper)
- Sets the default TechMapper associated with the Logic class.
-
setFloorPlannerIsMaster(FloorPlanner, boolean)
- Forces all tech-mapping control to be mastered by a FloorPlanner
module.
-
setTechMappingEnabled(boolean)
- Specifies whether technology mapping hints are to be annotated.
-
setWandH(Cell)
-
-
shiftl(Wire, int)
- Returns an left-shifted version of the input wire
parameter, with a new wire as its output.
-
shiftl_o(Wire, int, Wire)
- Returns an left-shifted version of the input wire
parameter.
-
shiftr(Wire, int)
- Returns an logically-right-shifted version of the input wire
parameter, with a new wire as its output.
-
shiftr_o(Wire, int, Wire)
- Returns an logically-right-shifted version of the input wire
parameter.
-
sink(Wire, Cell)
-
-
source(Wire)
- Returns the Cell which is the source for the wire paramater
in the
current level of hierarchy.
-
sub(Wire, Wire)
-
Constructs a new subtractor with no carry-in or carry-out, and
with a new wire as its sum output.
-
sub(Wire, Wire, String)
-
Constructs a new subtractor with no carry-in or carry-out, and
with a new wire as its sum output.
-
sub(Wire, Wire, Wire)
-
Constructs a new subtractor with no carry-out, and with a new
wire as its sum output.
-
sub(Wire, Wire, Wire, String)
-
Constructs a new subtractor with no carry-out, and with a new
wire as its sum output.
-
sub_o(Wire, Wire, Wire)
-
Constructs a new subtractor with no carry-out.
-
sub_o(Wire, Wire, Wire, String)
-
Constructs a new subtractor with no carry-out.
-
sub_o(Wire, Wire, Wire, Wire)
-
Constructs a new subtractor with no carry-out.
-
sub_o(Wire, Wire, Wire, Wire, String)
-
Constructs a new subtractor with no carry-out.
-
sub_o(Wire, Wire, Wire, Wire, Wire)
-
Constructs a new subtractor.
-
sub_o(Wire, Wire, Wire, Wire, Wire, String)
-
Constructs a new subtractor.
-
tbuf(Wire, Wire)
- Constructs a new tristate buffer, with a new wire as its output.
-
tbuf(Wire, Wire, String)
- Constructs a new tristate buffer, with a new wire as its output.
-
tbuf_o(Wire, Wire, Wire)
- Constructs a new tristate buffer, with user-supplied
wire as its output.
-
tbuf_o(Wire, Wire, Wire, String)
- Constructs a new tristate buffer, with user-supplied
wire as its output.
-
techmap(Object)
-
Initiates any necessary post-processing steps in the
TechMapper.
-
techMappingEnabled()
- Indicates the current enable status of technology hint
annotation.
-
translate(Cell, int, int)
- Translates the specified cell by dx in the x direction and dy in the
y direction.
-
translate(Wire, int, int)
- Translate the source of wire w by dx in the x direction and dy in the
y direction.
-
vcc()
- Returns a new wire connected to power.
-
vcc(int)
- Returns a new wire of the specified width connected to power.
-
vcc(int, String)
- Returns a new wire of the specified width connected to power.
-
vcc(String)
- Returns a new wire connected to power.
-
vcc_o(Wire)
- Connects wire o to power, and returns o.
-
vcc_o(Wire, String)
- Connects wire o to power, and returns o.
-
wire()
- Constructs a new "primitive" wire.
-
wire(Cell)
- Constructs a new "primitive" wire, with the specified
Node as parent.
-
wire(Cell, int)
- Constructs a new wire of width width, with the specified
Node as parent.
-
wire(Cell, int, String)
- Constructs a new named wire of width width, with the specified
Node as parent.
-
wire(Cell, String)
- Constructs a new named "primitive" wire, with the specified
Node as parent.
-
wire(int)
- Constructs a new wire of width width.
-
wire(int, String)
- Constructs a new named wire of width width.
-
wire(String)
- Constructs a new named "primitive" wire.
-
xnor(Wire, Wire)
- Constructs a new 2-input xnor gate with a new wire as its output.
-
xnor(Wire, Wire, String)
- Constructs a new 2-input xnor gate with a new wire as its output.
-
xnor(Wire, Wire, Wire)
- Constructs a new 3-input xnor gate with a new wire as its output.
-
xnor(Wire, Wire, Wire, String)
- Constructs a new 3-input xnor gate with a new wire as its output.
-
xnor(Wire, Wire, Wire, Wire)
- Constructs a new 4-input xnor gate with a new wire as its output.
-
xnor(Wire, Wire, Wire, Wire, String)
- Constructs a new 4-input xnor gate with a new wire as its output.
-
xnor(Wire, Wire, Wire, Wire, Wire)
- Constructs a new 5-input xnor gate with a new wire as its output.
-
xnor(Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 5-input xnor gate with a new wire as its output.
-
xnor(Wire, Wire, Wire, Wire, Wire, Wire)
- Constructs a new 6-input xnor gate with a new wire as its output.
-
xnor(Wire, Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 6-input xnor gate with a new wire as its output.
-
xnor(Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Constructs a new 7-input xnor gate with a new wire as its output.
-
xnor(Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 7-input xnor gate with a new wire as its output.
-
xnor(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Constructs a new 8-input xnor gate with a new wire as its output.
-
xnor(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 8-input xnor gate with a new wire as its output.
-
xnor(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Constructs a new 9-input xnor gate with a new wire as its output.
-
xnor(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 9-input xnor gate with a new wire as its output.
-
xnor_o(Wire, Wire)
- Constructs a new named arbitrary-number-input xnor gate.
-
xnor_o(Wire, Wire, String)
- Constructs a new arbitrary-number-input xnor gate.
-
xnor_o(Wire, Wire, Wire)
- Constructs a new 2-input xnor gate.
-
xnor_o(Wire, Wire, Wire, String)
- Constructs a new 2-input xnor gate.
-
xnor_o(Wire, Wire, Wire, Wire)
- Constructs a new 3-input xnor gate.
-
xnor_o(Wire, Wire, Wire, Wire, String)
- Constructs a new 3-input xnor gate.
-
xnor_o(Wire, Wire, Wire, Wire, Wire)
- Constructs a new 4-input xnor gate.
-
xnor_o(Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 4-input xnor gate.
-
xnor_o(Wire, Wire, Wire, Wire, Wire, Wire)
- Constructs a new 5-input xnor gate.
-
xnor_o(Wire, Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 5-input xnor gate.
-
xnor_o(Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Constructs a new 6-input xnor gate.
-
xnor_o(Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 6-input xnor gate.
-
xnor_o(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Constructs a new 7-input xnor gate.
-
xnor_o(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 7-input xnor gate.
-
xnor_o(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Constructs a new 8-input xnor gate.
-
xnor_o(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 8-input xnor gate.
-
xnor_o(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Constructs a new 9-input xnor gate.
-
xnor_o(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 9-input xnor gate.
-
xor(Wire)
- Constructs a new named arbitrary-number-input xor gate, with a
new wire as its output.
-
xor(Wire, String)
- Constructs a new arbitrary-number-input xor gate, with a new
wire as its output.
-
xor(Wire, Wire)
- Constructs a new 2-input xor gate with a new wire as its output.
-
xor(Wire, Wire, String)
- Constructs a new 2-input xor gate with a new wire as its output.
-
xor(Wire, Wire, Wire)
- Constructs a new 3-input xor gate with a new wire as its output.
-
xor(Wire, Wire, Wire, String)
- Constructs a new 3-input xor gate with a new wire as its output.
-
xor(Wire, Wire, Wire, Wire)
- Constructs a new 4-input xor gate with a new wire as its output.
-
xor(Wire, Wire, Wire, Wire, String)
- Constructs a new 4-input xor gate with a new wire as its output.
-
xor(Wire, Wire, Wire, Wire, Wire)
- Constructs a new 5-input xor gate with a new wire as its output.
-
xor(Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 5-input xor gate with a new wire as its output.
-
xor(Wire, Wire, Wire, Wire, Wire, Wire)
- Constructs a new 6-input xor gate with a new wire as its output.
-
xor(Wire, Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 6-input xor gate with a new wire as its output.
-
xor(Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Constructs a new 7-input xor gate with a new wire as its output.
-
xor(Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 7-input xor gate with a new wire as its output.
-
xor(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Constructs a new 8-input xor gate with a new wire as its output.
-
xor(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 8-input xor gate with a new wire as its output.
-
xor(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Constructs a new 9-input xor gate with a new wire as its output.
-
xor(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 9-input xor gate with a new wire as its output.
-
xor_o(Wire, Wire)
- Constructs a new named arbitrary-number-input xor gate.
-
xor_o(Wire, Wire, String)
- Constructs a new arbitrary-number-input xor gate.
-
xor_o(Wire, Wire, Wire)
- Constructs a new 2-input xor gate.
-
xor_o(Wire, Wire, Wire, String)
- Constructs a new 2-input xor gate.
-
xor_o(Wire, Wire, Wire, Wire)
- Constructs a new 3-input xor gate.
-
xor_o(Wire, Wire, Wire, Wire, String)
- Constructs a new 3-input xor gate.
-
xor_o(Wire, Wire, Wire, Wire, Wire)
- Constructs a new 4-input xor gate.
-
xor_o(Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 4-input xor gate.
-
xor_o(Wire, Wire, Wire, Wire, Wire, Wire)
- Constructs a new 5-input xor gate.
-
xor_o(Wire, Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 5-input xor gate.
-
xor_o(Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Constructs a new 6-input xor gate.
-
xor_o(Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 6-input xor gate.
-
xor_o(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Constructs a new 7-input xor gate.
-
xor_o(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 7-input xor gate.
-
xor_o(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Constructs a new 8-input xor gate.
-
xor_o(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 8-input xor gate.
-
xor_o(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire)
- Constructs a new 9-input xor gate.
-
xor_o(Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, Wire, String)
- Constructs a new 9-input xor gate.
implicit_interface
public static final CellInterface implicit_interface[]
UNCONSTRAINED
public static final int UNCONSTRAINED
- The value representing an unconstrained coordinate in placement.
MAX_PACK
public static final int MAX_PACK
- Placement directive representing maximal "primitive" packing.
UP
public static final int UP
- Value stored in class byucc.jhdl.Logic.Directive that indicates
direction of relational placement.
DOWN
public static final int DOWN
- Value stored in class byucc.jhdl.Logic.Directive that indicates
direction of relational placement.
TORIGHT
public static final int TORIGHT
- Value stored in class byucc.jhdl.Logic.Directive that indicates
direction of relational placement.
TOLEFT
public static final int TOLEFT
- Value stored in class byucc.jhdl.Logic.Directive that indicates
direction of relational placement.
ONTOP
public static final int ONTOP
- Value stored in class byucc.jhdl.Logic.Directive that indicates
direction of relational placement.
ALIGN_RIGHT
public static final int ALIGN_RIGHT
ALIGN_LEFT
public static final int ALIGN_LEFT
ALIGN_TOP
public static final int ALIGN_TOP
ALIGN_BOTTOM
public static final int ALIGN_BOTTOM
ALIGN_CENTER
public static final int ALIGN_CENTER
ALIGN_MSB
public static final int ALIGN_MSB
ALIGN_LSB
public static final int ALIGN_LSB
ABOVE
public static Directive ABOVE
- Relational Placement directive which indicates that the current cell
should be placed in the negative Y direction on the JHDL grid from a
previous cell.
BELOW
public static Directive BELOW
- Relational Placement directive which indicates that the current cell
should be placed in the negative Y direction on the JHDL grid from a
previous cell.
RIGHT_OF
public static Directive RIGHT_OF
- Relational Placement directive which indicates that the current cell
should be placed in the negative X direction on the JHDL grid from a
previous cell.
LEFT_OF
public static Directive LEFT_OF
- Relational Placement directive which indicates that the current cell
should be placed in the negative X direction on the JHDL grid from a
previous cell.
ON
public static Directive ON
- Relational Placement directive which indicates that the current cell
should be placed in the same spot on the JHDL grid as a
previous cell.
NORTH_OF
public static Directive NORTH_OF
- Relational Placement directive which indicates that the current cell
should be placed in the negative Y direction on the JHDL grid from a
previous cell.
SOUTH_OF
public static Directive SOUTH_OF
- Relational Placement directive which indicates that the current cell
should be placed in the negative Y direction on the JHDL grid from a
previous cell.
EAST_OF
public static Directive EAST_OF
- Relational Placement directive which indicates that the current cell
should be placed in the negative X direction on the JHDL grid from a
previous cell.
WEST_OF
public static Directive WEST_OF
- Relational Placement directive which indicates that the current cell
should be placed in the negative X direction on the JHDL grid from a
previous cell.
ONTOP_OF
public static Directive ONTOP_OF
- Relational Placement directive which indicates that the current cell
should be placed in the same spot on the JHDL grid as a
previous cell.
Logic
public Logic(Node parent)
- Constructs a new Logic object with given node as parent. Clones
the default TechMapper object to get its TechMapper.
- Parameters:
- parent - The Node object to be used as parent.
Logic
public Logic(Node parent,
String name)
- Constructs a new Logic object with given node as parent, naming
it with the given string. Clones the default TechMapper object
to get its TechMapper.
- Parameters:
- parent - The Node object to be used as parent.
- name - The name of the cell.
Logic
protected Logic(Node parent,
TechMapper tm)
- Constructs a new Logic object with given node as parent, using
the given TechMapper object for technology mapping.
- Parameters:
- parent - The Node object to be used as parent.
- tm - The TechMapper object to use for technology mapping.
Logic
protected Logic(Node parent,
TechMapper tm,
String name)
- Constructs a new Logic object with given node as parent, naming
it with the given string, and using the given TechMapper object
for technology mapping.
- Parameters:
- parent - The Node object to be used as parent.
- tm - The TechMapper object to use for technology mapping.
- name - The name of the cell.
getTechMapper
public TechMapper getTechMapper()
- Returns the TechMapper object associated with Logic.
- Returns:
- The TechMapper associated with Logic.
getDefaultTechMapper
public static TechMapper getDefaultTechMapper()
- Returns the TechMapper object associated with the Logic class.
- Returns:
- The TechMapper associated with the Logic class.
setDefaultTechMapper
public static void setDefaultTechMapper(TechMapper tm)
- Sets the default TechMapper associated with the Logic class.
The default TechMapper is basically cloned by a new
Logic object, unless a different TechMapper is explicitly
specified. Therefore, you generally only need to set the
default TechMapper once before you construct your circuit.
- Parameters:
- tm - The TechMapper object to be associated with the Logic class.
enableNewPlacement
public static boolean enableNewPlacement()
enableNewPlacement
public void enableNewPlacement(boolean enp)
setFloorPlannerIsMaster
public static void setFloorPlannerIsMaster(FloorPlanner fp,
boolean b)
- Forces all tech-mapping control to be mastered by a FloorPlanner
module.
- Parameters:
- fp - The FloorPlanner module that will be the master
- b -
true if the FloorPlanner is to be master
setTechMappingEnabled
public static void setTechMappingEnabled(boolean b)
- Specifies whether technology mapping hints are to be annotated.
If technology mapping is disabled, the map() and place() methods
will have no effect.
- Parameters:
- b - The enable value:
true to enable,
false to disable.
techMappingEnabled
public static boolean techMappingEnabled()
- Indicates the current enable status of technology hint
annotation.
- Returns:
-
true if enabled, false if
disabled.
connect_implicit_ports
protected void connect_implicit_ports()
getGlobalClock
public static Wire getGlobalClock(HWSystem system)
- Returns the global clock wire associated with the
current TechMapper.
- Parameters:
- system - The HWSystem with which to register the global clock
- Returns:
- The global clock wire from the current TechMapper.
clockDriver
public void clockDriver(Wire clock,
String schedule,
String name)
buf
public Wire buf(Wire in)
- Constructs a new buffer, with a new wire as its output. Returns
the new wire. Valid signal widths: any width.
- Parameters:
- in - Input wire to the buffer
- Returns:
- A new wire that is connected to the output of the buffer.
buf
public Wire buf(Wire in,
String name)
- Constructs a new buffer, with a new wire as its output. Returns
the new wire. Valid signal widths: any width.
- Parameters:
- name - Instance name for the buffer
- in - Input wire to the buffer
- Returns:
- A new wire that is connected to the output of the buffer.
buf_o
public Wire buf_o(Wire in,
Wire out)
- Constructs a new buffer, with user-supplied wire as its output.
Returns the supplied output wire. Valid signal
widths: any width.
- Parameters:
- in - Input wire to the buffer
- out - Output wire to the buffer
- Returns:
- out wire.
buf_o
public Wire buf_o(Wire in,
Wire out,
String name)
- Constructs a new buffer, with user-supplied wire as its output.
Returns the supplied output wire. Valid signal
widths: any width.
- Parameters:
- name - Instance name for the buffer
- in - Input wire to the buffer
- out - Output wire to the buffer
- Returns:
- out wire.
tbuf
public Wire tbuf(Wire in,
Wire en)
- Constructs a new tristate buffer, with a new wire as its output.
The tristate enable is active low.
Returns the new wire. Valid signal widths: any width.
- Parameters:
- in - Input wire to the tristate buffer
- en - Active-low enable for tristate output.
- Returns:
- A new wire that is connected to the output of the buffer.
tbuf
public Wire tbuf(Wire in,
Wire en,
String name)
- Constructs a new tristate buffer, with a new wire as its output.
The tristate enable is active low.
Returns the new wire. Valid signal widths: any width.
- Parameters:
- name - Instance name for the buffer
- in - Input wire to the buffer
- en - Active-low enable for tristate output.
- Returns:
- A new wire that is connected to the output of the buffer.
tbuf_o
public Wire tbuf_o(Wire in,
Wire en,
Wire out)
- Constructs a new tristate buffer, with user-supplied
wire as its output.
The tristate enable is active low.
Returns the supplied output wire. Valid signal
widths: any width.
- Parameters:
- in - Input wire to the buffer
- en - Active-low enable for tristate output.
- out - Output wire to the buffer
- Returns:
- out wire.
tbuf_o
public Wire tbuf_o(Wire in,
Wire en,
Wire out,
String name)
- Constructs a new tristate buffer, with user-supplied
wire as its output.
The tristate enable is active-low.
Returns the supplied output wire. Valid signal
widths: any width.
- Parameters:
- name - Instance name for the buffer
- in - Input wire to the buffer
- en - Active-low enable for tristate output.
- out - Output wire to the buffer
- Returns:
- out wire.
pullup
public Wire pullup(Wire out)
- Constructs a new pullup resistor attached to a
user-supplied wire.
Valid signal widths: Any width.
- Parameters:
- out - Wire attached to the pullup.
- Returns:
- out wire.
pullup
public Wire pullup(Wire out,
String name)
- Constructs a new pullup resistor attached to a
user-supplied wire.
Valid signal widths: Any width.
- Parameters:
- name - Instance name for pullup
- out - Wire attached to the pullup.
- Returns:
- out wire.
pulldown
public Wire pulldown(Wire out)
- Constructs a new pulldown resistor attached to a
user-supplied wire.
Valid signal widths: Any width.
- Parameters:
- out - Wire attached to the pulldown.
- Returns:
- out wire.
pulldown
public Wire pulldown(Wire out,
String name)
- Constructs a new pulldown resistor attached to a
user-supplied wire.
Valid signal widths: Any width.
- Parameters:
- name - Instance name for pulldown.
- out - Wire attached to the pulldown.
- Returns:
- out wire.
and
public Wire and(Wire in)
- Constructs a new named arbitrary-number-input and gate, with a
new wire as its output. Returns the new output wire. The
constructed function computes the logical and of all the
bits in the input wire; i.e. if
in were an N-bit
wire, the output o will be assigned in[0] &
in[1] & ... & in[N-2] & in[N-1].
and
public Wire and(Wire in,
String name)
- Constructs a new arbitrary-number-input and gate, with a new
wire as its output. Returns the new output wire. The
constructed function computes the logical and of all the
bits in the input wire; i.e. if
in were an N-bit
wire, the output o will be assigned in[0] &
in[1] & ... & in[N-2] & in[N-1].
and
public Wire and(Wire in1,
Wire in2)
- Constructs a new 2-input and gate, with a new wire as its
output. Returns the new output wire. (Note that this is a
bitwise and -- calling and(a,b) on 2-bit signals is
equivalent to calling and(a.getWire(0), b.getWire(0));
and(a.getWire(1), b.getWire(1));
- Parameters:
- in1 - Input 1 to the and gate.
- in2 - Input 2 to the and gate.
- Returns:
- A new wire that is connected to the output of the
and gate, the same width as the input wires.
and
public Wire and(Wire in1,
Wire in2,
String name)
- Constructs a new 2-input and gate, with a new wire as its
output. Returns the new output wire. (Note that this is a
bitwise and -- calling and(a,b) on 2-bit signals is
equivalent to calling and(a.getWire(0), b.getWire(0));
and(a.getWire(1), b.getWire(1));
- Parameters:
- name - Instance name for the and gate
- in1 - Input 1 to the and gate.
- in2 - Input 2 to the and gate.
- Returns:
- A new wire that is connected to the output of the
and gate, the same width as the input wires.
and
public Wire and(Wire in1,
Wire in2,
Wire in3)
- Constructs a new 3-input and gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the and gate.
- in2 - Input 2 to the and gate.
- in3 - Input 3 to the and gate.
- Returns:
- A new 1-bit wire that is connected to the output of
and gate.
and
public Wire and(Wire in1,
Wire in2,
Wire in3,
String name)
- Constructs a new 3-input and gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- name - Instance name for the and gate
- in1 - Input 1 to the and gate.
- in2 - Input 2 to the and gate.
- in3 - Input 3 to the and gate.
- Returns:
- A new 1-bit wire that is connected to the output of
and gate.
and
public Wire and(Wire in1,
Wire in2,
Wire in3,
Wire in4)
- Constructs a new 4-input and gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the and gate.
- in2 - Input 2 to the and gate.
- in3 - Input 3 to the and gate.
- in4 - Input 4 to the and gate.
- Returns:
- A new 1-bit wire that is connected to the output of
and gate.
and
public Wire and(Wire in1,
Wire in2,
Wire in3,
Wire in4,
String name)
- Constructs a new 4-input and gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- name - Instance name for the and gate
- in1 - Input 1 to the and gate.
- in2 - Input 2 to the and gate.
- in3 - Input 3 to the and gate.
- in4 - Input 4 to the and gate.
- Returns:
- A new 1-bit wire that is connected to the output of
and gate.
and
public Wire and(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5)
- Constructs a new 5-input and gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the and gate.
- in2 - Input 2 to the and gate.
- in3 - Input 3 to the and gate.
- in4 - Input 4 to the and gate.
- in5 - Input 5 to the and gate.
- Returns:
- A new 1-bit wire that is connected to the output of
and gate.
and
public Wire and(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
String name)
- Constructs a new 5-input and gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- name - Instance name for the and gate
- in1 - Input 1 to the and gate.
- in2 - Input 2 to the and gate.
- in3 - Input 3 to the and gate.
- in4 - Input 4 to the and gate.
- in5 - Input 5 to the and gate.
- Returns:
- A new 1-bit wire that is connected to the output of
and gate.
and
public Wire and(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6)
- Constructs a new 6-input and gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the and gate.
- in2 - Input 2 to the and gate.
- in3 - Input 3 to the and gate.
- in4 - Input 4 to the and gate.
- in5 - Input 5 to the and gate.
- in6 - Input 6 to the and gate.
- Returns:
- A new 1-bit wire that is connected to the output of
and gate.
and
public Wire and(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
String name)
- Constructs a new 6-input and gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- name - Instance name for the and gate
- in1 - Input 1 to the and gate.
- in2 - Input 2 to the and gate.
- in3 - Input 3 to the and gate.
- in4 - Input 4 to the and gate.
- in5 - Input 5 to the and gate.
- in6 - Input 6 to the and gate.
- Returns:
- A new 1-bit wire that is connected to the output of
and gate.
and
public Wire and(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7)
- Constructs a new 7-input and gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the and gate.
- in2 - Input 2 to the and gate.
- in3 - Input 3 to the and gate.
- in4 - Input 4 to the and gate.
- in5 - Input 5 to the and gate.
- in6 - Input 6 to the and gate.
- in7 - Input 7 to the and gate.
- Returns:
- A new 1-bit wire that is connected to the output of
and gate.
and
public Wire and(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
String name)
- Constructs a new 7-input and gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- name - Instance name for the and gate
- in1 - Input 1 to the and gate.
- in2 - Input 2 to the and gate.
- in3 - Input 3 to the and gate.
- in4 - Input 4 to the and gate.
- in5 - Input 5 to the and gate.
- in6 - Input 6 to the and gate.
- in7 - Input 7 to the and gate.
- Returns:
- A new 1-bit wire that is connected to the output of
and gate.
and
public Wire and(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
Wire in8)
- Constructs a new 8-input and gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the and gate.
- in2 - Input 2 to the and gate.
- in3 - Input 3 to the and gate.
- in4 - Input 4 to the and gate.
- in5 - Input 5 to the and gate.
- in6 - Input 6 to the and gate.
- in7 - Input 7 to the and gate.
- in8 - Input 8 to the and gate.
- Returns:
- A new 1-bit wire that is connected to the output of
and gate.
and
public Wire and(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
Wire in8,
String name)
- Constructs a new 8-input and gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- name - Instance name for the and gate
- in1 - Input 1 to the and gate.
- in2 - Input 2 to the and gate.
- in3 - Input 3 to the and gate.
- in4 - Input 4 to the and gate.
- in5 - Input 5 to the and gate.
- in6 - Input 6 to the and gate.
- in7 - Input 7 to the and gate.
- in8 - Input 8 to the and gate.
- Returns:
- A new 1-bit wire that is connected to the output of
and gate.
and
public Wire and(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
Wire in8,
Wire in9)
- Constructs a new 9-input and gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the and gate.
- in2 - Input 2 to the and gate.
- in3 - Input 3 to the and gate.
- in4 - Input 4 to the and gate.
- in5 - Input 5 to the and gate.
- in6 - Input 6 to the and gate.
- in7 - Input 7 to the and gate.
- in8 - Input 8 to the and gate.
- in9 - Input 9 to the and gate.
- Returns:
- A new 1-bit wire that is connected to the output of
and gate.
and
public Wire and(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
Wire in8,
Wire in9,
String name)
- Constructs a new 9-input and gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- name - Instance name for the and gate
- in1 - Input 1 to the and gate.
- in2 - Input 2 to the and gate.
- in3 - Input 3 to the and gate.
- in4 - Input 4 to the and gate.
- in5 - Input 5 to the and gate.
- in6 - Input 6 to the and gate.
- in7 - Input 7 to the and gate.
- in8 - Input 8 to the and gate.
- in9 - Input 9 to the and gate.
- Returns:
- A new 1-bit wire that is connected to the output of
and gate.
and_o
public Wire and_o(Wire in,
Wire out)
- Constructs a new named arbitrary-number-input and gate. Returns
the output wire. The constructed function computes the logical
and of all the bits in the input wire; i.e. if
in were an N-bit wire, the output o
will be assigned in[0] & in[1] & ... & in[N-2] &
in[N-1].
and_o
public Wire and_o(Wire in,
Wire out,
String name)
- Constructs a new arbitrary-number-input and gate. Returns the
output wire. The constructed function computes the logical
and of all the bits in the input wire; i.e. if
in were an N-bit wire, the output o
will be assigned in[0] & in[1] & ... & in[N-2] &
in[N-1].
and_o
public Wire and_o(Wire in1,
Wire in2,
Wire out)
- Constructs a new 2-input and gate.
Returns the output wire.
Valid signal widths: any width. (Note that this is a
bitwise and -- calling and(a,b) on 2-bit signals is
equivalent to calling and(a.getWire(0), b.getWire(0));
and(a.getWire(1), b.getWire(1));
- Parameters:
- in1 - Input 1 to the and gate.
- in2 - Input 2 to the and gate.
- out - Output to the and gate.
- Returns:
- out wire.
and_o
public Wire and_o(Wire in1,
Wire in2,
Wire out,
String name)
- Constructs a new 2-input and gate.
Returns the output wire.
Valid signal widths: any width. (Note that this is a
bitwise and -- calling and(a,b) on 2-bit signals is
equivalent to calling and(a.getWire(0), b.getWire(0));
and(a.getWire(1), b.getWire(1));
- Parameters:
- name - Instance name for the and gate
- in1 - Input 1 to the and gate.
- in2 - Input 2 to the and gate.
- out - Output to the and gate.
- Returns:
- out wire.
and_o
public Wire and_o(Wire in1,
Wire in2,
Wire in3,
Wire out)
- Constructs a new 3-input and gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the and gate.
- in2 - Input 2 to the and gate.
- in3 - Input 3 to the and gate.
- out - Output to the and gate.
- Returns:
- out wire.
and_o
public Wire and_o(Wire in1,
Wire in2,
Wire in3,
Wire out,
String name)
- Constructs a new 3-input and gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- name - Instance name for the and gate
- in1 - Input 1 to the and gate.
- in2 - Input 2 to the and gate.
- in3 - Input 3 to the and gate.
- out - Output to the and gate.
- Returns:
- out wire.
and_o
public Wire and_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire out)
- Constructs a new 4-input and gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the and gate.
- in2 - Input 2 to the and gate.
- in3 - Input 3 to the and gate.
- in4 - Input 4 to the and gate.
- out - Output to the and gate.
- Returns:
- out wire.
and_o
public Wire and_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire out,
String name)
- Constructs a new 4-input and gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- name - Instance name for the and gate
- in1 - Input 1 to the and gate.
- in2 - Input 2 to the and gate.
- in3 - Input 3 to the and gate.
- in4 - Input 4 to the and gate.
- out - Output to the and gate.
- Returns:
- out wire.
and_o
public Wire and_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire out)
- Constructs a new 5-input and gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the and gate.
- in2 - Input 2 to the and gate.
- in3 - Input 3 to the and gate.
- in4 - Input 4 to the and gate.
- in5 - Input 5 to the and gate.
- out - Output to the and gate.
- Returns:
- out wire.
and_o
public Wire and_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire out,
String name)
- Constructs a new 5-input and gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- name - Instance name for the and gate
- in1 - Input 1 to the and gate.
- in2 - Input 2 to the and gate.
- in3 - Input 3 to the and gate.
- in4 - Input 4 to the and gate.
- in5 - Input 5 to the and gate.
- out - Output to the and gate.
- Returns:
- out wire.
and_o
public Wire and_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire out)
- Constructs a new 6-input and gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the and gate.
- in2 - Input 2 to the and gate.
- in3 - Input 3 to the and gate.
- in4 - Input 4 to the and gate.
- in5 - Input 5 to the and gate.
- in6 - Input 6 to the and gate.
- out - Output to the and gate.
- Returns:
- out wire.
and_o
public Wire and_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire out,
String name)
- Constructs a new 6-input and gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- name - Instance name for the and gate
- in1 - Input 1 to the and gate.
- in2 - Input 2 to the and gate.
- in3 - Input 3 to the and gate.
- in4 - Input 4 to the and gate.
- in5 - Input 5 to the and gate.
- in6 - Input 6 to the and gate.
- out - Output to the and gate.
- Returns:
- out wire.
and_o
public Wire and_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
Wire out)
- Constructs a new 7-input and gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the and gate.
- in2 - Input 2 to the and gate.
- in3 - Input 3 to the and gate.
- in4 - Input 4 to the and gate.
- in5 - Input 5 to the and gate.
- in6 - Input 6 to the and gate.
- in7 - Input 7 to the and gate.
- out - Output to the and gate.
- Returns:
- out wire.
and_o
public Wire and_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
Wire out,
String name)
- Constructs a new 7-input and gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- name - Instance name for the and gate
- in1 - Input 1 to the and gate.
- in2 - Input 2 to the and gate.
- in3 - Input 3 to the and gate.
- in4 - Input 4 to the and gate.
- in5 - Input 5 to the and gate.
- in6 - Input 6 to the and gate.
- in7 - Input 7 to the and gate.
- out - Output to the and gate.
- Returns:
- out wire.
and_o
public Wire and_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
Wire in8,
Wire out)
- Constructs a new 8-input and gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the and gate.
- in2 - Input 2 to the and gate.
- in3 - Input 3 to the and gate.
- in4 - Input 4 to the and gate.
- in5 - Input 5 to the and gate.
- in6 - Input 6 to the and gate.
- in7 - Input 7 to the and gate.
- in8 - Input 8 to the and gate.
- out - Output to the and gate.
- Returns:
- out wire.
and_o
public Wire and_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
Wire in8,
Wire out,
String name)
- Constructs a new 8-input and gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- name - Instance name for the and gate
- in1 - Input 1 to the and gate.
- in2 - Input 2 to the and gate.
- in3 - Input 3 to the and gate.
- in4 - Input 4 to the and gate.
- in5 - Input 5 to the and gate.
- in6 - Input 6 to the and gate.
- in7 - Input 7 to the and gate.
- in8 - Input 8 to the and gate.
- out - Output to the and gate.
- Returns:
- out wire.
and_o
public Wire and_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
Wire in8,
Wire in9,
Wire out)
- Constructs a new 9-input and gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the and gate.
- in2 - Input 2 to the and gate.
- in3 - Input 3 to the and gate.
- in4 - Input 4 to the and gate.
- in5 - Input 5 to the and gate.
- in6 - Input 6 to the and gate.
- in7 - Input 7 to the and gate.
- in8 - Input 8 to the and gate.
- in9 - Input 9 to the and gate.
- out - Output to the and gate.
- Returns:
- out wire.
and_o
public Wire and_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
Wire in8,
Wire in9,
Wire out,
String name)
- Constructs a new 9-input and gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- name - Instance name for the and gate
- in1 - Input 1 to the and gate.
- in2 - Input 2 to the and gate.
- in3 - Input 3 to the and gate.
- in4 - Input 4 to the and gate.
- in5 - Input 5 to the and gate.
- in6 - Input 6 to the and gate.
- in7 - Input 7 to the and gate.
- in8 - Input 8 to the and gate.
- in9 - Input 9 to the and gate.
- out - Output to the and gate.
- Returns:
- out wire.
or
public Wire or(Wire in)
- Constructs a new named arbitrary-number-input or gate, with a
new wire as its output. Returns the new output wire. The
constructed function computes the logical or of all the
bits in the input wire; i.e. if
in were an N-bit
wire, the output o will be assigned in[0] |
in[1] | ... | in[N-2] | in[N-1].
or
public Wire or(Wire in,
String name)
- Constructs a new arbitrary-number-input or gate, with a new
wire as its output. Returns the new output wire. The
constructed function computes the logical or of all the
bits in the input wire; i.e. if
in were an N-bit
wire, the output o will be assigned in[0] |
in[1] | ... | in[N-2] | in[N-1].
or
public Wire or(Wire in1,
Wire in2)
- Constructs a new 2-input or gate with a new wire as its output.
Returns the new output wire.
Valid signal widths: any width. (Note that this is a
bitwise or -- calling or(a,b) on 2-bit signals is
equivalent to calling or(a.getWire(0), b.getWire(0));
or(a.getWire(1), b.getWire(1));
- Parameters:
- in1 - Input 1 to the or gate.
- in2 - Input 2 to the or gate.
- Returns:
- A new wire that is connected to the output of the
or gate, the same width as the input wires.
or
public Wire or(Wire in1,
Wire in2,
String name)
- Constructs a new 2-input or gate with a new wire as its output.
Returns the new output wire.
Valid signal widths: any width. (Note that this is a
bitwise or -- calling or(a,b) on 2-bit signals is
equivalent to calling or(a.getWire(0), b.getWire(0));
or(a.getWire(1), b.getWire(1));
- Parameters:
- name - Instance name for the or gate
- in1 - Input 1 to the or gate.
- in2 - Input 2 to the or gate.
- Returns:
- A new wire that is connected to the output of the
or gate, the same width as the input wires.
or
public Wire or(Wire in1,
Wire in2,
Wire in3)
- Constructs a new 3-input or gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the or gate.
- in2 - Input 2 to the or gate.
- in3 - Input 3 to the or gate.
- Returns:
- A new 1-bit wire that is connected to the output of
or gate.
or
public Wire or(Wire in1,
Wire in2,
Wire in3,
String name)
- Constructs a new 3-input or gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- name - Instance name for the or gate
- in1 - Input 1 to the or gate.
- in2 - Input 2 to the or gate.
- in3 - Input 3 to the or gate.
- Returns:
- A new 1-bit wire that is connected to the output of
or gate.
or
public Wire or(Wire in1,
Wire in2,
Wire in3,
Wire in4)
- Constructs a new 4-input or gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the or gate.
- in2 - Input 2 to the or gate.
- in3 - Input 3 to the or gate.
- in4 - Input 4 to the or gate.
- Returns:
- A new 1-bit wire that is connected to the output of
or gate.
or
public Wire or(Wire in1,
Wire in2,
Wire in3,
Wire in4,
String name)
- Constructs a new 4-input or gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- name - Instance name for the or gate
- in1 - Input 1 to the or gate.
- in2 - Input 2 to the or gate.
- in3 - Input 3 to the or gate.
- in4 - Input 4 to the or gate.
- Returns:
- A new 1-bit wire that is connected to the output of
or gate.
or
public Wire or(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5)
- Constructs a new 5-input or gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the or gate.
- in2 - Input 2 to the or gate.
- in3 - Input 3 to the or gate.
- in4 - Input 4 to the or gate.
- in5 - Input 5 to the or gate.
- Returns:
- A new 1-bit wire that is connected to the output of
or gate.
or
public Wire or(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
String name)
- Constructs a new 5-input or gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- name - Instance name for the or gate
- in1 - Input 1 to the or gate.
- in2 - Input 2 to the or gate.
- in3 - Input 3 to the or gate.
- in4 - Input 4 to the or gate.
- in5 - Input 5 to the or gate.
- Returns:
- A new 1-bit wire that is connected to the output of
or gate.
or
public Wire or(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6)
- Constructs a new 6-input or gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the or gate.
- in2 - Input 2 to the or gate.
- in3 - Input 3 to the or gate.
- in4 - Input 4 to the or gate.
- in5 - Input 5 to the or gate.
- in6 - Input 6 to the or gate.
- Returns:
- A new 1-bit wire that is connected to the output of
or gate.
or
public Wire or(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
String name)
- Constructs a new 6-input or gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- name - Instance name for the or gate
- in1 - Input 1 to the or gate.
- in2 - Input 2 to the or gate.
- in3 - Input 3 to the or gate.
- in4 - Input 4 to the or gate.
- in5 - Input 5 to the or gate.
- in6 - Input 6 to the or gate.
- Returns:
- A new 1-bit wire that is connected to the output of
or gate.
or
public Wire or(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7)
- Constructs a new 7-input or gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the or gate.
- in2 - Input 2 to the or gate.
- in3 - Input 3 to the or gate.
- in4 - Input 4 to the or gate.
- in5 - Input 5 to the or gate.
- in6 - Input 6 to the or gate.
- in7 - Input 7 to the or gate.
- Returns:
- A new 1-bit wire that is connected to the output of
or gate.
or
public Wire or(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
String name)
- Constructs a new 7-input or gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- name - Instance name for the or gate
- in1 - Input 1 to the or gate.
- in2 - Input 2 to the or gate.
- in3 - Input 3 to the or gate.
- in4 - Input 4 to the or gate.
- in5 - Input 5 to the or gate.
- in6 - Input 6 to the or gate.
- in7 - Input 7 to the or gate.
- Returns:
- A new 1-bit wire that is connected to the output of
or gate.
or
public Wire or(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
Wire in8)
- Constructs a new 8-input or gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the or gate.
- in2 - Input 2 to the or gate.
- in3 - Input 3 to the or gate.
- in4 - Input 4 to the or gate.
- in5 - Input 5 to the or gate.
- in6 - Input 6 to the or gate.
- in7 - Input 7 to the or gate.
- in8 - Input 8 to the or gate.
- Returns:
- A new 1-bit wire that is connected to the output of
or gate.
or
public Wire or(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
Wire in8,
String name)
- Constructs a new 8-input or gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- name - Instance name for the or gate
- in1 - Input 1 to the or gate.
- in2 - Input 2 to the or gate.
- in3 - Input 3 to the or gate.
- in4 - Input 4 to the or gate.
- in5 - Input 5 to the or gate.
- in6 - Input 6 to the or gate.
- in7 - Input 7 to the or gate.
- in8 - Input 8 to the or gate.
- Returns:
- A new 1-bit wire that is connected to the output of
or gate.
or
public Wire or(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
Wire in8,
Wire in9)
- Constructs a new 9-input or gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the or gate.
- in2 - Input 2 to the or gate.
- in3 - Input 3 to the or gate.
- in4 - Input 4 to the or gate.
- in5 - Input 5 to the or gate.
- in6 - Input 6 to the or gate.
- in7 - Input 7 to the or gate.
- in8 - Input 8 to the or gate.
- in9 - Input 9 to the or gate.
- Returns:
- A new 1-bit wire that is connected to the output of
or gate.
or
public Wire or(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
Wire in8,
Wire in9,
String name)
- Constructs a new 9-input or gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- name - Instance name for the or gate
- in1 - Input 1 to the or gate.
- in2 - Input 2 to the or gate.
- in3 - Input 3 to the or gate.
- in4 - Input 4 to the or gate.
- in5 - Input 5 to the or gate.
- in6 - Input 6 to the or gate.
- in7 - Input 7 to the or gate.
- in8 - Input 8 to the or gate.
- in9 - Input 9 to the or gate.
- Returns:
- A new 1-bit wire that is connected to the output of
or gate.
or_o
public Wire or_o(Wire in,
Wire out)
- Constructs a new named arbitrary-number-input or gate. Returns
the output wire. The constructed function computes the logical
or of all the bits in the input wire; i.e. if
in were an N-bit wire, the output o
will be assigned in[0] | in[1] | ... | in[N-2] |
in[N-1].
or_o
public Wire or_o(Wire in,
Wire out,
String name)
- Constructs a new arbitrary-number-input or gate. Returns the
output wire. The constructed function computes the logical
or of all the bits in the input wire; i.e. if
in were an N-bit wire, the output o
will be assigned in[0] | in[1] | ... | in[N-2] |
in[N-1].
or_o
public Wire or_o(Wire in1,
Wire in2,
Wire out)
- Constructs a new 2-input or gate.
Returns the output wire.
Valid signal widths: any width. (Note that this is a
bitwise or -- calling or(a,b) on 2-bit signals is
equivalent to calling or(a.getWire(0), b.getWire(0));
or(a.getWire(1), b.getWire(1));
- Parameters:
- in1 - Input 1 to the or gate.
- in2 - Input 2 to the or gate.
- out - Output to the or gate.
- Returns:
- out wire.
or_o
public Wire or_o(Wire in1,
Wire in2,
Wire out,
String name)
- Constructs a new 2-input or gate.
Returns the output wire.
Valid signal widths: any width. (Note that this is a
bitwise or -- calling or(a,b) on 2-bit signals is
equivalent to calling or(a.getWire(0), b.getWire(0));
or(a.getWire(1), b.getWire(1));
- Parameters:
- name - Instance name for the or gate
- in1 - Input 1 to the or gate.
- in2 - Input 2 to the or gate.
- out - Output to the or gate.
- Returns:
- out wire.
or_o
public Wire or_o(Wire in1,
Wire in2,
Wire in3,
Wire out)
- Constructs a new 3-input or gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the or gate.
- in2 - Input 2 to the or gate.
- in3 - Input 3 to the or gate.
- out - Output to the or gate.
- Returns:
- out wire.
or_o
public Wire or_o(Wire in1,
Wire in2,
Wire in3,
Wire out,
String name)
- Constructs a new 3-input or gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- name - Instance name for the or gate
- in1 - Input 1 to the or gate.
- in2 - Input 2 to the or gate.
- in3 - Input 3 to the or gate.
- out - Output to the or gate.
- Returns:
- out wire.
or_o
public Wire or_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire out)
- Constructs a new 4-input or gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the or gate.
- in2 - Input 2 to the or gate.
- in3 - Input 3 to the or gate.
- in4 - Input 4 to the or gate.
- out - Output to the or gate.
- Returns:
- out wire.
or_o
public Wire or_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire out,
String name)
- Constructs a new 4-input or gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- name - Instance name for the or gate
- in1 - Input 1 to the or gate.
- in2 - Input 2 to the or gate.
- in3 - Input 3 to the or gate.
- in4 - Input 4 to the or gate.
- out - Output to the or gate.
- Returns:
- out wire.
or_o
public Wire or_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire out)
- Constructs a new 5-input or gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the or gate.
- in2 - Input 2 to the or gate.
- in3 - Input 3 to the or gate.
- in4 - Input 4 to the or gate.
- in5 - Input 5 to the or gate.
- out - Output to the or gate.
- Returns:
- out wire.
or_o
public Wire or_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire out,
String name)
- Constructs a new 5-input or gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- name - Instance name for the or gate
- in1 - Input 1 to the or gate.
- in2 - Input 2 to the or gate.
- in3 - Input 3 to the or gate.
- in4 - Input 4 to the or gate.
- in5 - Input 5 to the or gate.
- out - Output to the or gate.
- Returns:
- out wire.
or_o
public Wire or_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire out)
- Constructs a new 6-input or gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the or gate.
- in2 - Input 2 to the or gate.
- in3 - Input 3 to the or gate.
- in4 - Input 4 to the or gate.
- in5 - Input 5 to the or gate.
- in6 - Input 6 to the or gate.
- out - Output to the or gate.
- Returns:
- out wire.
or_o
public Wire or_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire out,
String name)
- Constructs a new 6-input or gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- name - Instance name for the or gate
- in1 - Input 1 to the or gate.
- in2 - Input 2 to the or gate.
- in3 - Input 3 to the or gate.
- in4 - Input 4 to the or gate.
- in5 - Input 5 to the or gate.
- in6 - Input 6 to the or gate.
- out - Output to the or gate.
- Returns:
- out wire.
or_o
public Wire or_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
Wire out)
- Constructs a new 7-input or gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the or gate.
- in2 - Input 2 to the or gate.
- in3 - Input 3 to the or gate.
- in4 - Input 4 to the or gate.
- in5 - Input 5 to the or gate.
- in6 - Input 6 to the or gate.
- in7 - Input 7 to the or gate.
- out - Output to the or gate.
- Returns:
- out wire.
or_o
public Wire or_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
Wire out,
String name)
- Constructs a new 7-input or gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- name - Instance name for the or gate
- in1 - Input 1 to the or gate.
- in2 - Input 2 to the or gate.
- in3 - Input 3 to the or gate.
- in4 - Input 4 to the or gate.
- in5 - Input 5 to the or gate.
- in6 - Input 6 to the or gate.
- in7 - Input 7 to the or gate.
- out - Output to the or gate.
- Returns:
- out wire.
or_o
public Wire or_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
Wire in8,
Wire out)
- Constructs a new 8-input or gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the or gate.
- in2 - Input 2 to the or gate.
- in3 - Input 3 to the or gate.
- in4 - Input 4 to the or gate.
- in5 - Input 5 to the or gate.
- in6 - Input 6 to the or gate.
- in7 - Input 7 to the or gate.
- in8 - Input 8 to the or gate.
- out - Output to the or gate.
- Returns:
- out wire.
or_o
public Wire or_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
Wire in8,
Wire out,
String name)
- Constructs a new 8-input or gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- name - Instance name for the or gate
- in1 - Input 1 to the or gate.
- in2 - Input 2 to the or gate.
- in3 - Input 3 to the or gate.
- in4 - Input 4 to the or gate.
- in5 - Input 5 to the or gate.
- in6 - Input 6 to the or gate.
- in7 - Input 7 to the or gate.
- in8 - Input 8 to the or gate.
- out - Output to the or gate.
- Returns:
- out wire.
or_o
public Wire or_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
Wire in8,
Wire in9,
Wire out)
- Constructs a new 9-input or gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the or gate.
- in2 - Input 2 to the or gate.
- in3 - Input 3 to the or gate.
- in4 - Input 4 to the or gate.
- in5 - Input 5 to the or gate.
- in6 - Input 6 to the or gate.
- in7 - Input 7 to the or gate.
- in8 - Input 8 to the or gate.
- in9 - Input 9 to the or gate.
- out - Output to the or gate.
- Returns:
- out wire.
or_o
public Wire or_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
Wire in8,
Wire in9,
Wire out,
String name)
- Constructs a new 9-input or gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- name - Instance name for the or gate
- in1 - Input 1 to the or gate.
- in2 - Input 2 to the or gate.
- in3 - Input 3 to the or gate.
- in4 - Input 4 to the or gate.
- in5 - Input 5 to the or gate.
- in6 - Input 6 to the or gate.
- in7 - Input 7 to the or gate.
- in8 - Input 8 to the or gate.
- in9 - Input 9 to the or gate.
- out - Output to the or gate.
- Returns:
- out wire.
xor
public Wire xor(Wire in)
- Constructs a new named arbitrary-number-input xor gate, with a
new wire as its output. Returns the new output wire. The
constructed function computes the logical xor of all the
bits in the input wire; i.e. if
in were an N-bit
wire, the output o will be assigned in[0] ^
in[1] ^ ... ^ in[N-2] ^ in[N-1].
xor
public Wire xor(Wire in,
String name)
- Constructs a new arbitrary-number-input xor gate, with a new
wire as its output. Returns the new output wire. The
constructed function computes the logical xor of all the
bits in the input wire; i.e. if
in were an N-bit
wire, the output o will be assigned in[0] ^
in[1] ^ ... ^ in[N-2] ^ in[N-1].
xor
public Wire xor(Wire in1,
Wire in2)
- Constructs a new 2-input xor gate with a new wire as its output.
Returns the new output wire.
Valid signal widths: any width. (Note that this is a
bitwise xor -- calling xor(a,b) on 2-bit signals is
equivalent to calling xor(a.getWire(0), b.getWire(0));
xor(a.getWire(1), b.getWire(1));
- Parameters:
- in1 - Input 1 to the xor gate.
- in2 - Input 2 to the xor gate.
- Returns:
- A new wire that is connected to the output of the
xor gate, the same width as the input wires.
xor
public Wire xor(Wire in1,
Wire in2,
String name)
- Constructs a new 2-input xor gate with a new wire as its output.
Returns the new output wire.
Valid signal widths: any width. (Note that this is a
bitwise xor -- calling xor(a,b) on 2-bit signals is
equivalent to calling xor(a.getWire(0), b.getWire(0));
xor(a.getWire(1), b.getWire(1));
- Parameters:
- name - Instance name for the xor gate
- in1 - Input 1 to the xor gate.
- in2 - Input 2 to the xor gate.
- Returns:
- A new wire that is connected to the output of the
xor gate, the same width as the input wires.
xor
public Wire xor(Wire in1,
Wire in2,
Wire in3)
- Constructs a new 3-input xor gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the xor gate.
- in2 - Input 2 to the xor gate.
- in3 - Input 3 to the xor gate.
- Returns:
- A new 1-bit wire that is connected to the output of
xor gate.
xor
public Wire xor(Wire in1,
Wire in2,
Wire in3,
String name)
- Constructs a new 3-input xor gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- name - Instance name for the xor gate
- in1 - Input 1 to the xor gate.
- in2 - Input 2 to the xor gate.
- in3 - Input 3 to the xor gate.
- Returns:
- A new 1-bit wire that is connected to the output of
xor gate.
xor
public Wire xor(Wire in1,
Wire in2,
Wire in3,
Wire in4)
- Constructs a new 4-input xor gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the xor gate.
- in2 - Input 2 to the xor gate.
- in3 - Input 3 to the xor gate.
- in4 - Input 4 to the xor gate.
- Returns:
- A new 1-bit wire that is connected to the output of
xor gate.
xor
public Wire xor(Wire in1,
Wire in2,
Wire in3,
Wire in4,
String name)
- Constructs a new 4-input xor gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- name - Instance name for the xor gate
- in1 - Input 1 to the xor gate.
- in2 - Input 2 to the xor gate.
- in3 - Input 3 to the xor gate.
- in4 - Input 4 to the xor gate.
- Returns:
- A new 1-bit wire that is connected to the output of
xor gate.
xor
public Wire xor(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5)
- Constructs a new 5-input xor gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the xor gate.
- in2 - Input 2 to the xor gate.
- in3 - Input 3 to the xor gate.
- in4 - Input 4 to the xor gate.
- in5 - Input 5 to the xor gate.
- Returns:
- A new 1-bit wire that is connected to the output of
xor gate.
xor
public Wire xor(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
String name)
- Constructs a new 5-input xor gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- name - Instance name for the xor gate
- in1 - Input 1 to the xor gate.
- in2 - Input 2 to the xor gate.
- in3 - Input 3 to the xor gate.
- in4 - Input 4 to the xor gate.
- in5 - Input 5 to the xor gate.
- Returns:
- A new 1-bit wire that is connected to the output of
xor gate.
xor
public Wire xor(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6)
- Constructs a new 6-input xor gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the xor gate.
- in2 - Input 2 to the xor gate.
- in3 - Input 3 to the xor gate.
- in4 - Input 4 to the xor gate.
- in5 - Input 5 to the xor gate.
- in6 - Input 6 to the xor gate.
- Returns:
- A new 1-bit wire that is connected to the output of
xor gate.
xor
public Wire xor(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
String name)
- Constructs a new 6-input xor gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- name - Instance name for the xor gate
- in1 - Input 1 to the xor gate.
- in2 - Input 2 to the xor gate.
- in3 - Input 3 to the xor gate.
- in4 - Input 4 to the xor gate.
- in5 - Input 5 to the xor gate.
- in6 - Input 6 to the xor gate.
- Returns:
- A new 1-bit wire that is connected to the output of
xor gate.
xor
public Wire xor(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7)
- Constructs a new 7-input xor gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the xor gate.
- in2 - Input 2 to the xor gate.
- in3 - Input 3 to the xor gate.
- in4 - Input 4 to the xor gate.
- in5 - Input 5 to the xor gate.
- in6 - Input 6 to the xor gate.
- in7 - Input 7 to the xor gate.
- Returns:
- A new 1-bit wire that is connected to the output of
xor gate.
xor
public Wire xor(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
String name)
- Constructs a new 7-input xor gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- name - Instance name for the xor gate
- in1 - Input 1 to the xor gate.
- in2 - Input 2 to the xor gate.
- in3 - Input 3 to the xor gate.
- in4 - Input 4 to the xor gate.
- in5 - Input 5 to the xor gate.
- in6 - Input 6 to the xor gate.
- in7 - Input 7 to the xor gate.
- Returns:
- A new 1-bit wire that is connected to the output of
xor gate.
xor
public Wire xor(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
Wire in8)
- Constructs a new 8-input xor gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the xor gate.
- in2 - Input 2 to the xor gate.
- in3 - Input 3 to the xor gate.
- in4 - Input 4 to the xor gate.
- in5 - Input 5 to the xor gate.
- in6 - Input 6 to the xor gate.
- in7 - Input 7 to the xor gate.
- in8 - Input 8 to the xor gate.
- Returns:
- A new 1-bit wire that is connected to the output of
xor gate.
xor
public Wire xor(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
Wire in8,
String name)
- Constructs a new 8-input xor gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- name - Instance name for the xor gate
- in1 - Input 1 to the xor gate.
- in2 - Input 2 to the xor gate.
- in3 - Input 3 to the xor gate.
- in4 - Input 4 to the xor gate.
- in5 - Input 5 to the xor gate.
- in6 - Input 6 to the xor gate.
- in7 - Input 7 to the xor gate.
- in8 - Input 8 to the xor gate.
- Returns:
- A new 1-bit wire that is connected to the output of
xor gate.
xor
public Wire xor(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
Wire in8,
Wire in9)
- Constructs a new 9-input xor gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the xor gate.
- in2 - Input 2 to the xor gate.
- in3 - Input 3 to the xor gate.
- in4 - Input 4 to the xor gate.
- in5 - Input 5 to the xor gate.
- in6 - Input 6 to the xor gate.
- in7 - Input 7 to the xor gate.
- in8 - Input 8 to the xor gate.
- in9 - Input 9 to the xor gate.
- Returns:
- A new 1-bit wire that is connected to the output of
xor gate.
xor
public Wire xor(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
Wire in8,
Wire in9,
String name)
- Constructs a new 9-input xor gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- name - Instance name for the xor gate
- in1 - Input 1 to the xor gate.
- in2 - Input 2 to the xor gate.
- in3 - Input 3 to the xor gate.
- in4 - Input 4 to the xor gate.
- in5 - Input 5 to the xor gate.
- in6 - Input 6 to the xor gate.
- in7 - Input 7 to the xor gate.
- in8 - Input 8 to the xor gate.
- in9 - Input 9 to the xor gate.
- Returns:
- A new 1-bit wire that is connected to the output of
xor gate.
xor_o
public Wire xor_o(Wire in,
Wire out)
- Constructs a new named arbitrary-number-input xor gate. Returns
the output wire. The constructed function computes the logical
xor of all the bits in the input wire; i.e. if
in were an N-bit wire, the output o
will be assigned in[0] ^ in[1] ^ ... ^ in[N-2] ^
in[N-1].
xor_o
public Wire xor_o(Wire in,
Wire out,
String name)
- Constructs a new arbitrary-number-input xor gate. Returns the
output wire. The constructed function computes the logical
xor of all the bits in the input wire; i.e. if
in were an N-bit wire, the output o
will be assigned in[0] ^ in[1] ^ ... ^ in[N-2] ^
in[N-1].
xor_o
public Wire xor_o(Wire in1,
Wire in2,
Wire out)
- Constructs a new 2-input xor gate.
Returns the output wire.
Valid signal widths: any width. (Note that this is a
bitwise xor -- calling xor(a,b) on 2-bit signals is
equivalent to calling xor(a.getWire(0), b.getWire(0));
xor(a.getWire(1), b.getWire(1));
- Parameters:
- in1 - Input 1 to the xor gate.
- in2 - Input 2 to the xor gate.
- out - Output to the xor gate.
- Returns:
- out wire.
xor_o
public Wire xor_o(Wire in1,
Wire in2,
Wire out,
String name)
- Constructs a new 2-input xor gate.
Returns the output wire.
Valid signal widths: any width. (Note that this is a
bitwise xor -- calling xor(a,b) on 2-bit signals is
equivalent to calling xor(a.getWire(0), b.getWire(0));
xor(a.getWire(1), b.getWire(1));
- Parameters:
- name - Instance name for the xor gate
- in1 - Input 1 to the xor gate.
- in2 - Input 2 to the xor gate.
- out - Output to the xor gate.
- Returns:
- out wire.
xor_o
public Wire xor_o(Wire in1,
Wire in2,
Wire in3,
Wire out)
- Constructs a new 3-input xor gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the xor gate.
- in2 - Input 2 to the xor gate.
- in3 - Input 3 to the xor gate.
- out - Output to the xor gate.
- Returns:
- out wire.
xor_o
public Wire xor_o(Wire in1,
Wire in2,
Wire in3,
Wire out,
String name)
- Constructs a new 3-input xor gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- name - Instance name for the xor gate
- in1 - Input 1 to the xor gate.
- in2 - Input 2 to the xor gate.
- in3 - Input 3 to the xor gate.
- out - Output to the xor gate.
- Returns:
- out wire.
xor_o
public Wire xor_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire out)
- Constructs a new 4-input xor gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the xor gate.
- in2 - Input 2 to the xor gate.
- in3 - Input 3 to the xor gate.
- in4 - Input 4 to the xor gate.
- out - Output to the xor gate.
- Returns:
- out wire.
xor_o
public Wire xor_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire out,
String name)
- Constructs a new 4-input xor gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- name - Instance name for the xor gate
- in1 - Input 1 to the xor gate.
- in2 - Input 2 to the xor gate.
- in3 - Input 3 to the xor gate.
- in4 - Input 4 to the xor gate.
- out - Output to the xor gate.
- Returns:
- out wire.
xor_o
public Wire xor_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire out)
- Constructs a new 5-input xor gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the xor gate.
- in2 - Input 2 to the xor gate.
- in3 - Input 3 to the xor gate.
- in4 - Input 4 to the xor gate.
- in5 - Input 5 to the xor gate.
- out - Output to the xor gate.
- Returns:
- out wire.
xor_o
public Wire xor_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire out,
String name)
- Constructs a new 5-input xor gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- name - Instance name for the xor gate
- in1 - Input 1 to the xor gate.
- in2 - Input 2 to the xor gate.
- in3 - Input 3 to the xor gate.
- in4 - Input 4 to the xor gate.
- in5 - Input 5 to the xor gate.
- out - Output to the xor gate.
- Returns:
- out wire.
xor_o
public Wire xor_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire out)
- Constructs a new 6-input xor gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the xor gate.
- in2 - Input 2 to the xor gate.
- in3 - Input 3 to the xor gate.
- in4 - Input 4 to the xor gate.
- in5 - Input 5 to the xor gate.
- in6 - Input 6 to the xor gate.
- out - Output to the xor gate.
- Returns:
- out wire.
xor_o
public Wire xor_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire out,
String name)
- Constructs a new 6-input xor gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- name - Instance name for the xor gate
- in1 - Input 1 to the xor gate.
- in2 - Input 2 to the xor gate.
- in3 - Input 3 to the xor gate.
- in4 - Input 4 to the xor gate.
- in5 - Input 5 to the xor gate.
- in6 - Input 6 to the xor gate.
- out - Output to the xor gate.
- Returns:
- out wire.
xor_o
public Wire xor_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
Wire out)
- Constructs a new 7-input xor gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the xor gate.
- in2 - Input 2 to the xor gate.
- in3 - Input 3 to the xor gate.
- in4 - Input 4 to the xor gate.
- in5 - Input 5 to the xor gate.
- in6 - Input 6 to the xor gate.
- in7 - Input 7 to the xor gate.
- out - Output to the xor gate.
- Returns:
- out wire.
xor_o
public Wire xor_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
Wire out,
String name)
- Constructs a new 7-input xor gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- name - Instance name for the xor gate
- in1 - Input 1 to the xor gate.
- in2 - Input 2 to the xor gate.
- in3 - Input 3 to the xor gate.
- in4 - Input 4 to the xor gate.
- in5 - Input 5 to the xor gate.
- in6 - Input 6 to the xor gate.
- in7 - Input 7 to the xor gate.
- out - Output to the xor gate.
- Returns:
- out wire.
xor_o
public Wire xor_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
Wire in8,
Wire out)
- Constructs a new 8-input xor gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the xor gate.
- in2 - Input 2 to the xor gate.
- in3 - Input 3 to the xor gate.
- in4 - Input 4 to the xor gate.
- in5 - Input 5 to the xor gate.
- in6 - Input 6 to the xor gate.
- in7 - Input 7 to the xor gate.
- in8 - Input 8 to the xor gate.
- out - Output to the xor gate.
- Returns:
- out wire.
xor_o
public Wire xor_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
Wire in8,
Wire out,
String name)
- Constructs a new 8-input xor gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- name - Instance name for the xor gate
- in1 - Input 1 to the xor gate.
- in2 - Input 2 to the xor gate.
- in3 - Input 3 to the xor gate.
- in4 - Input 4 to the xor gate.
- in5 - Input 5 to the xor gate.
- in6 - Input 6 to the xor gate.
- in7 - Input 7 to the xor gate.
- in8 - Input 8 to the xor gate.
- out - Output to the xor gate.
- Returns:
- out wire.
xor_o
public Wire xor_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
Wire in8,
Wire in9,
Wire out)
- Constructs a new 9-input xor gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the xor gate.
- in2 - Input 2 to the xor gate.
- in3 - Input 3 to the xor gate.
- in4 - Input 4 to the xor gate.
- in5 - Input 5 to the xor gate.
- in6 - Input 6 to the xor gate.
- in7 - Input 7 to the xor gate.
- in8 - Input 8 to the xor gate.
- in9 - Input 9 to the xor gate.
- out - Output to the xor gate.
- Returns:
- out wire.
xor_o
public Wire xor_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
Wire in8,
Wire in9,
Wire out,
String name)
- Constructs a new 9-input xor gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- name - Instance name for the xor gate
- in1 - Input 1 to the xor gate.
- in2 - Input 2 to the xor gate.
- in3 - Input 3 to the xor gate.
- in4 - Input 4 to the xor gate.
- in5 - Input 5 to the xor gate.
- in6 - Input 6 to the xor gate.
- in7 - Input 7 to the xor gate.
- in8 - Input 8 to the xor gate.
- in9 - Input 9 to the xor gate.
- out - Output to the xor gate.
- Returns:
- out wire.
nand
public Wire nand(Wire in1,
Wire in2)
- Constructs a new 2-input nand gate, with a new wire as its
output. Returns the new output wire. (Note that this is a
bitwise nand -- calling nand(a,b) on 2-bit signals is
equivalent to calling nand(a.getWire(0), b.getWire(0));
nand(a.getWire(1), b.getWire(1));
- Parameters:
- in1 - Input 1 to the nand gate.
- in2 - Input 2 to the nand gate.
- Returns:
- A new wire that is connected to the output of the
nand gate, the same width as the input wires.
nand
public Wire nand(Wire in1,
Wire in2,
String name)
- Constructs a new 2-input nand gate, with a new wire as its
output. Returns the new output wire. (Note that this is a
bitwise nand -- calling nand(a,b) on 2-bit signals is
equivalent to calling nand(a.getWire(0), b.getWire(0));
nand(a.getWire(1), b.getWire(1));
- Parameters:
- name - Instance name for the nand gate
- in1 - Input 1 to the nand gate.
- in2 - Input 2 to the nand gate.
- Returns:
- A new wire that is connected to the output of the
nand gate, the same width as the input wires.
nand
public Wire nand(Wire in1,
Wire in2,
Wire in3)
- Constructs a new 3-input nand gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the nand gate.
- in2 - Input 2 to the nand gate.
- in3 - Input 3 to the nand gate.
- Returns:
- A new 1-bit wire that is connected to the output of
nand gate.
nand
public Wire nand(Wire in1,
Wire in2,
Wire in3,
String name)
- Constructs a new 3-input nand gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- name - Instance name for the nand gate
- in1 - Input 1 to the nand gate.
- in2 - Input 2 to the nand gate.
- in3 - Input 3 to the nand gate.
- Returns:
- A new 1-bit wire that is connected to the output of
nand gate.
nand
public Wire nand(Wire in1,
Wire in2,
Wire in3,
Wire in4)
- Constructs a new 4-input nand gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the nand gate.
- in2 - Input 2 to the nand gate.
- in3 - Input 3 to the nand gate.
- in4 - Input 4 to the nand gate.
- Returns:
- A new 1-bit wire that is connected to the output of
nand gate.
nand
public Wire nand(Wire in1,
Wire in2,
Wire in3,
Wire in4,
String name)
- Constructs a new 4-input nand gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- name - Instance name for the nand gate
- in1 - Input 1 to the nand gate.
- in2 - Input 2 to the nand gate.
- in3 - Input 3 to the nand gate.
- in4 - Input 4 to the nand gate.
- Returns:
- A new 1-bit wire that is connected to the output of
nand gate.
nand
public Wire nand(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5)
- Constructs a new 5-input nand gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the nand gate.
- in2 - Input 2 to the nand gate.
- in3 - Input 3 to the nand gate.
- in4 - Input 4 to the nand gate.
- in5 - Input 5 to the nand gate.
- Returns:
- A new 1-bit wire that is connected to the output of
nand gate.
nand
public Wire nand(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
String name)
- Constructs a new 5-input nand gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- name - Instance name for the nand gate
- in1 - Input 1 to the nand gate.
- in2 - Input 2 to the nand gate.
- in3 - Input 3 to the nand gate.
- in4 - Input 4 to the nand gate.
- in5 - Input 5 to the nand gate.
- Returns:
- A new 1-bit wire that is connected to the output of
nand gate.
nand
public Wire nand(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6)
- Constructs a new 6-input nand gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the nand gate.
- in2 - Input 2 to the nand gate.
- in3 - Input 3 to the nand gate.
- in4 - Input 4 to the nand gate.
- in5 - Input 5 to the nand gate.
- in6 - Input 6 to the nand gate.
- Returns:
- A new 1-bit wire that is connected to the output of
nand gate.
nand
public Wire nand(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
String name)
- Constructs a new 6-input nand gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- name - Instance name for the nand gate
- in1 - Input 1 to the nand gate.
- in2 - Input 2 to the nand gate.
- in3 - Input 3 to the nand gate.
- in4 - Input 4 to the nand gate.
- in5 - Input 5 to the nand gate.
- in6 - Input 6 to the nand gate.
- Returns:
- A new 1-bit wire that is connected to the output of
nand gate.
nand
public Wire nand(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7)
- Constructs a new 7-input nand gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the nand gate.
- in2 - Input 2 to the nand gate.
- in3 - Input 3 to the nand gate.
- in4 - Input 4 to the nand gate.
- in5 - Input 5 to the nand gate.
- in6 - Input 6 to the nand gate.
- in7 - Input 7 to the nand gate.
- Returns:
- A new 1-bit wire that is connected to the output of
nand gate.
nand
public Wire nand(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
String name)
- Constructs a new 7-input nand gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- name - Instance name for the nand gate
- in1 - Input 1 to the nand gate.
- in2 - Input 2 to the nand gate.
- in3 - Input 3 to the nand gate.
- in4 - Input 4 to the nand gate.
- in5 - Input 5 to the nand gate.
- in6 - Input 6 to the nand gate.
- in7 - Input 7 to the nand gate.
- Returns:
- A new 1-bit wire that is connected to the output of
nand gate.
nand
public Wire nand(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
Wire in8)
- Constructs a new 8-input nand gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the nand gate.
- in2 - Input 2 to the nand gate.
- in3 - Input 3 to the nand gate.
- in4 - Input 4 to the nand gate.
- in5 - Input 5 to the nand gate.
- in6 - Input 6 to the nand gate.
- in7 - Input 7 to the nand gate.
- in8 - Input 8 to the nand gate.
- Returns:
- A new 1-bit wire that is connected to the output of
nand gate.
nand
public Wire nand(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
Wire in8,
String name)
- Constructs a new 8-input nand gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- name - Instance name for the nand gate
- in1 - Input 1 to the nand gate.
- in2 - Input 2 to the nand gate.
- in3 - Input 3 to the nand gate.
- in4 - Input 4 to the nand gate.
- in5 - Input 5 to the nand gate.
- in6 - Input 6 to the nand gate.
- in7 - Input 7 to the nand gate.
- in8 - Input 8 to the nand gate.
- Returns:
- A new 1-bit wire that is connected to the output of
nand gate.
nand
public Wire nand(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
Wire in8,
Wire in9)
- Constructs a new 9-input nand gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the nand gate.
- in2 - Input 2 to the nand gate.
- in3 - Input 3 to the nand gate.
- in4 - Input 4 to the nand gate.
- in5 - Input 5 to the nand gate.
- in6 - Input 6 to the nand gate.
- in7 - Input 7 to the nand gate.
- in8 - Input 8 to the nand gate.
- in9 - Input 9 to the nand gate.
- Returns:
- A new 1-bit wire that is connected to the output of
nand gate.
nand
public Wire nand(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
Wire in8,
Wire in9,
String name)
- Constructs a new 9-input nand gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- name - Instance name for the nand gate
- in1 - Input 1 to the nand gate.
- in2 - Input 2 to the nand gate.
- in3 - Input 3 to the nand gate.
- in4 - Input 4 to the nand gate.
- in5 - Input 5 to the nand gate.
- in6 - Input 6 to the nand gate.
- in7 - Input 7 to the nand gate.
- in8 - Input 8 to the nand gate.
- in9 - Input 9 to the nand gate.
- Returns:
- A new 1-bit wire that is connected to the output of
nand gate.
nand_o
public Wire nand_o(Wire in,
Wire out)
- Constructs a new named arbitrary-number-input nand gate. Returns
the output wire. The constructed function computes the logical
nand of all the bits in the input wire; i.e. if
in were an N-bit wire, the output o
will be assigned in[0] & in[1] & ... & in[N-2] &
in[N-1].
nand_o
public Wire nand_o(Wire in,
Wire out,
String name)
- Constructs a new arbitrary-number-input nand gate. Returns the
output wire. The constructed function computes the logical
nand of all the bits in the input wire; i.e. if
in were an N-bit wire, the output o
will be assigned in[0] & in[1] & ... & in[N-2] &
in[N-1].
nand_o
public Wire nand_o(Wire in1,
Wire in2,
Wire out)
- Constructs a new 2-input nand gate.
Returns the output wire.
Valid signal widths: any width. (Note that this is a
bitwise nand -- calling nand(a,b) on 2-bit signals is
equivalent to calling nand(a.getWire(0), b.getWire(0));
nand(a.getWire(1), b.getWire(1));
- Parameters:
- in1 - Input 1 to the nand gate.
- in2 - Input 2 to the nand gate.
- out - Output to the nand gate.
- Returns:
- out wire.
nand_o
public Wire nand_o(Wire in1,
Wire in2,
Wire out,
String name)
- Constructs a new 2-input nand gate.
Returns the output wire.
Valid signal widths: any width. (Note that this is a
bitwise nand -- calling nand(a,b) on 2-bit signals is
equivalent to calling nand(a.getWire(0), b.getWire(0));
nand(a.getWire(1), b.getWire(1));
- Parameters:
- name - Instance name for the nand gate
- in1 - Input 1 to the nand gate.
- in2 - Input 2 to the nand gate.
- out - Output to the nand gate.
- Returns:
- out wire.
nand_o
public Wire nand_o(Wire in1,
Wire in2,
Wire in3,
Wire out)
- Constructs a new 3-input nand gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the nand gate.
- in2 - Input 2 to the nand gate.
- in3 - Input 3 to the nand gate.
- out - Output to the nand gate.
- Returns:
- out wire.
nand_o
public Wire nand_o(Wire in1,
Wire in2,
Wire in3,
Wire out,
String name)
- Constructs a new 3-input nand gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- name - Instance name for the nand gate
- in1 - Input 1 to the nand gate.
- in2 - Input 2 to the nand gate.
- in3 - Input 3 to the nand gate.
- out - Output to the nand gate.
- Returns:
- out wire.
nand_o
public Wire nand_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire out)
- Constructs a new 4-input nand gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the nand gate.
- in2 - Input 2 to the nand gate.
- in3 - Input 3 to the nand gate.
- in4 - Input 4 to the nand gate.
- out - Output to the nand gate.
- Returns:
- out wire.
nand_o
public Wire nand_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire out,
String name)
- Constructs a new 4-input nand gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- name - Instance name for the nand gate
- in1 - Input 1 to the nand gate.
- in2 - Input 2 to the nand gate.
- in3 - Input 3 to the nand gate.
- in4 - Input 4 to the nand gate.
- out - Output to the nand gate.
- Returns:
- out wire.
nand_o
public Wire nand_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire out)
- Constructs a new 5-input nand gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the nand gate.
- in2 - Input 2 to the nand gate.
- in3 - Input 3 to the nand gate.
- in4 - Input 4 to the nand gate.
- in5 - Input 5 to the nand gate.
- out - Output to the nand gate.
- Returns:
- out wire.
nand_o
public Wire nand_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire out,
String name)
- Constructs a new 5-input nand gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- name - Instance name for the nand gate
- in1 - Input 1 to the nand gate.
- in2 - Input 2 to the nand gate.
- in3 - Input 3 to the nand gate.
- in4 - Input 4 to the nand gate.
- in5 - Input 5 to the nand gate.
- out - Output to the nand gate.
- Returns:
- out wire.
nand_o
public Wire nand_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire out)
- Constructs a new 6-input nand gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the nand gate.
- in2 - Input 2 to the nand gate.
- in3 - Input 3 to the nand gate.
- in4 - Input 4 to the nand gate.
- in5 - Input 5 to the nand gate.
- in6 - Input 6 to the nand gate.
- out - Output to the nand gate.
- Returns:
- out wire.
nand_o
public Wire nand_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire out,
String name)
- Constructs a new 6-input nand gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- name - Instance name for the nand gate
- in1 - Input 1 to the nand gate.
- in2 - Input 2 to the nand gate.
- in3 - Input 3 to the nand gate.
- in4 - Input 4 to the nand gate.
- in5 - Input 5 to the nand gate.
- in6 - Input 6 to the nand gate.
- out - Output to the nand gate.
- Returns:
- out wire.
nand_o
public Wire nand_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
Wire out)
- Constructs a new 7-input nand gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the nand gate.
- in2 - Input 2 to the nand gate.
- in3 - Input 3 to the nand gate.
- in4 - Input 4 to the nand gate.
- in5 - Input 5 to the nand gate.
- in6 - Input 6 to the nand gate.
- in7 - Input 7 to the nand gate.
- out - Output to the nand gate.
- Returns:
- out wire.
nand_o
public Wire nand_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
Wire out,
String name)
- Constructs a new 7-input nand gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- name - Instance name for the nand gate
- in1 - Input 1 to the nand gate.
- in2 - Input 2 to the nand gate.
- in3 - Input 3 to the nand gate.
- in4 - Input 4 to the nand gate.
- in5 - Input 5 to the nand gate.
- in6 - Input 6 to the nand gate.
- in7 - Input 7 to the nand gate.
- out - Output to the nand gate.
- Returns:
- out wire.
nand_o
public Wire nand_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
Wire in8,
Wire out)
- Constructs a new 8-input nand gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the nand gate.
- in2 - Input 2 to the nand gate.
- in3 - Input 3 to the nand gate.
- in4 - Input 4 to the nand gate.
- in5 - Input 5 to the nand gate.
- in6 - Input 6 to the nand gate.
- in7 - Input 7 to the nand gate.
- in8 - Input 8 to the nand gate.
- out - Output to the nand gate.
- Returns:
- out wire.
nand_o
public Wire nand_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
Wire in8,
Wire out,
String name)
- Constructs a new 8-input nand gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- name - Instance name for the nand gate
- in1 - Input 1 to the nand gate.
- in2 - Input 2 to the nand gate.
- in3 - Input 3 to the nand gate.
- in4 - Input 4 to the nand gate.
- in5 - Input 5 to the nand gate.
- in6 - Input 6 to the nand gate.
- in7 - Input 7 to the nand gate.
- in8 - Input 8 to the nand gate.
- out - Output to the nand gate.
- Returns:
- out wire.
nand_o
public Wire nand_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
Wire in8,
Wire in9,
Wire out)
- Constructs a new 9-input nand gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the nand gate.
- in2 - Input 2 to the nand gate.
- in3 - Input 3 to the nand gate.
- in4 - Input 4 to the nand gate.
- in5 - Input 5 to the nand gate.
- in6 - Input 6 to the nand gate.
- in7 - Input 7 to the nand gate.
- in8 - Input 8 to the nand gate.
- in9 - Input 9 to the nand gate.
- out - Output to the nand gate.
- Returns:
- out wire.
nand_o
public Wire nand_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
Wire in8,
Wire in9,
Wire out,
String name)
- Constructs a new 9-input nand gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- name - Instance name for the nand gate
- in1 - Input 1 to the nand gate.
- in2 - Input 2 to the nand gate.
- in3 - Input 3 to the nand gate.
- in4 - Input 4 to the nand gate.
- in5 - Input 5 to the nand gate.
- in6 - Input 6 to the nand gate.
- in7 - Input 7 to the nand gate.
- in8 - Input 8 to the nand gate.
- in9 - Input 9 to the nand gate.
- out - Output to the nand gate.
- Returns:
- out wire.
nor
public Wire nor(Wire in1,
Wire in2)
- Constructs a new 2-input nor gate with a new wire as its output.
Returns the new output wire.
Valid signal widths: any width. (Note that this is a
bitwise nor -- calling nor(a,b) on 2-bit signals is
equivalent to calling nor(a.getWire(0), b.getWire(0));
nor(a.getWire(1), b.getWire(1));
- Parameters:
- in1 - Input 1 to the nor gate.
- in2 - Input 2 to the nor gate.
- Returns:
- A new wire that is connected to the output of the
nor gate, the same width as the input wires.
nor
public Wire nor(Wire in1,
Wire in2,
String name)
- Constructs a new 2-input nor gate with a new wire as its output.
Returns the new output wire.
Valid signal widths: any width. (Note that this is a
bitwise nor -- calling nor(a,b) on 2-bit signals is
equivalent to calling nor(a.getWire(0), b.getWire(0));
nor(a.getWire(1), b.getWire(1));
- Parameters:
- name - Instance name for the nor gate
- in1 - Input 1 to the nor gate.
- in2 - Input 2 to the nor gate.
- Returns:
- A new wire that is connected to the output of the
nor gate, the same width as the input wires.
nor
public Wire nor(Wire in1,
Wire in2,
Wire in3)
- Constructs a new 3-input nor gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the nor gate.
- in2 - Input 2 to the nor gate.
- in3 - Input 3 to the nor gate.
- Returns:
- A new 1-bit wire that is connected to the output of
nor gate.
nor
public Wire nor(Wire in1,
Wire in2,
Wire in3,
String name)
- Constructs a new 3-input nor gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- name - Instance name for the nor gate
- in1 - Input 1 to the nor gate.
- in2 - Input 2 to the nor gate.
- in3 - Input 3 to the nor gate.
- Returns:
- A new 1-bit wire that is connected to the output of
nor gate.
nor
public Wire nor(Wire in1,
Wire in2,
Wire in3,
Wire in4)
- Constructs a new 4-input nor gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the nor gate.
- in2 - Input 2 to the nor gate.
- in3 - Input 3 to the nor gate.
- in4 - Input 4 to the nor gate.
- Returns:
- A new 1-bit wire that is connected to the output of
nor gate.
nor
public Wire nor(Wire in1,
Wire in2,
Wire in3,
Wire in4,
String name)
- Constructs a new 4-input nor gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- name - Instance name for the nor gate
- in1 - Input 1 to the nor gate.
- in2 - Input 2 to the nor gate.
- in3 - Input 3 to the nor gate.
- in4 - Input 4 to the nor gate.
- Returns:
- A new 1-bit wire that is connected to the output of
nor gate.
nor
public Wire nor(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5)
- Constructs a new 5-input nor gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the nor gate.
- in2 - Input 2 to the nor gate.
- in3 - Input 3 to the nor gate.
- in4 - Input 4 to the nor gate.
- in5 - Input 5 to the nor gate.
- Returns:
- A new 1-bit wire that is connected to the output of
nor gate.
nor
public Wire nor(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
String name)
- Constructs a new 5-input nor gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- name - Instance name for the nor gate
- in1 - Input 1 to the nor gate.
- in2 - Input 2 to the nor gate.
- in3 - Input 3 to the nor gate.
- in4 - Input 4 to the nor gate.
- in5 - Input 5 to the nor gate.
- Returns:
- A new 1-bit wire that is connected to the output of
nor gate.
nor
public Wire nor(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6)
- Constructs a new 6-input nor gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the nor gate.
- in2 - Input 2 to the nor gate.
- in3 - Input 3 to the nor gate.
- in4 - Input 4 to the nor gate.
- in5 - Input 5 to the nor gate.
- in6 - Input 6 to the nor gate.
- Returns:
- A new 1-bit wire that is connected to the output of
nor gate.
nor
public Wire nor(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
String name)
- Constructs a new 6-input nor gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- name - Instance name for the nor gate
- in1 - Input 1 to the nor gate.
- in2 - Input 2 to the nor gate.
- in3 - Input 3 to the nor gate.
- in4 - Input 4 to the nor gate.
- in5 - Input 5 to the nor gate.
- in6 - Input 6 to the nor gate.
- Returns:
- A new 1-bit wire that is connected to the output of
nor gate.
nor
public Wire nor(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7)
- Constructs a new 7-input nor gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the nor gate.
- in2 - Input 2 to the nor gate.
- in3 - Input 3 to the nor gate.
- in4 - Input 4 to the nor gate.
- in5 - Input 5 to the nor gate.
- in6 - Input 6 to the nor gate.
- in7 - Input 7 to the nor gate.
- Returns:
- A new 1-bit wire that is connected to the output of
nor gate.
nor
public Wire nor(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
String name)
- Constructs a new 7-input nor gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- name - Instance name for the nor gate
- in1 - Input 1 to the nor gate.
- in2 - Input 2 to the nor gate.
- in3 - Input 3 to the nor gate.
- in4 - Input 4 to the nor gate.
- in5 - Input 5 to the nor gate.
- in6 - Input 6 to the nor gate.
- in7 - Input 7 to the nor gate.
- Returns:
- A new 1-bit wire that is connected to the output of
nor gate.
nor
public Wire nor(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
Wire in8)
- Constructs a new 8-input nor gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the nor gate.
- in2 - Input 2 to the nor gate.
- in3 - Input 3 to the nor gate.
- in4 - Input 4 to the nor gate.
- in5 - Input 5 to the nor gate.
- in6 - Input 6 to the nor gate.
- in7 - Input 7 to the nor gate.
- in8 - Input 8 to the nor gate.
- Returns:
- A new 1-bit wire that is connected to the output of
nor gate.
nor
public Wire nor(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
Wire in8,
String name)
- Constructs a new 8-input nor gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- name - Instance name for the nor gate
- in1 - Input 1 to the nor gate.
- in2 - Input 2 to the nor gate.
- in3 - Input 3 to the nor gate.
- in4 - Input 4 to the nor gate.
- in5 - Input 5 to the nor gate.
- in6 - Input 6 to the nor gate.
- in7 - Input 7 to the nor gate.
- in8 - Input 8 to the nor gate.
- Returns:
- A new 1-bit wire that is connected to the output of
nor gate.
nor
public Wire nor(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
Wire in8,
Wire in9)
- Constructs a new 9-input nor gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the nor gate.
- in2 - Input 2 to the nor gate.
- in3 - Input 3 to the nor gate.
- in4 - Input 4 to the nor gate.
- in5 - Input 5 to the nor gate.
- in6 - Input 6 to the nor gate.
- in7 - Input 7 to the nor gate.
- in8 - Input 8 to the nor gate.
- in9 - Input 9 to the nor gate.
- Returns:
- A new 1-bit wire that is connected to the output of
nor gate.
nor
public Wire nor(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
Wire in8,
Wire in9,
String name)
- Constructs a new 9-input nor gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- name - Instance name for the nor gate
- in1 - Input 1 to the nor gate.
- in2 - Input 2 to the nor gate.
- in3 - Input 3 to the nor gate.
- in4 - Input 4 to the nor gate.
- in5 - Input 5 to the nor gate.
- in6 - Input 6 to the nor gate.
- in7 - Input 7 to the nor gate.
- in8 - Input 8 to the nor gate.
- in9 - Input 9 to the nor gate.
- Returns:
- A new 1-bit wire that is connected to the output of
nor gate.
nor_o
public Wire nor_o(Wire in,
Wire out)
- Constructs a new named arbitrary-number-input nor gate. Returns
the output wire. The constructed function computes the logical
nor of all the bits in the input wire; i.e. if
in were an N-bit wire, the output o
will be assigned in[0] | in[1] | ... | in[N-2] |
in[N-1].
nor_o
public Wire nor_o(Wire in,
Wire out,
String name)
- Constructs a new arbitrary-number-input nor gate. Returns the
output wire. The constructed function computes the logical
nor of all the bits in the input wire; i.e. if
in were an N-bit wire, the output o
will be assigned in[0] | in[1] | ... | in[N-2] |
in[N-1].
nor_o
public Wire nor_o(Wire in1,
Wire in2,
Wire out)
- Constructs a new 2-input nor gate.
Returns the output wire.
Valid signal widths: any width. (Note that this is a
bitwise nor -- calling nor(a,b) on 2-bit signals is
equivalent to calling nor(a.getWire(0), b.getWire(0));
nor(a.getWire(1), b.getWire(1));
- Parameters:
- in1 - Input 1 to the nor gate.
- in2 - Input 2 to the nor gate.
- out - Output to the nor gate.
- Returns:
- out wire.
nor_o
public Wire nor_o(Wire in1,
Wire in2,
Wire out,
String name)
- Constructs a new 2-input nor gate.
Returns the output wire.
Valid signal widths: any width. (Note that this is a
bitwise nor -- calling nor(a,b) on 2-bit signals is
equivalent to calling nor(a.getWire(0), b.getWire(0));
nor(a.getWire(1), b.getWire(1));
- Parameters:
- name - Instance name for the nor gate
- in1 - Input 1 to the nor gate.
- in2 - Input 2 to the nor gate.
- out - Output to the nor gate.
- Returns:
- out wire.
nor_o
public Wire nor_o(Wire in1,
Wire in2,
Wire in3,
Wire out)
- Constructs a new 3-input nor gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the nor gate.
- in2 - Input 2 to the nor gate.
- in3 - Input 3 to the nor gate.
- out - Output to the nor gate.
- Returns:
- out wire.
nor_o
public Wire nor_o(Wire in1,
Wire in2,
Wire in3,
Wire out,
String name)
- Constructs a new 3-input nor gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- name - Instance name for the nor gate
- in1 - Input 1 to the nor gate.
- in2 - Input 2 to the nor gate.
- in3 - Input 3 to the nor gate.
- out - Output to the nor gate.
- Returns:
- out wire.
nor_o
public Wire nor_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire out)
- Constructs a new 4-input nor gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the nor gate.
- in2 - Input 2 to the nor gate.
- in3 - Input 3 to the nor gate.
- in4 - Input 4 to the nor gate.
- out - Output to the nor gate.
- Returns:
- out wire.
nor_o
public Wire nor_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire out,
String name)
- Constructs a new 4-input nor gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- name - Instance name for the nor gate
- in1 - Input 1 to the nor gate.
- in2 - Input 2 to the nor gate.
- in3 - Input 3 to the nor gate.
- in4 - Input 4 to the nor gate.
- out - Output to the nor gate.
- Returns:
- out wire.
nor_o
public Wire nor_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire out)
- Constructs a new 5-input nor gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the nor gate.
- in2 - Input 2 to the nor gate.
- in3 - Input 3 to the nor gate.
- in4 - Input 4 to the nor gate.
- in5 - Input 5 to the nor gate.
- out - Output to the nor gate.
- Returns:
- out wire.
nor_o
public Wire nor_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire out,
String name)
- Constructs a new 5-input nor gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- name - Instance name for the nor gate
- in1 - Input 1 to the nor gate.
- in2 - Input 2 to the nor gate.
- in3 - Input 3 to the nor gate.
- in4 - Input 4 to the nor gate.
- in5 - Input 5 to the nor gate.
- out - Output to the nor gate.
- Returns:
- out wire.
nor_o
public Wire nor_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire out)
- Constructs a new 6-input nor gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the nor gate.
- in2 - Input 2 to the nor gate.
- in3 - Input 3 to the nor gate.
- in4 - Input 4 to the nor gate.
- in5 - Input 5 to the nor gate.
- in6 - Input 6 to the nor gate.
- out - Output to the nor gate.
- Returns:
- out wire.
nor_o
public Wire nor_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire out,
String name)
- Constructs a new 6-input nor gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- name - Instance name for the nor gate
- in1 - Input 1 to the nor gate.
- in2 - Input 2 to the nor gate.
- in3 - Input 3 to the nor gate.
- in4 - Input 4 to the nor gate.
- in5 - Input 5 to the nor gate.
- in6 - Input 6 to the nor gate.
- out - Output to the nor gate.
- Returns:
- out wire.
nor_o
public Wire nor_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
Wire out)
- Constructs a new 7-input nor gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the nor gate.
- in2 - Input 2 to the nor gate.
- in3 - Input 3 to the nor gate.
- in4 - Input 4 to the nor gate.
- in5 - Input 5 to the nor gate.
- in6 - Input 6 to the nor gate.
- in7 - Input 7 to the nor gate.
- out - Output to the nor gate.
- Returns:
- out wire.
nor_o
public Wire nor_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
Wire out,
String name)
- Constructs a new 7-input nor gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- name - Instance name for the nor gate
- in1 - Input 1 to the nor gate.
- in2 - Input 2 to the nor gate.
- in3 - Input 3 to the nor gate.
- in4 - Input 4 to the nor gate.
- in5 - Input 5 to the nor gate.
- in6 - Input 6 to the nor gate.
- in7 - Input 7 to the nor gate.
- out - Output to the nor gate.
- Returns:
- out wire.
nor_o
public Wire nor_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
Wire in8,
Wire out)
- Constructs a new 8-input nor gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the nor gate.
- in2 - Input 2 to the nor gate.
- in3 - Input 3 to the nor gate.
- in4 - Input 4 to the nor gate.
- in5 - Input 5 to the nor gate.
- in6 - Input 6 to the nor gate.
- in7 - Input 7 to the nor gate.
- in8 - Input 8 to the nor gate.
- out - Output to the nor gate.
- Returns:
- out wire.
nor_o
public Wire nor_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
Wire in8,
Wire out,
String name)
- Constructs a new 8-input nor gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- name - Instance name for the nor gate
- in1 - Input 1 to the nor gate.
- in2 - Input 2 to the nor gate.
- in3 - Input 3 to the nor gate.
- in4 - Input 4 to the nor gate.
- in5 - Input 5 to the nor gate.
- in6 - Input 6 to the nor gate.
- in7 - Input 7 to the nor gate.
- in8 - Input 8 to the nor gate.
- out - Output to the nor gate.
- Returns:
- out wire.
nor_o
public Wire nor_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
Wire in8,
Wire in9,
Wire out)
- Constructs a new 9-input nor gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the nor gate.
- in2 - Input 2 to the nor gate.
- in3 - Input 3 to the nor gate.
- in4 - Input 4 to the nor gate.
- in5 - Input 5 to the nor gate.
- in6 - Input 6 to the nor gate.
- in7 - Input 7 to the nor gate.
- in8 - Input 8 to the nor gate.
- in9 - Input 9 to the nor gate.
- out - Output to the nor gate.
- Returns:
- out wire.
nor_o
public Wire nor_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
Wire in8,
Wire in9,
Wire out,
String name)
- Constructs a new 9-input nor gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- name - Instance name for the nor gate
- in1 - Input 1 to the nor gate.
- in2 - Input 2 to the nor gate.
- in3 - Input 3 to the nor gate.
- in4 - Input 4 to the nor gate.
- in5 - Input 5 to the nor gate.
- in6 - Input 6 to the nor gate.
- in7 - Input 7 to the nor gate.
- in8 - Input 8 to the nor gate.
- in9 - Input 9 to the nor gate.
- out - Output to the nor gate.
- Returns:
- out wire.
xnor
public Wire xnor(Wire in1,
Wire in2)
- Constructs a new 2-input xnor gate with a new wire as its output.
Returns the new output wire.
Valid signal widths: any width. (Note that this is a
bitwise xnor -- calling xnor(a,b) on 2-bit signals is
equivalent to calling xnor(a.getWire(0), b.getWire(0));
xnor(a.getWire(1), b.getWire(1));
- Parameters:
- in1 - Input 1 to the xnor gate.
- in2 - Input 2 to the xnor gate.
- Returns:
- A new wire that is connected to the output of the
xnor gate, the same width as the input wires.
xnor
public Wire xnor(Wire in1,
Wire in2,
String name)
- Constructs a new 2-input xnor gate with a new wire as its output.
Returns the new output wire.
Valid signal widths: any width. (Note that this is a
bitwise xnor -- calling xnor(a,b) on 2-bit signals is
equivalent to calling xnor(a.getWire(0), b.getWire(0));
xnor(a.getWire(1), b.getWire(1));
- Parameters:
- name - Instance name for the xnor gate
- in1 - Input 1 to the xnor gate.
- in2 - Input 2 to the xnor gate.
- Returns:
- A new wire that is connected to the output of the
xnor gate, the same width as the input wires.
xnor
public Wire xnor(Wire in1,
Wire in2,
Wire in3)
- Constructs a new 3-input xnor gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the xnor gate.
- in2 - Input 2 to the xnor gate.
- in3 - Input 3 to the xnor gate.
- Returns:
- A new 1-bit wire that is connected to the output of
xnor gate.
xnor
public Wire xnor(Wire in1,
Wire in2,
Wire in3,
String name)
- Constructs a new 3-input xnor gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- name - Instance name for the xnor gate
- in1 - Input 1 to the xnor gate.
- in2 - Input 2 to the xnor gate.
- in3 - Input 3 to the xnor gate.
- Returns:
- A new 1-bit wire that is connected to the output of
xnor gate.
xnor
public Wire xnor(Wire in1,
Wire in2,
Wire in3,
Wire in4)
- Constructs a new 4-input xnor gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the xnor gate.
- in2 - Input 2 to the xnor gate.
- in3 - Input 3 to the xnor gate.
- in4 - Input 4 to the xnor gate.
- Returns:
- A new 1-bit wire that is connected to the output of
xnor gate.
xnor
public Wire xnor(Wire in1,
Wire in2,
Wire in3,
Wire in4,
String name)
- Constructs a new 4-input xnor gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- name - Instance name for the xnor gate
- in1 - Input 1 to the xnor gate.
- in2 - Input 2 to the xnor gate.
- in3 - Input 3 to the xnor gate.
- in4 - Input 4 to the xnor gate.
- Returns:
- A new 1-bit wire that is connected to the output of
xnor gate.
xnor
public Wire xnor(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5)
- Constructs a new 5-input xnor gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the xnor gate.
- in2 - Input 2 to the xnor gate.
- in3 - Input 3 to the xnor gate.
- in4 - Input 4 to the xnor gate.
- in5 - Input 5 to the xnor gate.
- Returns:
- A new 1-bit wire that is connected to the output of
xnor gate.
xnor
public Wire xnor(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
String name)
- Constructs a new 5-input xnor gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- name - Instance name for the xnor gate
- in1 - Input 1 to the xnor gate.
- in2 - Input 2 to the xnor gate.
- in3 - Input 3 to the xnor gate.
- in4 - Input 4 to the xnor gate.
- in5 - Input 5 to the xnor gate.
- Returns:
- A new 1-bit wire that is connected to the output of
xnor gate.
xnor
public Wire xnor(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6)
- Constructs a new 6-input xnor gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the xnor gate.
- in2 - Input 2 to the xnor gate.
- in3 - Input 3 to the xnor gate.
- in4 - Input 4 to the xnor gate.
- in5 - Input 5 to the xnor gate.
- in6 - Input 6 to the xnor gate.
- Returns:
- A new 1-bit wire that is connected to the output of
xnor gate.
xnor
public Wire xnor(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
String name)
- Constructs a new 6-input xnor gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- name - Instance name for the xnor gate
- in1 - Input 1 to the xnor gate.
- in2 - Input 2 to the xnor gate.
- in3 - Input 3 to the xnor gate.
- in4 - Input 4 to the xnor gate.
- in5 - Input 5 to the xnor gate.
- in6 - Input 6 to the xnor gate.
- Returns:
- A new 1-bit wire that is connected to the output of
xnor gate.
xnor
public Wire xnor(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7)
- Constructs a new 7-input xnor gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the xnor gate.
- in2 - Input 2 to the xnor gate.
- in3 - Input 3 to the xnor gate.
- in4 - Input 4 to the xnor gate.
- in5 - Input 5 to the xnor gate.
- in6 - Input 6 to the xnor gate.
- in7 - Input 7 to the xnor gate.
- Returns:
- A new 1-bit wire that is connected to the output of
xnor gate.
xnor
public Wire xnor(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
String name)
- Constructs a new 7-input xnor gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- name - Instance name for the xnor gate
- in1 - Input 1 to the xnor gate.
- in2 - Input 2 to the xnor gate.
- in3 - Input 3 to the xnor gate.
- in4 - Input 4 to the xnor gate.
- in5 - Input 5 to the xnor gate.
- in6 - Input 6 to the xnor gate.
- in7 - Input 7 to the xnor gate.
- Returns:
- A new 1-bit wire that is connected to the output of
xnor gate.
xnor
public Wire xnor(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
Wire in8)
- Constructs a new 8-input xnor gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the xnor gate.
- in2 - Input 2 to the xnor gate.
- in3 - Input 3 to the xnor gate.
- in4 - Input 4 to the xnor gate.
- in5 - Input 5 to the xnor gate.
- in6 - Input 6 to the xnor gate.
- in7 - Input 7 to the xnor gate.
- in8 - Input 8 to the xnor gate.
- Returns:
- A new 1-bit wire that is connected to the output of
xnor gate.
xnor
public Wire xnor(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
Wire in8,
String name)
- Constructs a new 8-input xnor gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- name - Instance name for the xnor gate
- in1 - Input 1 to the xnor gate.
- in2 - Input 2 to the xnor gate.
- in3 - Input 3 to the xnor gate.
- in4 - Input 4 to the xnor gate.
- in5 - Input 5 to the xnor gate.
- in6 - Input 6 to the xnor gate.
- in7 - Input 7 to the xnor gate.
- in8 - Input 8 to the xnor gate.
- Returns:
- A new 1-bit wire that is connected to the output of
xnor gate.
xnor
public Wire xnor(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
Wire in8,
Wire in9)
- Constructs a new 9-input xnor gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the xnor gate.
- in2 - Input 2 to the xnor gate.
- in3 - Input 3 to the xnor gate.
- in4 - Input 4 to the xnor gate.
- in5 - Input 5 to the xnor gate.
- in6 - Input 6 to the xnor gate.
- in7 - Input 7 to the xnor gate.
- in8 - Input 8 to the xnor gate.
- in9 - Input 9 to the xnor gate.
- Returns:
- A new 1-bit wire that is connected to the output of
xnor gate.
xnor
public Wire xnor(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
Wire in8,
Wire in9,
String name)
- Constructs a new 9-input xnor gate with a new wire as its output.
Returns the new output wire. Valid signal width: 1-bit signals only.
- Parameters:
- name - Instance name for the xnor gate
- in1 - Input 1 to the xnor gate.
- in2 - Input 2 to the xnor gate.
- in3 - Input 3 to the xnor gate.
- in4 - Input 4 to the xnor gate.
- in5 - Input 5 to the xnor gate.
- in6 - Input 6 to the xnor gate.
- in7 - Input 7 to the xnor gate.
- in8 - Input 8 to the xnor gate.
- in9 - Input 9 to the xnor gate.
- Returns:
- A new 1-bit wire that is connected to the output of
xnor gate.
xnor_o
public Wire xnor_o(Wire in,
Wire out)
- Constructs a new named arbitrary-number-input xnor gate. Returns
the output wire. The constructed function computes the logical
xnor of all the bits in the input wire; i.e. if
in were an N-bit wire, the output o
will be assigned in[0] ^ in[1] ^ ... ^ in[N-2] ^
in[N-1].
xnor_o
public Wire xnor_o(Wire in,
Wire out,
String name)
- Constructs a new arbitrary-number-input xnor gate. Returns the
output wire. The constructed function computes the logical
xnor of all the bits in the input wire; i.e. if
in were an N-bit wire, the output o
will be assigned in[0] ^ in[1] ^ ... ^ in[N-2] ^
in[N-1].
xnor_o
public Wire xnor_o(Wire in1,
Wire in2,
Wire out)
- Constructs a new 2-input xnor gate.
Returns the output wire.
Valid signal widths: any width. (Note that this is a
bitwise xnor -- calling xnor(a,b) on 2-bit signals is
equivalent to calling xnor(a.getWire(0), b.getWire(0));
xnor(a.getWire(1), b.getWire(1));
- Parameters:
- in1 - Input 1 to the xnor gate.
- in2 - Input 2 to the xnor gate.
- out - Output to the xnor gate.
- Returns:
- out wire.
xnor_o
public Wire xnor_o(Wire in1,
Wire in2,
Wire out,
String name)
- Constructs a new 2-input xnor gate.
Returns the output wire.
Valid signal widths: any width. (Note that this is a
bitwise xnor -- calling xnor(a,b) on 2-bit signals is
equivalent to calling xnor(a.getWire(0), b.getWire(0));
xnor(a.getWire(1), b.getWire(1));
- Parameters:
- name - Instance name for the xnor gate
- in1 - Input 1 to the xnor gate.
- in2 - Input 2 to the xnor gate.
- out - Output to the xnor gate.
- Returns:
- out wire.
xnor_o
public Wire xnor_o(Wire in1,
Wire in2,
Wire in3,
Wire out)
- Constructs a new 3-input xnor gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the xnor gate.
- in2 - Input 2 to the xnor gate.
- in3 - Input 3 to the xnor gate.
- out - Output to the xnor gate.
- Returns:
- out wire.
xnor_o
public Wire xnor_o(Wire in1,
Wire in2,
Wire in3,
Wire out,
String name)
- Constructs a new 3-input xnor gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- name - Instance name for the xnor gate
- in1 - Input 1 to the xnor gate.
- in2 - Input 2 to the xnor gate.
- in3 - Input 3 to the xnor gate.
- out - Output to the xnor gate.
- Returns:
- out wire.
xnor_o
public Wire xnor_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire out)
- Constructs a new 4-input xnor gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the xnor gate.
- in2 - Input 2 to the xnor gate.
- in3 - Input 3 to the xnor gate.
- in4 - Input 4 to the xnor gate.
- out - Output to the xnor gate.
- Returns:
- out wire.
xnor_o
public Wire xnor_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire out,
String name)
- Constructs a new 4-input xnor gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- name - Instance name for the xnor gate
- in1 - Input 1 to the xnor gate.
- in2 - Input 2 to the xnor gate.
- in3 - Input 3 to the xnor gate.
- in4 - Input 4 to the xnor gate.
- out - Output to the xnor gate.
- Returns:
- out wire.
xnor_o
public Wire xnor_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire out)
- Constructs a new 5-input xnor gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the xnor gate.
- in2 - Input 2 to the xnor gate.
- in3 - Input 3 to the xnor gate.
- in4 - Input 4 to the xnor gate.
- in5 - Input 5 to the xnor gate.
- out - Output to the xnor gate.
- Returns:
- out wire.
xnor_o
public Wire xnor_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire out,
String name)
- Constructs a new 5-input xnor gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- name - Instance name for the xnor gate
- in1 - Input 1 to the xnor gate.
- in2 - Input 2 to the xnor gate.
- in3 - Input 3 to the xnor gate.
- in4 - Input 4 to the xnor gate.
- in5 - Input 5 to the xnor gate.
- out - Output to the xnor gate.
- Returns:
- out wire.
xnor_o
public Wire xnor_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire out)
- Constructs a new 6-input xnor gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the xnor gate.
- in2 - Input 2 to the xnor gate.
- in3 - Input 3 to the xnor gate.
- in4 - Input 4 to the xnor gate.
- in5 - Input 5 to the xnor gate.
- in6 - Input 6 to the xnor gate.
- out - Output to the xnor gate.
- Returns:
- out wire.
xnor_o
public Wire xnor_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire out,
String name)
- Constructs a new 6-input xnor gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- name - Instance name for the xnor gate
- in1 - Input 1 to the xnor gate.
- in2 - Input 2 to the xnor gate.
- in3 - Input 3 to the xnor gate.
- in4 - Input 4 to the xnor gate.
- in5 - Input 5 to the xnor gate.
- in6 - Input 6 to the xnor gate.
- out - Output to the xnor gate.
- Returns:
- out wire.
xnor_o
public Wire xnor_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
Wire out)
- Constructs a new 7-input xnor gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the xnor gate.
- in2 - Input 2 to the xnor gate.
- in3 - Input 3 to the xnor gate.
- in4 - Input 4 to the xnor gate.
- in5 - Input 5 to the xnor gate.
- in6 - Input 6 to the xnor gate.
- in7 - Input 7 to the xnor gate.
- out - Output to the xnor gate.
- Returns:
- out wire.
xnor_o
public Wire xnor_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
Wire out,
String name)
- Constructs a new 7-input xnor gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- name - Instance name for the xnor gate
- in1 - Input 1 to the xnor gate.
- in2 - Input 2 to the xnor gate.
- in3 - Input 3 to the xnor gate.
- in4 - Input 4 to the xnor gate.
- in5 - Input 5 to the xnor gate.
- in6 - Input 6 to the xnor gate.
- in7 - Input 7 to the xnor gate.
- out - Output to the xnor gate.
- Returns:
- out wire.
xnor_o
public Wire xnor_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
Wire in8,
Wire out)
- Constructs a new 8-input xnor gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the xnor gate.
- in2 - Input 2 to the xnor gate.
- in3 - Input 3 to the xnor gate.
- in4 - Input 4 to the xnor gate.
- in5 - Input 5 to the xnor gate.
- in6 - Input 6 to the xnor gate.
- in7 - Input 7 to the xnor gate.
- in8 - Input 8 to the xnor gate.
- out - Output to the xnor gate.
- Returns:
- out wire.
xnor_o
public Wire xnor_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
Wire in8,
Wire out,
String name)
- Constructs a new 8-input xnor gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- name - Instance name for the xnor gate
- in1 - Input 1 to the xnor gate.
- in2 - Input 2 to the xnor gate.
- in3 - Input 3 to the xnor gate.
- in4 - Input 4 to the xnor gate.
- in5 - Input 5 to the xnor gate.
- in6 - Input 6 to the xnor gate.
- in7 - Input 7 to the xnor gate.
- in8 - Input 8 to the xnor gate.
- out - Output to the xnor gate.
- Returns:
- out wire.
xnor_o
public Wire xnor_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
Wire in8,
Wire in9,
Wire out)
- Constructs a new 9-input xnor gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- in1 - Input 1 to the xnor gate.
- in2 - Input 2 to the xnor gate.
- in3 - Input 3 to the xnor gate.
- in4 - Input 4 to the xnor gate.
- in5 - Input 5 to the xnor gate.
- in6 - Input 6 to the xnor gate.
- in7 - Input 7 to the xnor gate.
- in8 - Input 8 to the xnor gate.
- in9 - Input 9 to the xnor gate.
- out - Output to the xnor gate.
- Returns:
- out wire.
xnor_o
public Wire xnor_o(Wire in1,
Wire in2,
Wire in3,
Wire in4,
Wire in5,
Wire in6,
Wire in7,
Wire in8,
Wire in9,
Wire out,
String name)
- Constructs a new 9-input xnor gate.
Returns the output wire.
Valid signal widths: 1-bit signals only.
- Parameters:
- name - Instance name for the xnor gate
- in1 - Input 1 to the xnor gate.
- in2 - Input 2 to the xnor gate.
- in3 - Input 3 to the xnor gate.
- in4 - Input 4 to the xnor gate.
- in5 - Input 5 to the xnor gate.
- in6 - Input 6 to the xnor gate.
- in7 - Input 7 to the xnor gate.
- in8 - Input 8 to the xnor gate.
- in9 - Input 9 to the xnor gate.
- out - Output to the xnor gate.
- Returns:
- out wire.
reg
public Wire reg(Wire d)
- Constructs a new register with a new wire as its output. Returns the
new output wire.
Valid signal widths: any width.
- Parameters:
- d - Data input to register.
- Returns:
- A new wire that is connected to the output of the
register.
reg
public Wire reg(Wire d,
String name)
- Constructs a new register with a new wire as its output. Returns the
new output wire.
Valid signal widths: any width.
- Parameters:
- name - Instance name for the register
- d - Data input to register.
- Returns:
- A new wire that is connected to the output of the
register.
reg_o
public Wire reg_o(Wire d,
Wire q)
- Constructs a new register. Returns output wire.
Valid signal widths: any width.
- Parameters:
- d - Data input to register.
- q - Output to register.
- Returns:
- q wire.
reg_o
public Wire reg_o(Wire d,
Wire q,
String name)
- Constructs a new register. Returns output wire.
Valid signal widths: any width.
- Parameters:
- name - Instance name for the register
- d - Data input to register.
- q - Output to register.
- Returns:
- q wire.
regc
public Wire regc(Wire d)
- Constructs a new register with a new wire as its output, with
global reset state '0'. Returns the new output wire. Valid
signal widths: d: any width.
- Parameters:
- d - Data input to register.
- Returns:
- A new wire that is connected to the output of the
register.
regc
public Wire regc(Wire d,
String name)
- Constructs a new register with a new wire as its output, with
global reset state '0'. Returns the new output wire. Valid
signal widths: d: any width.
- Parameters:
- name - Instance name for the register
- d - Data input to register.
- Returns:
- A new wire that is connected to the output of the
register.
regc_o
public Wire regc_o(Wire d,
Wire q)
- Constructs a new enabled register, with global reset state '0'.
Returns the output wire. Valid signal widths: d,q: any
width.
- Parameters:
- d - Data input to register.
- q - Output to register.
- Returns:
- q wire.
regc_o
public Wire regc_o(Wire d,
Wire q,
String name)
- Constructs a new enabled register, with global reset state '0'.
Returns the output wire. Valid signal widths: d,q: any
width.
- Parameters:
- name - Instance name for the register
- d - Data input to register.
- q - Output to register.
- Returns:
- q wire.
regce
public Wire regce(Wire d,
Wire ce)
- Constructs a new enabled register with a new wire as its output,
with global reset state '0'. Returns the new output wire. Valid
signal widths: d: any width, ce: 1-bit only.
- Parameters:
- d - Data input to register.
- ce - Enable input to register (high-asserted).
- Returns:
- A new wire that is connected to the output of the
register.
regce
public Wire regce(Wire d,
Wire ce,
String name)
- Constructs a new enabled register with a new wire as its output,
with global reset state '0'. Returns the new output wire. Valid
signal widths: d: any width, ce: 1-bit only.
- Parameters:
- name - Instance name for the register
- d - Data input to register.
- ce - Enable input to register (high-asserted).
- Returns:
- A new wire that is connected to the output of the
register.
regce_o
public Wire regce_o(Wire d,
Wire ce,
Wire q)
- Constructs a new enabled register. Returns the output wire.
Valid signal widths: d,q: any width, ce: 1-bit only.
- Parameters:
- d - Data input to register.
- ce - Enable input to register (high-asserted).
- q - Output to register.
- Returns:
- q wire.
regce_o
public Wire regce_o(Wire d,
Wire ce,
Wire q,
String name)
- Constructs a new enabled register. Returns the output wire.
Valid signal widths: d,q: any width, ce: 1-bit only.
- Parameters:
- name - Instance name for the register
- d - Data input to register.
- ce - Enable input to register (high-asserted).
- q - Output to register.
- Returns:
- q wire.
regp
public Wire regp(Wire d)
- Constructs a new register with a new wire as its output, with
global reset state '1' x (width of output wire). Returns the new
output wire. Valid signal widths: d: any width,
ce: 1-bit only.
- Parameters:
- d - Data input to register.
- Returns:
- A new wire that is connected to the output of the
register.
regp
public Wire regp(Wire d,
String name)
- Constructs a new register with a new wire as its output, with
global reset state '1' x (width of output wire). Returns the new
output wire. Valid signal widths: d: any width,
ce: 1-bit only.
- Parameters:
- name - Instance name for the register
- d - Data input to register.
- Returns:
- A new wire that is connected to the output of the
register.
regp_o
public Wire regp_o(Wire d,
Wire q)
- Constructs a new enabled register, with global reset state '1' x
(width of output wire). Returns the output wire. Valid signal
widths: d,q: any width, ce: 1-bit only.
- Parameters:
- d - Data input to register.
- q - Output to register.
- Returns:
- q wire.
regp_o
public Wire regp_o(Wire d,
Wire q,
String name)
- Constructs a new enabled register, with global reset state '1' x
(width of output wire). Returns the output wire. Valid signal
widths: d,q: any width, ce: 1-bit only.
- Parameters:
- name - Instance name for the register
- d - Data input to register.
- q - Output to register.
- Returns:
- q wire.
regpe
public Wire regpe(Wire d,
Wire ce)
- Constructs a new enabled register with a new wire as its output,
with global reset state '1' x (width of output wire). Returns
the new output wire. Valid signal widths: d: any width,
ce: 1-bit only.
- Parameters:
- d - Data input to register.
- ce - Enable input to register (high-asserted).
- Returns:
- A new wire that is connected to the output of the
register.
regpe
public Wire regpe(Wire d,
Wire ce,
String name)
- Constructs a new enabled register with a new wire as its output,
with global reset state '1' x (width of output wire). Returns
the new output wire. Valid signal widths: d: any width,
ce: 1-bit only.
- Parameters:
- name - Instance name for the register
- d - Data input to register.
- ce - Enable input to register (high-asserted).
- Returns:
- A new wire that is connected to the output of the
register.
regpe_o
public Wire regpe_o(Wire d,
Wire ce,
Wire q)
- Constructs a new enabled register, with global reset state '1' x
(width of output wire). Returns the output wire. Valid signal
widths: d,q: any width, ce: 1-bit only.
- Parameters:
- d - Data input to register.
- ce - Enable input to register (high-asserted).
- q - Output to register.
- Returns:
- q wire.
regpe_o
public Wire regpe_o(Wire d,
Wire ce,
Wire q,
String name)
- Constructs a new enabled register, with global reset state '1' x
(width of output wire). Returns the output wire. Valid signal
widths: d,q: any width, ce: 1-bit only.
- Parameters:
- name - Instance name for the register
- d - Data input to register.
- ce - Enable input to register (high-asserted).
- q - Output to register.
- Returns:
- q wire.
regr
public Wire regr(Wire d,
Wire r)
- Constructs a new synchronously reset register. The reset /
power-up state of the register is a logical '0' on all bits.
Creates a new wire as the output of the register, and returns
that wire. Valid signal widths: d: any
width, r: 1-bit only.
- Parameters:
- d - Data input to the register.
- r - The synchronous reset signal.
- Returns:
- A new wire that is connected to the output of the
register.
regr
public Wire regr(Wire d,
Wire r,
String name)
- Constructs a new synchronously reset register with instance name
given by the
String parameter. The reset /
power-up state of the register is a logical '0' on all bits.
Creates a new wire as the output of the register, and returns
that wire. Valid signal widths: d: any
width, r: 1-bit only.
- Parameters:
- d - Data input to the register.
- r - The synchronous reset signal.
- Returns:
- A new wire that is connected to the output of the
register.
regr_o
public Wire regr_o(Wire d,
Wire r,
Wire q)
- Constructs a new synchronously reset register. The reset /
power-up state of the register is a logical '0' on all bits.
Returns the output wire. Valid signal widths: d, q: any
width, r: 1-bit only.
- Parameters:
- d - Data input to the register.
- r - The synchronous reset signal.
- q - The data output of the register.
- Returns:
- A new wire that is connected to the output of the
register.
regr_o
public Wire regr_o(Wire d,
Wire r,
Wire q,
String name)
- Constructs a new synchronously reset register with instance name
given by the
String parameter. The reset /
power-up state of the register is a logical '0' on all bits.
Returns the output wire. Valid signal widths: d, q: any
width, r: 1-bit only.
- Parameters:
- d - Data input to the register.
- r - The synchronous reset signal.
- q - The data output of the register.
- Returns:
- A new wire that is connected to the output of the
register.
regre
public Wire regre(Wire d,
Wire ce,
Wire r)
- Constructs a new clock-enabled synchronously reset register.
The reset / power-up state of the register is a logical '0' on
all bits. Creates a new wire as the output of the register, and
returns that wire. Valid signal widths: d: any width,
ce, r: 1-bit only.
- Parameters:
- d - Data input to the register.
- ce - The clock enable signal.
- r - The synchronous reset signal.
- Returns:
- A new wire that is connected to the output of the
register.
regre
public Wire regre(Wire d,
Wire ce,
Wire r,
String name)
- Constructs a new clock-enabled synchronously reset register with
instance name given by the
String parameter. The
reset / power-up state of the register is a logical '0' on all
bits. Creates a new wire as the output of the register, and
returns that wire. Valid signal widths: d: any width,
ce, r: 1-bit only.
- Parameters:
- d - Data input to the register.
- ce - The clock enable signal.
- r - The synchronous reset signal.
- Returns:
- A new wire that is connected to the output of the
register.
regre_o
public Wire regre_o(Wire d,
Wire ce,
Wire r,
Wire q)
- Constructs a new clock-enabled synchronously reset register.
The reset / power-up state of the register is a logical '0' on
all bits. Returns the output wire. Valid signal widths: d,
q: any width, ce, r: 1-bit only.
- Parameters:
- d - Data input to the register.
- ce - The clock enable signal.
- r - The synchronous reset signal.
- q - The data output of the register.
- Returns:
- A new wire that is connected to the output of the
register.
regre_o
public Wire regre_o(Wire d,
Wire ce,
Wire r,
Wire q,
String name)
- Constructs a new clock-enabled synchronously reset register with
instance name given by the
String parameter. The
reset / power-up state of the register is a logical '0' on all
bits. Returns the output wire. Valid signal widths: d,
q: any width, ce, r: 1-bit only.
- Parameters:
- d - Data input to the register.
- ce - The clock enable signal.
- r - The synchronous reset signal.
- q - The data output of the register.
- Returns:
- A new wire that is connected to the output of the
register.
regs
public Wire regs(Wire d,
Wire s)
- Constructs a new synchronously preset register. The reset /
power-up state of the register is a logical '1' on all bits.
Creates a new wire as the output of the register, and returns
that wire. Valid signal widths: d: any
width, r: 1-bit only.
- Parameters:
- d - Data input to the register.
- s - The synchronous preset signal.
- Returns:
- A new wire that is connected to the output of the
register.
regs
public Wire regs(Wire d,
Wire s,
String name)
- Constructs a new synchronously preset register with instance name
given by the
String parameter. The reset /
power-up state of the register is a logical '1' on all bits.
Creates a new wire as the output of the register, and returns
that wire. Valid signal widths: d: any
width, r: 1-bit only.
- Parameters:
- d - Data input to the register.
- s - The synchronous preset signal.
- Returns:
- A new wire that is connected to the output of the
register.
regs_o
public Wire regs_o(Wire d,
Wire s,
Wire q)
- Constructs a new synchronously preset register. The reset /
power-up state of the register is a logical '1' on all bits.
Returns the output wire. Valid signal widths: d, q: any
width, r: 1-bit only.
- Parameters:
- d - Data input to the register.
- s - The synchronous preset signal.
- q - The data output of the register.
- Returns:
- A new wire that is connected to the output of the
register.
regs_o
public Wire regs_o(Wire d,
Wire s,
Wire q,
String name)
- Constructs a new synchronously preset register with instance name
given by the
String parameter. The reset /
power-up state of the register is a logical '1' on all bits.
Returns the output wire. Valid signal widths: d, q: any
width, r: 1-bit only.
- Parameters:
- d - Data input to the register.
- s - The synchronous preset signal.
- q - The data output of the register.
- Returns:
- A new wire that is connected to the output of the
register.
regse
public Wire regse(Wire d,
Wire ce,
Wire s)
- Constructs a new clock-enabled synchronously preset register.
The reset / power-up state of the register is a logical '1' on
all bits. Creates a new wire as the output of the register, and
returns that wire. Valid signal widths: d: any width,
ce, r: 1-bit only.
- Parameters:
- d - Data input to the register.
- ce - The clock enable signal.
- s - The synchronous preset signal.
- Returns:
- A new wire that is connected to the output of the
register.
regse
public Wire regse(Wire d,
Wire ce,
Wire s,
String name)
- Constructs a new clock-enabled synchronously preset register with
instance name given by the
String parameter. The
reset / power-up state of the register is a logical '1' on all
bits. Creates a new wire as the output of the register, and
returns that wire. Valid signal widths: d: any width,
ce, r: 1-bit only.
- Parameters:
- d - Data input to the register.
- ce - The clock enable signal.
- s - The synchronous preset signal.
- Returns:
- A new wire that is connected to the output of the
register.
regse_o
public Wire regse_o(Wire d,
Wire ce,
Wire s,
Wire q)
- Constructs a new clock-enabled synchronously preset register.
The reset / power-up state of the register is a logical '1' on
all bits. Returns the output wire. Valid signal widths: d,
q: any width, ce, r: 1-bit only.
- Parameters:
- d - Data input to the register.
- ce - The clock enable signal.
- s - The synchronous preset signal.
- q - The data output of the register.
- Returns:
- A new wire that is connected to the output of the
register.
regse_o
public Wire regse_o(Wire d,
Wire ce,
Wire s,
Wire q,
String name)
- Constructs a new clock-enabled synchronously preset register with
instance name given by the
String parameter. The
reset / power-up state of the register is a logical '1' on all
bits. Returns the output wire. Valid signal widths: d,
q: any width, ce, r: 1-bit only.
- Parameters:
- d - Data input to the register.
- ce - The clock enable signal.
- s - The synchronous preset signal.
- q - The data output of the register.
- Returns:
- A new wire that is connected to the output of the
register.
not
public Wire not(Wire i)
- Constructs a new inverter with a new wire as its output. Returns
the new output wire. Valid signal widths: any width.
- Parameters:
- in - Input wire to the inverter
- Returns:
- A new wire that is connected to the output of the inverter.
not
public Wire not(Wire i,
String name)
- Constructs a new inverter with a new wire as its output. Returns
the new output wire. Valid signal widths: any width.
- Parameters:
- name - Instance name for the inverter
- in - Input wire to the inverter
- Returns:
- A new wire that is connected to the output of the inverter.
not_o
public Wire not_o(Wire i,
Wire o)
- Constructs a new inverter. Returns the output wire. Valid signal
widths: any width.
- Parameters:
- in - Input wire to the inverter
- out - Output wire to the inverter
- Returns:
- out wire.
not_o
public Wire not_o(Wire i,
Wire o,
String name)
- Constructs a new inverter. Returns the output wire. Valid signal
widths: any width.
- Parameters:
- name - Instance name for the inverter
- in - Input wire to the inverter
- out - Output wire to the inverter
- Returns:
- out wire.
mux
public Wire mux(Wire d0,
Wire d1,
Wire sel)
- Constructs a new multiplexor with a new wire as its output.
Returns the new output wire. Valid signal
widths: d0,d1: any width, sel: 1-bit only.
- Parameters:
- d0 - Input wire that is selected if sel == 0.
- d1 - Input wire that is selected if sel == 1.
- sel - Input wire that selects the inputs.
- Returns:
- A new wire that is connected to the output of the
multiplexor.
mux
public Wire mux(Wire d0,
Wire d1,
Wire sel,
String name)
- Constructs a new multiplexor with a new wire as its output.
Returns the new output wire. Valid signal
widths: d0,d1: any width, sel: 1-bit only.
- Parameters:
- name - Instance name for the multiplexor
- d0 - Input wire that is selected if sel == 0.
- d1 - Input wire that is selected if sel == 1.
- sel - Input wire that selects the inputs.
- Returns:
- A new wire that is connected to the output of the
multiplexor.
mux_o
public Wire mux_o(Wire d0,
Wire d1,
Wire sel,
Wire o)
- Constructs a new multiplexor. Returns the output wire.
Valid signal widths: d0,d1: any width, sel: 1-bit only.
- Parameters:
- d0 - Input wire that is selected if sel == 0.
- d1 - Input wire that is selected if sel == 1.
- sel - Input wire that selects the inputs.
- o - Output wire to the multiplexor.
- Returns:
- A new wire that is connected to the output of the
multiplexor.
mux_o
public Wire mux_o(Wire d0,
Wire d1,
Wire sel,
Wire o,
String name)
- Constructs a new multiplexor. Returns the output wire.
Valid signal widths: d0,d1: any width, sel: 1-bit only.
- Parameters:
- name - Instance name for the multiplexor
- d0 - Input wire that is selected if sel == 0.
- d1 - Input wire that is selected if sel == 1.
- sel - Input wire that selects the inputs.
- o - Output wire to the multiplexor.
- Returns:
- A new wire that is connected to the output of the
multiplexor.
vcc
public Wire vcc()
- Returns a new wire connected to power.
Valid signal widths: 1-bit only.
- Returns:
- A new wire that is connected to power.
vcc
public Wire vcc(String name)
- Returns a new wire connected to power.
Valid signal widths: 1-bit only.
- Parameters:
- name - Instance name for the vcc symbol
- Returns:
- A new wire that is connected to power.
vcc
public Wire vcc(int width)
- Returns a new wire of the specified width connected to power.
Valid signal widths: any width.
- Parameters:
- width - The desired wire width.
- Returns:
- A new wire that is connected to power.
vcc
public Wire vcc(int width,
String name)
- Returns a new wire of the specified width connected to power.
Valid signal widths: any width.
- Parameters:
- width - The desired wire width.
- name - Instance name for the vcc symbol
- Returns:
- A new wire that is connected to power.
vcc_o
public Wire vcc_o(Wire o)
- Connects wire o to power, and returns o.
Valid signal widths: 1-bit only.
- Parameters:
- o - Wire to connect to power.
- Returns:
- o wire.
vcc_o
public Wire vcc_o(Wire o,
String name)
- Connects wire o to power, and returns o.
Valid signal widths: 1-bit only.
- Parameters:
- o - Wire to connect to power.
- name - Instance name for the vcc symbol
- Returns:
- o wire.
gnd
public Wire gnd()
- Returns a new wire connected to ground.
Valid signal widths: 1-bit only.
- Returns:
- A new wire that is connected to ground.
gnd
public Wire gnd(String name)
- Returns a new wire connected to ground.
Valid signal widths: 1-bit only.
- Parameters:
- name - Instance name for the gnd symbol
- Returns:
- A new wire that is connected to ground.
gnd
public Wire gnd(int width)
- Returns a new wire of the given width connected to ground.
Valid signal widths: any width.
- Parameters:
- width - The desired width of the wire.
- Returns:
- A new wire that is connected to ground.
gnd
public Wire gnd(int width,
String name)
- Returns a new wire of the given width connected to ground.
Valid signal widths: any width.
- Parameters:
- width - The desired width of the wire.
- name - Instance name for the gnd symbol
- Returns:
- A new wire that is connected to ground.
gnd_o
public Wire gnd_o(Wire o)
- Connects wire o to ground, and returns o.
Valid signal widths: .
- Parameters:
- o - Wire to connect to ground.
- Returns:
- o wire.
gnd_o
public Wire gnd_o(Wire o,
String name)
- Connects wire o to ground, and returns o.
Valid signal widths: 1-bit only.
- Parameters:
- o - Wire to connect to ground.
- name - Instance name for the gnd symbol
- Returns:
- o wire.
add
public Wire add(Wire a,
Wire b)
- Constructs a new adder with no carry-in or carry-out, and with a
new wire connected to the sum output. Returns the new sum
output wire. Valid signal widths: any width.
- Parameters:
- a - Input a to the adder.
- b - Input b to the adder.
- Returns:
- A new wire that is connected to the output of the
adder.
add
public Wire add(Wire a,
Wire b,
String name)
- Constructs a new adder with no carry-in or carry-out, and with a
new wire connected to the sum output. Returns the new sum
output wire. Valid signal widths: any width.
- Parameters:
- name - Instance name for the adder symbol
- a - Input a to the adder.
- b - Input b to the adder.
- Returns:
- A new wire that is connected to the output of the
adder.
add
public Wire add(Wire a,
Wire b,
Wire ci)
- Constructs a new adder with no carry-out, and with a new wire
connected to the sum output. Returns the new sum output wire.
Valid signal widths:
a,b: any width, ci: 1-bit only.
- Parameters:
- a - Input a to the adder.
- b - Input b to the adder.
- ci - Carry input to the adder.
- Returns:
- A new wire that is connected to the output of the
adder.
add
public Wire add(Wire a,
Wire b,
Wire ci,
String name)
- Constructs a new adder with no carry-out, and with a new wire
connected to the sum output. Returns the new sum output wire.
Valid signal widths:
a,b: any width, ci: 1-bit only.
- Parameters:
- name - Instance name for the adder
- a - Input a to the adder.
- b - Input b to the adder.
- ci - Carry input to the adder.
- Returns:
- A new wire that is connected to the output of the
adder.
add_o
public Wire add_o(Wire a,
Wire b,
Wire s)
- Constructs a new adder with no carry-out. Returns the sum
output wire.
Valid signal widths: a,b,sum: any width.
- Parameters:
- a - Input a to the adder.
- b - Input b to the adder.
- s - Sum output to adder.
- Returns:
- s wire.
add_o
public Wire add_o(Wire a,
Wire b,
Wire s,
String name)
- Constructs a new adder with no carry-out. Returns the sum
output wire.
Valid signal widths: a,b,sum: any width.
- Parameters:
- a - Input a to the adder.
- b - Input b to the adder.
- s - Sum output to adder.
- name - Instance name of the adder.
- Returns:
- s wire.
add_o
public Wire add_o(Wire a,
Wire b,
Wire ci,
Wire s)
- Constructs a new adder with no carry-out. Returns the sum
output wire.
Valid signal widths: a,b,sum: any width, ci: 1-bit only.
- Parameters:
- a - Input a to the adder.
- b - Input b to the adder.
- ci - Carry input to the adder.
- s - Sum output to adder.
- Returns:
- s wire.
add_o
public Wire add_o(Wire a,
Wire b,
Wire ci,
Wire s,
String name)
- Constructs a new adder with no carry-out. Returns the sum
output wire.
Valid signal widths: a,b,sum: any width, ci: 1-bit only.
- Parameters:
- name - Instance name for the adder
- a - Input a to the adder.
- b - Input b to the adder.
- ci - Carry input to the adder.
- s - Sum output to adder.
- Returns:
- s wire.
add_o
public Wire add_o(Wire a,
Wire b,
Wire ci,
Wire s,
Wire co)
- Constructs a new adder. Returns the sum output wire.
Valid signal widths: a,b,sum: any width, ci: 1-bit only.
- Parameters:
- a - Input a to the adder.
- b - Input b to the adder.
- ci - Carry input to the adder.
- s - Sum output to adder.
- co - Carry output output to adder.
- Returns:
- s wire.
add_o
public Wire add_o(Wire a,
Wire b,
Wire ci,
Wire s,
Wire co,
String name)
- Constructs a new adder. Returns the sum output wire.
Valid signal widths: a,b,sum: any width, ci: 1-bit only.
- Parameters:
- name - Instance name for the adder
- a - Input a to the adder.
- b - Input b to the adder.
- ci - Carry input to the adder.
- s - Sum output to adder.
- co - Carry output output to adder.
- Returns:
- s wire.
sub
public Wire sub(Wire a,
Wire b)
- Constructs a new subtractor with no carry-in or carry-out, and
with a new wire as its sum output. Returns the new sum output
wire. Valid signal widths: any width.
- Parameters:
- a - Input a to the subtractor.
- b - Input b to the subtractor.
- Returns:
- A new wire that is connected to the output of the
subtractor.
sub
public Wire sub(Wire a,
Wire b,
String name)
- Constructs a new subtractor with no carry-in or carry-out, and
with a new wire as its sum output. Returns the new sum output
wire. Valid signal widths: any width.
- Parameters:
- name - Instance name for the subtractor
- a - Input a to the subtractor.
- b - Input b to the subtractor.
- Returns:
- A new wire that is connected to the output of the
subtractor.
sub
public Wire sub(Wire a,
Wire b,
Wire ci)
- Constructs a new subtractor with no carry-out, and with a new
wire as its sum output. Returns the new sum output wire.
Valid signal widths:
a,b: any width, ci: 1-bit only.
- Parameters:
- a - Input a to the subtractor.
- b - Input b to the subtractor.
- ci - Carry input to the subtractor.
- Returns:
- A new wire that is connected to the output of the
subtractor.
sub
public Wire sub(Wire a,
Wire b,
Wire ci,
String name)
- Constructs a new subtractor with no carry-out, and with a new
wire as its sum output. Returns the new sum output wire.
Valid signal widths:
a,b: any width, ci: 1-bit only.
- Parameters:
- name - Instance name for the subtractor
- a - Input a to the subtractor.
- b - Input b to the subtractor.
- ci - Carry input to the subtractor.
- Returns:
- A new wire that is connected to the output of the
subtractor.
sub_o
public Wire sub_o(Wire a,
Wire b,
Wire s)
- Constructs a new subtractor with no carry-out. Returns the sum
output wire.
Valid signal widths: a,b,sum: any width.
- Parameters:
- a - Input a to the subtractor.
- b - Input b to the subtractor.
- s - Sum output to subtractor.
- Returns:
- s wire.
sub_o
public Wire sub_o(Wire a,
Wire b,
Wire s,
String name)
- Constructs a new subtractor with no carry-out. Returns the sum
output wire.
Valid signal widths: a,b,sum: any width.
- Parameters:
- name - Instance name for the subtractor
- a - Input a to the subtractor.
- b - Input b to the subtractor.
- s - Sum output to subtractor.
- Returns:
- s wire.
sub_o
public Wire sub_o(Wire a,
Wire b,
Wire ci,
Wire s)
- Constructs a new subtractor with no carry-out. Returns the sum
output wire.
Valid signal widths: a,b,sum: any width, ci: 1-bit only.
- Parameters:
- a - Input a to the subtractor.
- b - Input b to the subtractor.
- ci - Carry input to the subtractor.
- s - Sum output to subtractor.
- Returns:
- s wire.
sub_o
public Wire sub_o(Wire a,
Wire b,
Wire ci,
Wire s,
String name)
- Constructs a new subtractor with no carry-out. Returns the sum
output wire.
Valid signal widths: a,b,sum: any width, ci: 1-bit only.
- Parameters:
- name - Instance name for the subtractor
- a - Input a to the subtractor.
- b - Input b to the subtractor.
- ci - Carry input to the subtractor.
- s - Sum output to subtractor.
- Returns:
- s wire.
sub_o
public Wire sub_o(Wire a,
Wire b,
Wire ci,
Wire s,
Wire co)
- Constructs a new subtractor. Returns the sum output wire.
Valid signal widths: a,b,sum: any width, ci: 1-bit only.
- Parameters:
- a - Input a to the subtractor.
- b - Input b to the subtractor.
- ci - Carry input to the subtractor.
- s - Sum output to subtractor.
- co - Carry output output to subtractor.
- Returns:
- s wire.
sub_o
public Wire sub_o(Wire a,
Wire b,
Wire ci,
Wire s,
Wire co,
String name)
- Constructs a new subtractor. Returns the sum output wire.
Valid signal widths: a,b,sum: any width, ci: 1-bit only.
- Parameters:
- name - Instance name for the subtractor
- a - Input a to the subtractor.
- b - Input b to the subtractor.
- ci - Carry input to the subtractor.
- s - Sum output to subtractor.
- co - Carry output output to subtractor.
- Returns:
- s wire.
addsub
public Wire addsub(Wire a,
Wire b,
Wire add)
- Constructs a new adder-subtractor with no carry-in or carry-out,
and with a new wire connected to its sum output. Returns the
new sum output wire. Control is encoded as follows:
- add == 1: add
- add == 0: subtract
Valid signal widths:
a,b: any width, add: 1-bit only.
- Parameters:
- a - Input a to the adder-subtractor.
- b - Input b to the adder-subtractor.
- add - Function control input to the adder-subtractor.
- Returns:
- A new wire that is connected to the output of the
adder-subtractor.
addsub
public Wire addsub(Wire a,
Wire b,
Wire add,
String name)
- Constructs a new adder-subtractor with no carry-in or carry-out,
and with a new wire connected to its sum output. Returns the
new sum output wire. Control is encoded as follows:
- add == 1: add
- add == 0: subtract
Valid signal widths:
a,b: any width, add: 1-bit only.
- Parameters:
- name - Instance name for the adder-subtractor
- a - Input a to the adder-subtractor.
- b - Input b to the adder-subtractor.
- add - Function control input to the adder-subtractor.
- Returns:
- A new wire that is connected to the output of the
adder-subtractor.
addsub
public Wire addsub(Wire a,
Wire b,
Wire ci,
Wire add)
- Constructs a new adder-subtractor with no carry-out, and with a
new wire connected to its sum output. Returns the new sum
output wire. Control is encoded as follows:
- add == 1: add
- add == 0: subtract
Valid signal widths:
a,b: any width, ci,add: 1-bit only.
- Parameters:
- a - Input a to the adder-subtractor.
- b - Input b to the adder-subtractor.
- ci - Carry input to the adder-subtractor.
- add - Function control input to the adder-subtractor.
- Returns:
- A new wire that is connected to the output of the
adder-subtractor.
addsub
public Wire addsub(Wire a,
Wire b,
Wire ci,
Wire add,
String name)
- Constructs a new adder-subtractor with no carry-out, and with a
new wire connected to its sum output. Returns the new sum
output wire. Control is encoded as follows:
- add == 1: add
- add == 0: subtract
Valid signal widths:
a,b: any width, ci,add: 1-bit only.
- Parameters:
- name - Instance name for the adder-subtractor
- a - Input a to the adder-subtractor.
- b - Input b to the adder-subtractor.
- ci - Carry input to the adder-subtractor.
- add - Function control input to the adder-subtractor.
- Returns:
- A new wire that is connected to the output of the
adder-subtractor.
addsub_o
public Wire addsub_o(Wire a,
Wire b,
Wire add,
Wire s)
- Constructs a new adder-subtractor with no carry-out. Returns
the sum output wire. Control is encoded as follows:
- add == 1: add
- add == 0: subtract
Valid signal widths:
a,b,s: any width, add: 1-bit only.
- Parameters:
- a - Input a to the adder-subtractor.
- b - Input b to the adder-subtractor.
- add - Function control input to the adder-subtractor.
- s - Sum output to the adder-subtractor.
- Returns:
- s wire.
addsub_o
public Wire addsub_o(Wire a,
Wire b,
Wire add,
Wire s,
String name)
- Constructs a new adder-subtractor with no carry-out. Returns
the sum output wire. Control is encoded as follows:
- add == 1: add
- add == 0: subtract
Valid signal widths:
a,b,s: any width, add: 1-bit only.
- Parameters:
- name - Instance name for the adder-subtractor
- a - Input a to the adder-subtractor.
- b - Input b to the adder-subtractor.
- add - Function control input to the adder-subtractor.
- s - Sum output to the adder-subtractor.
- Returns:
- s wire.
addsub_o
public Wire addsub_o(Wire a,
Wire b,
Wire ci,
Wire add,
Wire s)
- Constructs a new adder-subtractor with no carry-out. Returns
the sum output wire. Control is encoded as follows:
- add == 1: add
- add == 0: subtract
Valid signal widths:
a,b,s: any width, ci,add: 1-bit only.
- Parameters:
- a - Input a to the adder-subtractor.
- b - Input b to the adder-subtractor.
- ci - Carry input to the adder-subtractor.
- add - Function control input to the adder-subtractor.
- s - Sum output to the adder-subtractor.
- Returns:
- s wire.
addsub_o
public Wire addsub_o(Wire a,
Wire b,
Wire ci,
Wire add,
Wire s,
String name)
- Constructs a new adder-subtractor with no carry-out. Returns
the sum output wire. Control is encoded as follows:
- add == 1: add
- add == 0: subtract
Valid signal widths:
a,b,s: any width, ci,add: 1-bit only.
- Parameters:
- name - Instance name for the adder-subtractor
- a - Input a to the adder-subtractor.
- b - Input b to the adder-subtractor.
- ci - Carry input to the adder-subtractor.
- add - Function control input to the adder-subtractor.
- s - Sum output to the adder-subtractor.
- Returns:
- s wire.
addsub_o
public Wire addsub_o(Wire a,
Wire b,
Wire ci,
Wire add,
Wire s,
Wire co)
- Constructs a new adder-subtractor. Returns the sum output wire.
Control is encoded as follows:
- add == 1: add
- add == 0: subtract
Valid signal widths:
a,b,s: any width, ci,add: 1-bit only.
- Parameters:
- a - Input a to the adder-subtractor.
- b - Input b to the adder-subtractor.
- ci - Carry input to the adder-subtractor.
- add - Function control input to the adder-subtractor.
- s - Sum output to the adder-subtractor.
- Returns:
- s wire.
addsub_o
public Wire addsub_o(Wire a,
Wire b,
Wire ci,
Wire add,
Wire s,
Wire co,
String name)
- Constructs a new adder-subtractor. Returns the sum output wire.
Control is encoded as follows:
- add == 1: add
- add == 0: subtract
Valid signal widths:
a,b,s: any width, ci,add: 1-bit only.
- Parameters:
- name - Instance name for the adder-subtractor
- a - Input a to the adder-subtractor.
- b - Input b to the adder-subtractor.
- ci - Carry input to the adder-subtractor.
- add - Function control input to the adder-subtractor.
- s - Sum output to the adder-subtractor.
- Returns:
- s wire.
wire
public static Wire wire(Cell p)
- Constructs a new "primitive" wire, with the specified
Node as parent. The primitive wire type is
defined by the TechMapper associated with this Logic object.
- Parameters:
- p - The cell to be used as the parent of the wire.
- Returns:
- A new wire that is "primitive" to the target platform.
wire
public static Wire wire(Cell p,
String name)
- Constructs a new named "primitive" wire, with the specified
Node as parent. The primitive wire type is
defined by the TechMapper associated with this Logic object.
- Parameters:
- p - The cell to be used as the parent of the wire.
- name - String name to assign to the new wire.
- Returns:
- A new wire that is "primitive" to the target platform.
wire
public static Wire wire(Cell p,
int width)
- Constructs a new wire of width width, with the specified
Node as parent. The appropriate
wire type is determined by the TechMapper associated with this
Logic object.
- Parameters:
- p - The cell to be used as the parent of the wire.
- width - Desired width of the wire.
- Returns:
- A new wire that is "primitive" to the target platform.
wire
public static Wire wire(Cell p,
int width,
String name)
- Constructs a new named wire of width width, with the specified
Node as parent. The appropriate
wire type is determined by the TechMapper associated with this
Logic object.
- Parameters:
- p - The cell to be used as the parent of the wire.
- width - Desired width of the wire.
- name - String name to assign to the new wire.
- Returns:
- A new wire that is "primitive" to the target platform.
wire
public Wire wire()
- Constructs a new "primitive" wire. The primitive wire type is
defined by the TechMapper associated with this Logic object.
- Returns:
- A new wire that is "primitive" to the target platform.
wire
public Wire wire(String name)
- Constructs a new named "primitive" wire. The primitive wire type is
defined by the TechMapper associated with this Logic object.
- Parameters:
- name - String name to assign to the new wire.
- Returns:
- A new wire that is "primitive" to the target platform.
wire
public Wire wire(int width)
- Constructs a new wire of width width. The appropriate
wire type is determined by the TechMapper associated with this
Logic object.
- Parameters:
- width - Desired width of the wire.
- Returns:
- A new wire that is "primitive" to the target platform.
wire
public Wire wire(int width,
String name)
- Constructs a new named wire of width width.
The appropriate
wire type is determined by the TechMapper associated with this
Logic object.
- Parameters:
- width - Desired width of the wire.
- name - String name to assign to the new wire.
- Returns:
- A new wire that is "primitive" to the target platform.
concat
public Wire concat(WireList wl)
- Returns a new wire that is the concatenation of the wires in the
WireList parameter. The first wire in the list is
the most significant bit in the output wire.
- Parameters:
- wl - The list of wires to be concatenated.
concat
public Wire concat(WireList wl,
String name)
- Returns a new named wire that is the concatenation of the wires in the
WireList parameter. The first wire in the list is
the most significant bit in the output wire.
- Parameters:
- wl - The list of wires to be concatenated.
- name - The instance name of the new wire.
- Returns:
- A new wire that is the concatenation of the wires in
the
WireList parameter
concat
public Wire concat(Wire w1,
Wire w2)
- Returns a new wire that is the concatenation of the input
parameter wires. For example, if
foo and
bar are 3-bit wires, and pie is a 2-bit
wire, then concat(foo, bar, pie) returns a new
wire that is composed as follows, most significant bit first:
foo[2], foo[1], foo[0], bar[2], bar[1], bar[0], pie[1],
pie[0].
- Parameters:
- w1-w2 - List of wires, most signficant first, to be concatenated.
- Returns:
- A new wire that is the bit-wise concatenation of the parameters.
concat
public Wire concat(Wire w1,
Wire w2,
String name)
- Returns a new wire that is the concatenation of the wire
parameter, with name given by the
String parameter.
For example, if foo and bar are 3-bit
wires, and pie is a 2-bit wire, then
concat(foo, bar, pie) returns a new wire that is composed
as follows, most significant bit first: foo[2], foo[1],
foo[0], bar[2], bar[1], bar[0], pie[1], pie[0].
- Parameters:
- name -
String name for the new wire.
- w1-w2 - List of wires, most signficant first, to be concatenated.
- Returns:
- A new wire that is the bit-wise concatenation of the parameters.
concat
public Wire concat(Wire w1,
Wire w2,
Wire w3)
- Returns a new wire that is the concatenation of the input parameter wires.
- Parameters:
- w1-w3 - List of wires, most signficant first, to be concatenated.
- Returns:
- A new wire that is the bit-wise concatenation of the parameters.
concat
public Wire concat(Wire w1,
Wire w2,
Wire w3,
String name)
- Returns a new wire that is the concatenation of the wire parameter, with name given by the
String parameter.
- Parameters:
- name -
String name for the new wire.
- w1-w3 - List of wires, most signficant first, to be concatenated.
- Returns:
- A new wire that is the bit-wise concatenation of the parameters.
concat
public Wire concat(Wire w1,
Wire w2,
Wire w3,
Wire w4)
- Returns a new wire that is the concatenation of the input parameter wires.
- Parameters:
- w1-w4 - List of wires, most signficant first, to be concatenated.
- Returns:
- A new wire that is the bit-wise concatenation of the parameters.
concat
public Wire concat(Wire w1,
Wire w2,
Wire w3,
Wire w4,
String name)
- Returns a new wire that is the concatenation of the wire parameter, with name given by the
String parameter.
- Parameters:
- name -
String name for the new wire.
- w1-w4 - List of wires, most signficant first, to be concatenated.
- Returns:
- A new wire that is the bit-wise concatenation of the parameters.
concat
public Wire concat(Wire w1,
Wire w2,
Wire w3,
Wire w4,
Wire w5)
- Returns a new wire that is the concatenation of the input parameter wires.
- Parameters:
- w1-w5 - List of wires, most signficant first, to be concatenated.
- Returns:
- A new wire that is the bit-wise concatenation of the parameters.
concat
public Wire concat(Wire w1,
Wire w2,
Wire w3,
Wire w4,
Wire w5,
String name)
- Returns a new wire that is the concatenation of the wire parameter, with name given by the
String parameter.
- Parameters:
- name -
String name for the new wire.
- w1-w5 - List of wires, most signficant first, to be concatenated.
- Returns:
- A new wire that is the bit-wise concatenation of the parameters.
concat
public Wire concat(Wire w1,
Wire w2,
Wire w3,
Wire w4,
Wire w5,
Wire w6)
- Returns a new wire that is the concatenation of the input parameter wires.
- Parameters:
- w1-w6 - List of wires, most signficant first, to be concatenated.
- Returns:
- A new wire that is the bit-wise concatenation of the parameters.
concat
public Wire concat(Wire w1,
Wire w2,
Wire w3,
Wire w4,
Wire w5,
Wire w6,
String name)
- Returns a new wire that is the concatenation of the wire parameter, with name given by the
String parameter.
- Parameters:
- name -
String name for the new wire.
- w1-w6 - List of wires, most signficant first, to be concatenated.
- Returns:
- A new wire that is the bit-wise concatenation of the parameters.
concat
public Wire concat(Wire w1,
Wire w2,
Wire w3,
Wire w4,
Wire w5,
Wire w6,
Wire w7)
- Returns a new wire that is the concatenation of the input parameter wires.
- Parameters:
- w1-w7 - List of wires, most signficant first, to be concatenated.
- Returns:
- A new wire that is the bit-wise concatenation of the parameters.
concat
public Wire concat(Wire w1,
Wire w2,
Wire w3,
Wire w4,
Wire w5,
Wire w6,
Wire w7,
String name)
- Returns a new wire that is the concatenation of the wire parameter, with name given by the
String parameter.
- Parameters:
- name -
String name for the new wire.
- w1-w7 - List of wires, most signficant first, to be concatenated.
- Returns:
- A new wire that is the bit-wise concatenation of the parameters.
concat
public Wire concat(Wire w1,
Wire w2,
Wire w3,
Wire w4,
Wire w5,
Wire w6,
Wire w7,
Wire w8)
- Returns a new wire that is the concatenation of the input parameter wires.
- Parameters:
- w1-w8 - List of wires, most signficant first, to be concatenated.
- Returns:
- A new wire that is the bit-wise concatenation of the parameters.
concat
public Wire concat(Wire w1,
Wire w2,
Wire w3,
Wire w4,
Wire w5,
Wire w6,
Wire w7,
Wire w8,
String name)
- Returns a new wire that is the concatenation of the wire parameter, with name given by the
String parameter.
- Parameters:
- name -
String name for the new wire.
- w1-w8 - List of wires, most signficant first, to be concatenated.
- Returns:
- A new wire that is the bit-wise concatenation of the parameters.
concat
public Wire concat(Wire w1,
Wire w2,
Wire w3,
Wire w4,
Wire w5,
Wire w6,
Wire w7,
Wire w8,
Wire w9)
- Returns a new wire that is the concatenation of the input parameter wires.
- Parameters:
- w1-w9 - List of wires, most signficant first, to be concatenated.
- Returns:
- A new wire that is the bit-wise concatenation of the parameters.
concat
public Wire concat(Wire w1,
Wire w2,
Wire w3,
Wire w4,
Wire w5,
Wire w6,
Wire w7,
Wire w8,
Wire w9,
String name)
- Returns a new wire that is the concatenation of the wire parameter, with name given by the
String parameter.
- Parameters:
- name -
String name for the new wire.
- w1-w9 - List of wires, most signficant first, to be concatenated.
- Returns:
- A new wire that is the bit-wise concatenation of the parameters.
concat
public Wire concat(Wire w1,
Wire w2,
Wire w3,
Wire w4,
Wire w5,
Wire w6,
Wire w7,
Wire w8,
Wire w9,
Wire w10)
- Returns a new wire that is the concatenation of the input parameter wires.
- Parameters:
- w1-w10 - List of wires, most signficant first, to be concatenated.
- Returns:
- A new wire that is the bit-wise concatenation of the parameters.
concat
public Wire concat(Wire w1,
Wire w2,
Wire w3,
Wire w4,
Wire w5,
Wire w6,
Wire w7,
Wire w8,
Wire w9,
Wire w10,
String name)
- Returns a new wire that is the concatenation of the wire parameter, with name given by the
String parameter.
- Parameters:
- name -
String name for the new wire.
- w1-w10 - List of wires, most signficant first, to be concatenated.
- Returns:
- A new wire that is the bit-wise concatenation of the parameters.
concat
public Wire concat(Wire w1,
Wire w2,
Wire w3,
Wire w4,
Wire w5,
Wire w6,
Wire w7,
Wire w8,
Wire w9,
Wire w10,
Wire w11)
- Returns a new wire that is the concatenation of the input parameter wires.
- Parameters:
- w1-w11 - List of wires, most signficant first, to be concatenated.
- Returns:
- A new wire that is the bit-wise concatenation of the parameters.
concat
public Wire concat(Wire w1,
Wire w2,
Wire w3,
Wire w4,
Wire w5,
Wire w6,
Wire w7,
Wire w8,
Wire w9,
Wire w10,
Wire w11,
String name)
- Returns a new wire that is the concatenation of the wire parameter, with name given by the
String parameter.
- Parameters:
- name -
String name for the new wire.
- w1-w11 - List of wires, most signficant first, to be concatenated.
- Returns:
- A new wire that is the bit-wise concatenation of the parameters.
concat
public Wire concat(Wire w1,
Wire w2,
Wire w3,
Wire w4,
Wire w5,
Wire w6,
Wire w7,
Wire w8,
Wire w9,
Wire w10,
Wire w11,
Wire w12)
- Returns a new wire that is the concatenation of the input parameter wires.
- Parameters:
- w1-w12 - List of wires, most signficant first, to be concatenated.
- Returns:
- A new wire that is the bit-wise concatenation of the parameters.
concat
public Wire concat(Wire w1,
Wire w2,
Wire w3,
Wire w4,
Wire w5,
Wire w6,
Wire w7,
Wire w8,
Wire w9,
Wire w10,
Wire w11,
Wire w12,
String name)
- Returns a new wire that is the concatenation of the wire parameter, with name given by the
String parameter.
- Parameters:
- name -
String name for the new wire.
- w1-w12 - List of wires, most signficant first, to be concatenated.
- Returns:
- A new wire that is the bit-wise concatenation of the parameters.
concat
public Wire concat(Wire w1,
Wire w2,
Wire w3,
Wire w4,
Wire w5,
Wire w6,
Wire w7,
Wire w8,
Wire w9,
Wire w10,
Wire w11,
Wire w12,
Wire w13)
- Returns a new wire that is the concatenation of the input parameter wires.
- Parameters:
- w1-w13 - List of wires, most signficant first, to be concatenated.
- Returns:
- A new wire that is the bit-wise concatenation of the parameters.
concat
public Wire concat(Wire w1,
Wire w2,
Wire w3,
Wire w4,
Wire w5,
Wire w6,
Wire w7,
Wire w8,
Wire w9,
Wire w10,
Wire w11,
Wire w12,
Wire w13,
String name)
- Returns a new wire that is the concatenation of the wire parameter, with name given by the
String parameter.
- Parameters:
- name -
String name for the new wire.
- w1-w13 - List of wires, most signficant first, to be concatenated.
- Returns:
- A new wire that is the bit-wise concatenation of the parameters.
concat
public Wire concat(Wire w1,
Wire w2,
Wire w3,
Wire w4,
Wire w5,
Wire w6,
Wire w7,
Wire w8,
Wire w9,
Wire w10,
Wire w11,
Wire w12,
Wire w13,
Wire w14)
- Returns a new wire that is the concatenation of the input parameter wires.
- Parameters:
- w1-w14 - List of wires, most signficant first, to be concatenated.
- Returns:
- A new wire that is the bit-wise concatenation of the parameters.
concat
public Wire concat(Wire w1,
Wire w2,
Wire w3,
Wire w4,
Wire w5,
Wire w6,
Wire w7,
Wire w8,
Wire w9,
Wire w10,
Wire w11,
Wire w12,
Wire w13,
Wire w14,
String name)
- Returns a new wire that is the concatenation of the wire parameter, with name given by the
String parameter.
- Parameters:
- name -
String name for the new wire.
- w1-w14 - List of wires, most signficant first, to be concatenated.
- Returns:
- A new wire that is the bit-wise concatenation of the parameters.
concat
public Wire concat(Wire w1,
Wire w2,
Wire w3,
Wire w4,
Wire w5,
Wire w6,
Wire w7,
Wire w8,
Wire w9,
Wire w10,
Wire w11,
Wire w12,
Wire w13,
Wire w14,
Wire w15)
- Returns a new wire that is the concatenation of the input parameter wires.
- Parameters:
- w1-w15 - List of wires, most signficant first, to be concatenated.
- Returns:
- A new wire that is the bit-wise concatenation of the parameters.
concat
public Wire concat(Wire w1,
Wire w2,
Wire w3,
Wire w4,
Wire w5,
Wire w6,
Wire w7,
Wire w8,
Wire w9,
Wire w10,
Wire w11,
Wire w12,
Wire w13,
Wire w14,
Wire w15,
String name)
- Returns a new wire that is the concatenation of the wire parameter, with name given by the
String parameter.
- Parameters:
- name -
String name for the new wire.
- w1-w15 - List of wires, most signficant first, to be concatenated.
- Returns:
- A new wire that is the bit-wise concatenation of the parameters.
concat
public Wire concat(Wire w1,
Wire w2,
Wire w3,
Wire w4,
Wire w5,
Wire w6,
Wire w7,
Wire w8,
Wire w9,
Wire w10,
Wire w11,
Wire w12,
Wire w13,
Wire w14,
Wire w15,
Wire w16)
- Returns a new wire that is the concatenation of the input parameter wires.
- Parameters:
- w1-w16 - List of wires, most signficant first, to be concatenated.
- Returns:
- A new wire that is the bit-wise concatenation of the parameters.
concat
public Wire concat(Wire w1,
Wire w2,
Wire w3,
Wire w4,
Wire w5,
Wire w6,
Wire w7,
Wire w8,
Wire w9,
Wire w10,
Wire w11,
Wire w12,
Wire w13,
Wire w14,
Wire w15,
Wire w16,
String name)
- Returns a new wire that is the concatenation of the wire parameter, with name given by the
String parameter.
- Parameters:
- name -
String name for the new wire.
- w1-w16 - List of wires, most signficant first, to be concatenated.
- Returns:
- A new wire that is the bit-wise concatenation of the parameters.
concat
public static Wire concat(Cell parent,
Wire w1,
Wire w2)
- Returns a new wire that is the concatenation of the input
parameter wires. For example, if
foo and
bar are 3-bit wires, and pie is a 2-bit
wire, then concat(foo, bar, pie) returns a new
wire that is composed as follows, most significant bit first:
foo[2], foo[1], foo[0], bar[2], bar[1], bar[0], pie[1],
pie[0].
- Parameters:
- parent - The cell to be used as the parent of the wire
- w1-w2 - List of wires, most signficant first, to be concatenated.
- Returns:
- A new wire that is the bit-wise concatenation of the parameters.
concat
public static Wire concat(Cell parent,
Wire w1,
Wire w2,
String name)
- Returns a new wire that is the concatenation of the wire
parameter, with name given by the
String parameter.
For example, if foo and bar are 3-bit
wires, and pie is a 2-bit wire, then
concat(foo, bar, pie) returns a new wire that is composed
as follows, most significant bit first: foo[2], foo[1],
foo[0], bar[2], bar[1], bar[0], pie[1], pie[0].
- Parameters:
- parent - The cell to be used as the parent of the wire
- name -
String name for the new wire.
- w1-w2 - List of wires, most signficant first, to be concatenated.
- Returns:
- A new wire that is the bit-wise concatenation of the parameters.
concat
public static Wire concat(Cell parent,
Wire w1,
Wire w2,
Wire w3)
- Returns a new wire that is the concatenation of the input parameter wires.
- Parameters:
- parent - The cell to be used as the parent of the wire
- w1-w3 - List of wires, most signficant first, to be concatenated.
- Returns:
- A new wire that is the bit-wise concatenation of the parameters.
concat
public static Wire concat(Cell parent,
Wire w1,
Wire w2,
Wire w3,
String name)
- Returns a new wire that is the concatenation of the wire parameter, with name given by the
String parameter.
- Parameters:
- parent - The cell to be used as the parent of the wire
- name -
String name for the new wire.
- w1-w3 - List of wires, most signficant first, to be concatenated.
- Returns:
- A new wire that is the bit-wise concatenation of the parameters.
concat
public static Wire concat(Cell parent,
Wire w1,
Wire w2,
Wire w3,
Wire w4)
- Returns a new wire that is the concatenation of the input parameter wires.
- Parameters:
- parent - The cell to be used as the parent of the wire
- w1-w4 - List of wires, most signficant first, to be concatenated.
- Returns:
- A new wire that is the bit-wise concatenation of the parameters.
concat
public static Wire concat(Cell parent,
Wire w1,
Wire w2,
Wire w3,
Wire w4,
String name)
- Returns a new wire that is the concatenation of the wire parameter, with name given by the
String parameter.
- Parameters:
- parent - The cell to be used as the parent of the wire
- name -
String name for the new wire.
- w1-w4 - List of wires, most signficant first, to be concatenated.
- Returns:
- A new wire that is the bit-wise concatenation of the parameters.
concat
public static Wire concat(Cell parent,
Wire w1,
Wire w2,
Wire w3,
Wire w4,
Wire w5)
- Returns a new wire that is the concatenation of the input parameter wires.
- Parameters:
- parent - The cell to be used as the parent of the wire
- w1-w5 - List of wires, most signficant first, to be concatenated.
- Returns:
- A new wire that is the bit-wise concatenation of the parameters.
concat
public static Wire concat(Cell parent,
Wire w1,
Wire w2,
Wire w3,
Wire w4,
Wire w5,
String name)
- Returns a new wire that is the concatenation of the wire parameter, with name given by the
String parameter.
- Parameters:
- parent - The cell to be used as the parent of the wire
- name -
String name for the new wire.
- w1-w5 - List of wires, most signficant first, to be concatenated.
- Returns:
- A new wire that is the bit-wise concatenation of the parameters.
concat
public static Wire concat(Cell parent,
Wire w1,
Wire w2,
Wire w3,
Wire w4,
Wire w5,
Wire w6)
- Returns a new wire that is the concatenation of the input parameter wires.
- Parameters:
- parent - The cell to be used as the parent of the wire
- w1-w6 - List of wires, most signficant first, to be concatenated.
- Returns:
- A new wire that is the bit-wise concatenation of the parameters.
concat
public static Wire concat(Cell parent,
Wire w1,
Wire w2,
Wire w3,
Wire w4,
Wire w5,
Wire w6,
String name)
- Returns a new wire that is the concatenation of the wire parameter, with name given by the
String parameter.
- Parameters:
- parent - The cell to be used as the parent of the wire
- name -
String name for the new wire.
- w1-w6 - List of wires, most signficant first, to be concatenated.
- Returns:
- A new wire that is the bit-wise concatenation of the parameters.
concat
public static Wire concat(Cell parent,
Wire w1,
Wire w2,
Wire w3,
Wire w4,
Wire w5,
Wire w6,
Wire w7)
- Returns a new wire that is the concatenation of the input parameter wires.
- Parameters:
- parent - The cell to be used as the parent of the wire
- w1-w7 - List of wires, most signficant first, to be concatenated.
- Returns:
- A new wire that is the bit-wise concatenation of the parameters.
concat
public static Wire concat(Cell parent,
Wire w1,
Wire w2,
Wire w3,
Wire w4,
Wire w5,
Wire w6,
Wire w7,
String name)
- Returns a new wire that is the concatenation of the wire parameter, with name given by the
String parameter.
- Parameters:
- parent - The cell to be used as the parent of the wire
- name -
String name for the new wire.
- w1-w7 - List of wires, most signficant first, to be concatenated.
- Returns:
- A new wire that is the bit-wise concatenation of the parameters.
concat
public static Wire concat(Cell parent,
Wire w1,
Wire w2,
Wire w3,
Wire w4,
Wire w5,
Wire w6,
Wire w7,
Wire w8)
- Returns a new wire that is the concatenation of the input parameter wires.
- Parameters:
- parent - The cell to be used as the parent of the wire
- w1-w8 - List of wires, most signficant first, to be concatenated.
- Returns:
- A new wire that is the bit-wise concatenation of the parameters.
concat
public static Wire concat(Cell parent,
Wire w1,
Wire w2,
Wire w3,
Wire w4,
Wire w5,
Wire w6,
Wire w7,
Wire w8,
String name)
- Returns a new wire that is the concatenation of the wire parameter, with name given by the
String parameter.
- Parameters:
- parent - The cell to be used as the parent of the wire
- name -
String name for the new wire.
- w1-w8 - List of wires, most signficant first, to be concatenated.
- Returns:
- A new wire that is the bit-wise concatenation of the parameters.
concat
public static Wire concat(Cell parent,
Wire w1,
Wire w2,
Wire w3,
Wire w4,
Wire w5,
Wire w6,
Wire w7,
Wire w8,
Wire w9)
- Returns a new wire that is the concatenation of the input parameter wires.
- Parameters:
- parent - The cell to be used as the parent of the wire
- w1-w9 - List of wires, most signficant first, to be concatenated.
- Returns:
- A new wire that is the bit-wise concatenation of the parameters.
concat
public static Wire concat(Cell parent,
Wire w1,
Wire w2,
Wire w3,
Wire w4,
Wire w5,
Wire w6,
Wire w7,
Wire w8,
Wire w9,
String name)
- Returns a new wire that is the concatenation of the wire parameter, with name given by the
String parameter.
- Parameters:
- parent - The cell to be used as the parent of the wire
- name -
String name for the new wire.
- w1-w9 - List of wires, most signficant first, to be concatenated.
- Returns:
- A new wire that is the bit-wise concatenation of the parameters.
concat
public static Wire concat(Cell parent,
Wire w1,
Wire w2,
Wire w3,
Wire w4,
Wire w5,
Wire w6,
Wire w7,
Wire w8,
Wire w9,
Wire w10)
- Returns a new wire that is the concatenation of the input parameter wires.
- Parameters:
- parent - The cell to be used as the parent of the wire
- w1-w10 - List of wires, most signficant first, to be concatenated.
- Returns:
- A new wire that is the bit-wise concatenation of the parameters.
concat
public static Wire concat(Cell parent,
Wire w1,
Wire w2,
Wire w3,
Wire w4,
Wire w5,
Wire w6,
Wire w7,
Wire w8,
Wire w9,
Wire w10,
String name)
- Returns a new wire that is the concatenation of the wire parameter, with name given by the
String parameter.
- Parameters:
- parent - The cell to be used as the parent of the wire
- name -
String name for the new wire.
- w1-w10 - List of wires, most signficant first, to be concatenated.
- Returns:
- A new wire that is the bit-wise concatenation of the parameters.
concat
public static Wire concat(Cell parent,
Wire w1,
Wire w2,
Wire w3,
Wire w4,
Wire w5,
Wire w6,
Wire w7,
Wire w8,
Wire w9,
Wire w10,
Wire w11)
- Returns a new wire that is the concatenation of the input parameter wires.
- Parameters:
- parent - The cell to be used as the parent of the wire
- w1-w11 - List of wires, most signficant first, to be concatenated.
- Returns:
- A new wire that is the bit-wise concatenation of the parameters.
concat
public static Wire concat(Cell parent,
Wire w1,
Wire w2,
Wire w3,
Wire w4,
Wire w5,
Wire w6,
Wire w7,
Wire w8,
Wire w9,
Wire w10,
Wire w11,
String name)
- Returns a new wire that is the concatenation of the wire parameter, with name given by the
String parameter.
- Parameters:
- parent - The cell to be used as the parent of the wire
- name -
String name for the new wire.
- w1-w11 - List of wires, most signficant first, to be concatenated.
- Returns:
- A new wire that is the bit-wise concatenation of the parameters.
concat
public static Wire concat(Cell parent,
Wire w1,
Wire w2,
Wire w3,
Wire w4,
Wire w5,
Wire w6,
Wire w7,
Wire w8,
Wire w9,
Wire w10,
Wire w11,
Wire w12)
- Returns a new wire that is the concatenation of the input parameter wires.
- Parameters:
- parent - The cell to be used as the parent of the wire
- w1-w12 - List of wires, most signficant first, to be concatenated.
- Returns:
- A new wire that is the bit-wise concatenation of the parameters.
concat
public static Wire concat(Cell parent,
Wire w1,
Wire w2,
Wire w3,
Wire w4,
Wire w5,
Wire w6,
Wire w7,
Wire w8,
Wire w9,
Wire w10,
Wire w11,
Wire w12,
String name)
- Returns a new wire that is the concatenation of the wire parameter, with name given by the
String parameter.
- Parameters:
- parent - The cell to be used as the parent of the wire
- name -
String name for the new wire.
- w1-w12 - List of wires, most signficant first, to be concatenated.
- Returns:
- A new wire that is the bit-wise concatenation of the parameters.
concat
public static Wire concat(Cell parent,
Wire w1,
Wire w2,
Wire w3,
Wire w4,
Wire w5,
Wire w6,
Wire w7,
Wire w8,
Wire w9,
Wire w10,
Wire w11,
Wire w12,
Wire w13)
- Returns a new wire that is the concatenation of the input parameter wires.
- Parameters:
- parent - The cell to be used as the parent of the wire
- w1-w13 - List of wires, most signficant first, to be concatenated.
- Returns:
- A new wire that is the bit-wise concatenation of the parameters.
concat
public static Wire concat(Cell parent,
Wire w1,
Wire w2,
Wire w3,
Wire w4,
Wire w5,
Wire w6,
Wire w7,
Wire w8,
Wire w9,
Wire w10,
Wire w11,
Wire w12,
Wire w13,
String name)
- Returns a new wire that is the concatenation of the wire parameter, with name given by the
String parameter.
- Parameters:
- parent - The cell to be used as the parent of the wire
- name -
String name for the new wire.
- w1-w13 - List of wires, most signficant first, to be concatenated.
- Returns:
- A new wire that is the bit-wise concatenation of the parameters.
concat
public static Wire concat(Cell parent,
Wire w1,
Wire w2,
Wire w3,
Wire w4,
Wire w5,
Wire w6,
Wire w7,
Wire w8,
Wire w9,
Wire w10,
Wire w11,
Wire w12,
Wire w13,
Wire w14)
- Returns a new wire that is the concatenation of the input parameter wires.
- Parameters:
- parent - The cell to be used as the parent of the wire
- w1-w14 - List of wires, most signficant first, to be concatenated.
- Returns:
- A new wire that is the bit-wise concatenation of the parameters.
concat
public static Wire concat(Cell parent,
Wire w1,
Wire w2,
Wire w3,
Wire w4,
Wire w5,
Wire w6,
Wire w7,
Wire w8,
Wire w9,
Wire w10,
Wire w11,
Wire w12,
Wire w13,
Wire w14,
String name)
- Returns a new wire that is the concatenation of the wire parameter, with name given by the
String parameter.
- Parameters:
- parent - The cell to be used as the parent of the wire
- name -
String name for the new wire.
- w1-w14 - List of wires, most signficant first, to be concatenated.
- Returns:
- A new wire that is the bit-wise concatenation of the parameters.
concat
public static Wire concat(Cell parent,
Wire w1,
Wire w2,
Wire w3,
Wire w4,
Wire w5,
Wire w6,
Wire w7,
Wire w8,
Wire w9,
Wire w10,
Wire w11,
Wire w12,
Wire w13,
Wire w14,
Wire w15)
- Returns a new wire that is the concatenation of the input parameter wires.
- Parameters:
- parent - The cell to be used as the parent of the wire
- w1-w15 - List of wires, most signficant first, to be concatenated.
- Returns:
- A new wire that is the bit-wise concatenation of the parameters.
concat
public static Wire concat(Cell parent,
Wire w1,
Wire w2,
Wire w3,
Wire w4,
Wire w5,
Wire w6,
Wire w7,
Wire w8,
Wire w9,
Wire w10,
Wire w11,
Wire w12,
Wire w13,
Wire w14,
Wire w15,
String name)
- Returns a new wire that is the concatenation of the wire parameter, with name given by the
String parameter.
- Parameters:
- parent - The cell to be used as the parent of the wire
- name -
String name for the new wire.
- w1-w15 - List of wires, most signficant first, to be concatenated.
- Returns:
- A new wire that is the bit-wise concatenation of the parameters.
concat
public static Wire concat(Cell parent,
Wire w1,
Wire w2,
Wire w3,
Wire w4,
Wire w5,
Wire w6,
Wire w7,
Wire w8,
Wire w9,
Wire w10,
Wire w11,
Wire w12,
Wire w13,
Wire w14,
Wire w15,
Wire w16)
- Returns a new wire that is the concatenation of the input parameter wires.
- Parameters:
- parent - The cell to be used as the parent of the wire
- w1-w16 - List of wires, most signficant first, to be concatenated.
- Returns:
- A new wire that is the bit-wise concatenation of the parameters.
concat
public static Wire concat(Cell parent,
Wire w1,
Wire w2,
Wire w3,
Wire w4,
Wire w5,
Wire w6,
Wire w7,
Wire w8,
Wire w9,
Wire w10,
Wire w11,
Wire w12,
Wire w13,
Wire w14,
Wire w15,
Wire w16,
String name)
- Returns a new wire that is the concatenation of the wire parameter, with name given by the
String parameter.
- Parameters:
- parent - The cell to be used as the parent of the wire
- name -
String name for the new wire.
- w1-w16 - List of wires, most signficant first, to be concatenated.
- Returns:
- A new wire that is the bit-wise concatenation of the parameters.
nc
public Wire nc()
- Constructs a "dangling output" wire of width 1. This can be used
to fulfill port requirements in simulation, but leave the port
dangling in the target netlist.
- Returns:
- A new "dangling output" wire.
nc
public Wire nc(int width)
- Constructs a "dangling output" wire of width width.
This can be used to fulfill
port requirements in simulation, but leave the port dangling in
the target netlist.
- Parameters:
- width - Width of wire to create.
- Returns:
- A new "dangling output" wire.
constant
public Wire constant(int width,
int value,
String name)
- Constructs a new named wire of width width, driven with constant
value value. Constant value must be representable with
width bits.
- Parameters:
- width - Width of wire to create.
- value - Constant value to assign to wire.
- name - String name to assign to the new wire
- Returns:
- A new wire of width width, driven by
constant value value.
constant
public Wire constant(int width,
long value,
String name)
- Constructs a new named wire of width width, driven with constant
value value. Constant value must be representable with
width bits.
- Parameters:
- width - Width of wire to create.
- value - Constant value to assign to wire.
- name - String name to assign to the new wire
- Returns:
- A new wire of width width, driven by
constant value value.
constant
public Wire constant(int width,
int value[],
String name)
- Constructs a new named wire of width width, driven with constant
value value. Constant value must be representable with
width bits.
- Parameters:
- width - Width of wire to create.
- value - Constant value to assign to wire.
- name - String name to assign to the new wire
- Returns:
- A new wire of width width, driven by
constant value value.
constant
public Wire constant(int width,
int value)
- Constructs a new wire of width width, driven with constant
value value. Constant value must be representable with
width bits.
- Parameters:
- width - Width of wire to create.
- value - Constant value to assign to wire.
- Returns:
- A new wire of width width, driven by
constant value value.
constant
public Wire constant(int width,
long value)
- Constructs a new wire of width width, driven with constant
value value. Constant value must be representable with
width bits.
- Parameters:
- width - Width of wire to create.
- value - Constant value to assign to wire.
- Returns:
- A new wire of width width, driven by
constant value value.
constant
public Wire constant(int width,
int value[])
- Constructs a new wire of width width, driven with constant
value value. Constant value must be representable with
width bits.
- Parameters:
- width - Width of wire to create.
- value - Constant value to assign to wire.
- Returns:
- A new wire of width width, driven by
constant value value.
constant_o
public Wire constant_o(Wire o,
int value)
- Drives the constant value value onto the wire parameter.
Constant value must be representable by the signal width of
o.
- Parameters:
- value - Constant value to assign to wire.
- o - Wire to be driven with value value.
- Returns:
- o wire.
constant_o
public Wire constant_o(Wire o,
long value)
- Drives the constant value value onto the wire parameter.
Constant value must be representable by the signal width of
o.
- Parameters:
- value - Constant value to assign to wire.
- o - Wire to be driven with value value.
- Returns:
- o wire.
constant_o
public Wire constant_o(Wire o,
int value[])
- Drives the constant value value onto the wire parameter.
Constant value must be representable by the signal width of
o.
- Parameters:
- value - Constant value to assign to wire.
- o - Wire to be driven with value value.
- Returns:
- o wire.
constant_o
public Wire constant_o(Wire o,
int value,
String name)
- Drives the constant value value onto the wire parameter.
Constant value must be representable by the signal width of
o.
- Parameters:
- value - Constant value to assign to wire.
- o - Wire to be driven with value value.
- name - Name for constant cell
- Returns:
- o wire.
constant_o
public Wire constant_o(Wire o,
long value,
String name)
- Drives the constant value value onto the wire parameter.
Constant value must be representable by the signal width of
o.
- Parameters:
- value - Constant value to assign to wire.
- o - Wire to be driven with value value.
- name - Name for constant cell
- Returns:
- o wire.
constant_o
public Wire constant_o(Wire o,
int value[],
String name)
- Drives the constant value value onto the wire parameter.
Constant value must be representable by the signal width of
o.
- Parameters:
- value - Constant value to assign to wire.
- o - Wire to be driven with value value.
- name - Name for constant cell
- Returns:
- o wire.
constant
public static Wire constant(Cell parent,
int width,
int value,
String name)
- Constructs a new named wire of width width, driven with constant
value value. Constant value must be representable with
width bits.
- Parameters:
- parent - The cell to be used as parent.
- width - Width of wire to create.
- value - Constant value to assign to wire.
- name - String name to assign to the new wire
- Returns:
- A new wire of width width, driven by
constant value value.
constant
public static Wire constant(Cell parent,
int width,
long value,
String name)
- Constructs a new named wire of width width, driven with constant
value value. Constant value must be representable with
width bits.
- Parameters:
- parent - The cell to be used as the parent of the wire.
- width - Width of wire to create.
- value - Constant value to assign to wire.
- name - String name to assign to the new wire
- Returns:
- A new wire of width width, driven by
constant value value.
constant
public static Wire constant(Cell parent,
int width,
int value[],
String name)
- Constructs a new named wire of width width, driven with constant
value value. Constant value must be representable with
width bits.
- Parameters:
- parent - The cell to be used as the parent of the wire.
- width - Width of wire to create.
- value - Constant value to assign to wire.
- name - String name to assign to the new wire
- Returns:
- A new wire of width width, driven by
constant value value.
constant
public static Wire constant(Cell parent,
int width,
int value)
- Constructs a new wire of width width, driven with constant
value value. Constant value must be representable with
width bits.
- Parameters:
- parent - The cell to be used as the parent of the wire.
- width - Width of wire to create.
- value - Constant value to assign to wire.
- Returns:
- A new wire of width width, driven by
constant value value.
constant
public static Wire constant(Cell parent,
int width,
long value)
- Constructs a new wire of width width, driven with constant
value value. Constant value must be representable with
width bits.
- Parameters:
- parent - The cell to be used as the parent of the wire.
- width - Width of wire to create.
- value - Constant value to assign to wire.
- Returns:
- A new wire of width width, driven by
constant value value.
constant
public static Wire constant(Cell parent,
int width,
int value[])
- Constructs a new wire of width width, driven with constant
value value. Constant value must be representable with
width bits.
- Parameters:
- parent - The cell to be used as the parent of the wire.
- width - Width of wire to create.
- value - Constant value to assign to wire.
- Returns:
- A new wire of width width, driven by
constant value value.
constant_o
public static Wire constant_o(Cell parent,
Wire o,
int value)
- Drives the constant value value onto the wire parameter.
Constant value must be representable by the signal width of
o.
- Parameters:
- parent - The cell to be used as the parent of the wire.
- value - Constant value to assign to wire.
- o - Wire to be driven with value value.
- Returns:
- o wire.
constant_o
public static Wire constant_o(Cell parent,
Wire o,
long value)
- Drives the constant value value onto the wire parameter.
Constant value must be representable by the signal width of
o.
- Parameters:
- parent - The cell to be used as the parent of the wire.
- value - Constant value to assign to wire.
- o - Wire to be driven with value value.
- Returns:
- o wire.
constant_o
public static Wire constant_o(Cell parent,
Wire o,
int value[])
- Drives the constant value value onto the wire parameter.
Constant value must be representable by the signal width of
o.
- Parameters:
- parent - The cell to be used as the parent of the wire.
- value - Constant value to assign to wire.
- o - Wire to be driven with value value.
- Returns:
- o wire.
constant_o
public static Wire constant_o(Cell parent,
Wire o,
int value,
String name)
- Drives the constant value value onto the wire parameter.
Constant value must be representable by the signal width of
o.
- Parameters:
- parent - The cell to be used as the parent of the wire.
- value - Constant value to assign to wire.
- o - Wire to be driven with value value.
- name - Name for constant cell
- Returns:
- o wire.
constant_o
public static Wire constant_o(Cell parent,
Wire o,
long value,
String name)
- Drives the constant value value onto the wire parameter.
Constant value must be representable by the signal width of
o.
- Parameters:
- parent - The cell to be used as the parent of the wire.
- value - Constant value to assign to wire.
- o - Wire to be driven with value value.
- name - Name for constant cell
- Returns:
- o wire.
constant_o
public static Wire constant_o(Cell parent,
Wire o,
int value[],
String name)
- Drives the constant value value onto the wire parameter.
Constant value must be representable by the signal width of
o.
- Parameters:
- parent - The cell to be used as the parent of the wire.
- value - Constant value to assign to wire.
- o - Wire to be driven with value value.
- name - Name for constant cell
- Returns:
- o wire.
ashiftr
public Wire ashiftr(Wire in,
int shift)
- Returns an arithmetically-right-shifted version of the input wire
parameter, with a new wire as its output. Returns the new output
wire. Valid signal widths: any.
- Parameters:
- in - Input wire to be shifted.
- shift - Amount to shift.
- Returns:
- A new Wire which is the shifted version of the
input.
shiftr
public Wire shiftr(Wire in,
int shift)
- Returns an logically-right-shifted version of the input wire
parameter, with a new wire as its output. Returns the new output
wire. Valid signal widths: any.
- Parameters:
- in - Input wire to be shifted.
- shift - Amount to shift.
- Returns:
- A new Wire which is the shifted version of the
input.
shiftl
public Wire shiftl(Wire in,
int shift)
- Returns an left-shifted version of the input wire
parameter, with a new wire as its output. Returns the new output
wire. Valid signal widths: any.
- Parameters:
- in - Input wire to be shifted.
- shift - Amount to shift.
- Returns:
- A new Wire which is the shifted version of the
input.
ashiftr_o
public Wire ashiftr_o(Wire in,
int shift,
Wire out)
- Returns an arithmetically-right-shifted version of the input wire
parameter. Returns the output wire. Valid signal widths: any.
- Parameters:
- in - Input wire to be shifted.
- shift - Amount to shift.
- out - Output wire
- Returns:
- out wire.
input.
shiftr_o
public Wire shiftr_o(Wire in,
int shift,
Wire out)
- Returns an logically-right-shifted version of the input wire
parameter. Returns the new output wire. Valid signal widths: any.
- Parameters:
- in - Input wire to be shifted.
- shift - Amount to shift.
- out - Output wire
- Returns:
- out wire.
input.
shiftl_o
public Wire shiftl_o(Wire in,
int shift,
Wire out)
- Returns an left-shifted version of the input wire
parameter. Returns the new output wire. Valid signal widths: any.
- Parameters:
- in - Input wire to be shifted.
- shift - Amount to shift.
- out - Output wire
- Returns:
- out wire.
input.
rom
public Wire rom(Wire addr,
int width,
long init[])
- Instantiates a ROM with the given
long[] array as
the initialization values, returning a new wire as the data
output. The ROM width is determined by the int
argument that is passed, and the depth is determined by
2^w where w is the width of the address line
parameter. The initialization array contains the initialization
for address 0 at index 0, etc. Currently the memories have a
maximum width of 64 bits.
- Parameters:
- addr - The address signal.
- width - The desired width of the ROM.
- init - The ROM initialization contents
- Returns:
- The data output signal.
rom
public Wire rom(Wire addr,
int width,
long init[],
String name)
- Instantiates a named ROM with the given
long[]
array as the initialization values, returning a new wire as the
data output. The ROM width is determined by the
int argument that is passed, and the depth is
determined by 2^w where w is the width of
the address line parameter. The initialization array contains
the initialization for address 0 at index 0, etc. Currently the
memories have a maximum width of 64 bits.
- Parameters:
- addr - The address signal.
- width - The desired width of the ROM.
- init - The ROM initialization contents.
- name - The instance name of the ROM.
- Returns:
- The data output signal.
rom_o
public Wire rom_o(Wire addr,
Wire o,
long init[])
- Instantiates a ROM with the given
long[] array as
the initialization values. The ROM width is determined by the
data-output wire argument that is passed, and the depth is
determined by 2^w where w is the width of
the address line parameter. The initialization array contains
the initialization for address 0 at index 0, etc. Currently the
memories have a maximum width of 64 bits.
- Parameters:
- addr - The address signal.
- o - The data output signal.
- init - The ROM initialization contents.
- Returns:
- The data output signal.
rom_o
public Wire rom_o(Wire addr,
Wire o,
long init[],
String name)
- Instantiates a named ROM with the given
long[]
array as the initialization values. The ROM width is determined
by the data-output wire argument that is passed, and the depth
is determined by 2^w where w is the width of
the address line parameter. The initialization array contains
the initialization for address 0 at index 0, etc. Currently the
memories have a maximum width of 64 bits.
- Parameters:
- addr - The address signal.
- o - The data output signal.
- init - The ROM initialization contents
- Returns:
- The data output signal.
ram
public Wire ram(Wire din,
Wire we,
Wire addr,
long init[])
- Instantiates an asynchronous RAM with the given
long[] array as the initialization values,
creating a new wire for the data-output signal. The RAM
width is determined by the data-input wire argument that is
passed, and the depth is determined by 2^w where
w is the width of the address line parameter. The
initialization array contains the initialization for address 0
at index 0, etc. RAM writes occur immediately after the
we signal is asserted (high). Currently the
memories have a maximum width of 64 bits.
- Parameters:
- din - The write data.
- we - The RAM write-enable signal.
- addr - The address signal.
- init - The ROM initialization contents.
- Returns:
- The data output signal.
ram
public Wire ram(Wire din,
Wire we,
Wire addr,
long init[],
String name)
- Instantiates a named asynchronous RAM with the given
long[] array as the initialization values, creating
a new wire for the data-output signal. The RAM width is
determined by the data-input wire argument that is passed, and
the depth is determined by 2^w where w is
the width of the address line parameter. The initialization
array contains the initialization for address 0 at index 0, etc.
RAM writes occur immediately after the we signal is
asserted (high). Currently the memories have a maximum width of
64 bits.
- Parameters:
- din - The write data.
- we - The RAM write-enable signal.
- addr - The address signal.
- init - The ROM initialization contents.
- name - The instance name for the RAM.
- Returns:
- The data output signal.
ram_o
public Wire ram_o(Wire din,
Wire we,
Wire addr,
Wire o,
long init[])
- Instantiates an asynchronous RAM with the given
long[] array as the initialization values. The RAM
width is determined by the data-input wire argument that is
passed, and the depth is determined by 2^w where
w is the width of the address line parameter. The
initialization array contains the initialization for address 0
at index 0, etc. RAM writes occur immediately after the
we signal is asserted (high). Currently the
memories have a maximum width of 64 bits.
- Parameters:
- din - The write data.
- we - The RAM write-enable signal.
- addr - The address signal.
- o - The data-output signal.
- init - The ROM initialization contents.
- Returns:
- The data output signal.
ram_o
public Wire ram_o(Wire din,
Wire we,
Wire addr,
Wire o,
long init[],
String name)
- Instantiates a named asynchronous RAM with the given
long[] array as the initialization values. The RAM
width is determined by the data-input wire argument that is
passed, and the depth is determined by 2^w where
w is the width of the address line parameter. The
initialization array contains the initialization for address 0
at index 0, etc. RAM writes occur immediately after the
we signal is asserted (high). Currently the
memories have a maximum width of 64 bits.
- Parameters:
- din - The write data.
- we - The RAM write-enable signal.
- addr - The address signal.
- init - The ROM initialization contents.
- name - The instance name for the RAM.
- Returns:
- The data output signal.
rams
public Wire rams(Wire din,
Wire we,
Wire addr,
long init[])
- Instantiates a synchronous RAM with the given
long[] array as the initialization values,
creating a new wire for the data-output signal. The RAM
width is determined by the data-input wire argument that is
passed, and the depth is determined by 2^w where
w is the width of the address line parameter. The
initialization array contains the initialization for address 0
at index 0, etc. RAM reads are asynchronous, triggered only by
the address line. RAM writes occur on a rising clock edge when
the we signal is asserted (high). Currently the
memories have a maximum width of 64 bits.
- Parameters:
- din - The write data.
- we - The RAM write-enable signal.
- addr - The address signal.
- init - The ROM initialization contents.
- Returns:
- The data output signal.
rams
public Wire rams(Wire din,
Wire we,
Wire addr,
long init[],
String name)
- Instantiates a named synchronous RAM with the given
long[] array as the initialization values, creating
a new wire for the data-output signal. The RAM width is
determined by the data-input wire argument that is passed, and
the depth is determined by 2^w where w is
the width of the address line parameter. The initialization
array contains the initialization for address 0 at index 0, etc.
RAM reads are asynchronous, triggered only by the address line.
RAM writes occur on a rising clock edge when the we
signal is asserted (high). Currently the memories have a
maximum width of 64 bits.
- Parameters:
- din - The write data.
- we - The RAM write-enable signal.
- addr - The address signal.
- init - The ROM initialization contents.
- name - The instance name for the RAM.
- Returns:
- The data output signal.
rams_o
public Wire rams_o(Wire din,
Wire we,
Wire addr,
Wire o,
long init[])
- Instantiates a synchronous RAM with the given
long[] array as the initialization values. The RAM
width is determined by the data-input wire argument that is
passed, and the depth is determined by 2^w where
w is the width of the address line parameter. The
initialization array contains the initialization for address 0
at index 0, etc. RAM reads are asynchronous, triggered only by
the address line. RAM writes occur on a rising clock edge when
the we signal is asserted (high). Currently the
memories have a maximum width of 64 bits.
- Parameters:
- din - The write data.
- we - The RAM write-enable signal.
- addr - The address signal.
- o - The data-output signal.
- init - The ROM initialization contents.
- Returns:
- The data output signal.
rams_o
public Wire rams_o(Wire din,
Wire we,
Wire addr,
Wire o,
long init[],
String name)
- Instantiates a named synchronous RAM with the given
long[] array as the initialization values. The RAM
width is determined by the data-input wire argument that is
passed, and the depth is determined by 2^w where
w is the width of the address line parameter. The
initialization array contains the initialization for address 0
at index 0, etc. RAM reads are asynchronous, triggered only by
the address line. RAM writes occur on a rising clock edge when
the we signal is asserted (high). Currently the
memories have a maximum width of 64 bits.
- Parameters:
- din - The write data.
- we - The RAM write-enable signal.
- addr - The address signal.
- init - The ROM initialization contents.
- name - The instance name for the RAM.
- Returns:
- The data output signal.
ram
public Wire ram(Wire din,
Wire we,
Wire addr)
- Instantiates an asynchronous RAM initialized to all zeros,
creating a new wire for the data-output signal. The RAM
width is determined by the data-input wire argument that is
passed, and the depth is determined by
2^w where
w is the width of the address line parameter. The
initialization array contains the initialization for address 0
at index 0, etc. RAM writes occur immediately after the
we signal is asserted (high). Currently the
memories have a maximum width of 64 bits.
- Parameters:
- din - The write data.
- we - The RAM write-enable signal.
- addr - The address signal.
- Returns:
- The data output signal.
ram
public Wire ram(Wire din,
Wire we,
Wire addr,
String name)
- Instantiates a named asynchronous RAM initialized to all zeros,
creating a new wire for the data-output signal. The RAM width
is determined by the data-input wire argument that is passed,
and the depth is determined by
2^w where w
is the width of the address line parameter. The initialization
array contains the initialization for address 0 at index 0, etc.
RAM writes occur immediately after the we signal is
asserted (high). Currently the memories have a maximum width of
64 bits.
- Parameters:
- din - The write data.
- we - The RAM write-enable signal.
- addr - The address signal.
- name - The instance name for the RAM.
- Returns:
- The data output signal.
ram_o
public Wire ram_o(Wire din,
Wire we,
Wire addr,
Wire o)
- Instantiates an asynchronous RAM initialized to all zeros. The
RAM width is determined by the data-input wire argument that is
passed, and the depth is determined by
2^w where
w is the width of the address line parameter. The
initialization array contains the initialization for address 0
at index 0, etc. RAM writes occur immediately after the
we signal is asserted (high). Currently the
memories have a maximum width of 64 bits.
- Parameters:
- din - The write data.
- we - The RAM write-enable signal.
- addr - The address signal.
- o - The data-output signal.
- Returns:
- The data output signal.
ram_o
public Wire ram_o(Wire din,
Wire we,
Wire addr,
Wire o,
String name)
- Instantiates a named asynchronous RAM initialized to all zeros.
The RAM width is determined by the data-input wire argument that
is passed, and the depth is determined by
2^w where
w is the width of the address line parameter. The
initialization array contains the initialization for address 0
at index 0, etc. RAM writes occur immediately after the
we signal is asserted (high). Currently the
memories have a maximum width of 64 bits.
- Parameters:
- din - The write data.
- we - The RAM write-enable signal.
- addr - The address signal.
- name - The instance name for the RAM.
- Returns:
- The data output signal.
rams
public Wire rams(Wire din,
Wire we,
Wire addr)
- Instantiates a synchronous RAM initialized to all zeros,
creating a new wire for the data-output signal. The RAM
width is determined by the data-input wire argument that is
passed, and the depth is determined by
2^w where
w is the width of the address line parameter. The
initialization array contains the initialization for address 0
at index 0, etc. RAM reads are asynchronous, triggered only by
the address line. RAM writes occur on a rising clock edge when
the we signal is asserted (high). Currently the
memories have a maximum width of 64 bits.
- Parameters:
- din - The write data.
- we - The RAM write-enable signal.
- addr - The address signal.
- Returns:
- The data output signal.
rams
public Wire rams(Wire din,
Wire we,
Wire addr,
String name)
- Instantiates a named synchronous RAM initialized to all zeros,
creating a new wire for the data-output signal. The RAM width
is determined by the data-input wire argument that is passed,
and the depth is determined by
2^w where w
is the width of the address line parameter. The initialization
array contains the initialization for address 0 at index 0, etc.
RAM reads are asynchronous, triggered only by the address line.
RAM writes occur on a rising clock edge when the we
signal is asserted (high). Currently the memories have a
maximum width of 64 bits.
- Parameters:
- din - The write data.
- we - The RAM write-enable signal.
- addr - The address signal.
- name - The instance name for the RAM.
- Returns:
- The data output signal.
rams_o
public Wire rams_o(Wire din,
Wire we,
Wire addr,
Wire o)
- Instantiates a synchronous RAM initialized to all zeros. The RAM
width is determined by the data-input wire argument that is
passed, and the depth is determined by
2^w where
w is the width of the address line parameter. The
initialization array contains the initialization for address 0
at index 0, etc. RAM reads are asynchronous, triggered only by
the address line. RAM writes occur on a rising clock edge when
the we signal is asserted (high). Currently the
memories have a maximum width of 64 bits.
- Parameters:
- din - The write data.
- we - The RAM write-enable signal.
- addr - The address signal.
- o - The data-output signal.
- Returns:
- The data output signal.
rams_o
public Wire rams_o(Wire din,
Wire we,
Wire addr,
Wire o,
String name)
- Instantiates a named synchronous RAM initialized to all zeros.
The RAM width is determined by the data-input wire argument that
is passed, and the depth is determined by
2^w where
w is the width of the address line parameter. The
initialization array contains the initialization for address 0
at index 0, etc. RAM reads are asynchronous, triggered only by
the address line. RAM writes occur on a rising clock edge when
the we signal is asserted (high). Currently the
memories have a maximum width of 64 bits.
- Parameters:
- din - The write data.
- we - The RAM write-enable signal.
- addr - The address signal.
- name - The instance name for the RAM.
- Returns:
- The data output signal.
range
public Wire range(Wire src,
int hi,
int lo)
- Returns the sub-range of bits, [hi, lo] (inclusive) from a bus.
- Parameters:
- src - Source wire.
- hi - Highest-order bit to retrieve (inclusive).
- lo - Lowest-order bit to retrieve (inclusive).
- Returns:
- A new Wire composed only of the bits in the
subrange.
map
public Cell map(Wire i1,
Wire o)
- Attempts to map given wires to a single architectural
"primitive" in the target device. This call is interpreted as
appropriate by the TechMapper object associated with this Logic
object.
- Parameters:
- i1 - Input 1 to "primitive".
- o - Output to "primitive".
map
public Cell map(Wire i1,
Wire i2,
Wire o)
- Attempts to map given wires to a single architectural
"primitive" in the target device. This call is interpreted as
appropriate by the TechMapper object associated with this Logic
object.
- Parameters:
- i1 - Input 1 to "primitive".
- i2 - Input 2 to "primitive".
- o - Output to "primitive".
map
public Cell map(Wire i1,
Wire i2,
Wire i3,
Wire o)
- Attempts to map given wires to a single architectural
"primitive" in the target device. This call is interpreted as
appropriate by the TechMapper object associated with this Logic
object.
- Parameters:
- i1 - Input 1 to "primitive".
- i2 - Input 2 to "primitive".
- i3 - Input 3 to "primitive".
- o - Output to "primitive".
map
public Cell map(Wire i1,
Wire i2,
Wire i3,
Wire i4,
Wire o)
- Attempts to map given wires to a single architectural
"primitive" in the target device. This call is interpreted as
appropriate by the TechMapper object associated with this Logic
object.
- Parameters:
- i1 - Input 1 to "primitive".
- i2 - Input 2 to "primitive".
- i3 - Input 3 to "primitive".
- i4 - Input 4 to "primitive".
- o - Output to "primitive".
map
public Cell map(Wire i1,
Wire i2,
Wire i3,
Wire i4,
Wire i5,
Wire o)
- Attempts to map given wires to a single architectural
"primitive" in the target device. This call is interpreted as
appropriate by the TechMapper object associated with this Logic
object.
- Parameters:
- i1 - Input 1 to "primitive".
- i2 - Input 2 to "primitive".
- i3 - Input 3 to "primitive".
- i4 - Input 4 to "primitive".
- i5 - Input 5 to "primitive".
- o - Output to "primitive".
map
public Cell map(Wire i1,
Wire i2,
Wire i3,
Wire i4,
Wire i5,
Wire i6,
Wire o)
- Attempts to map given wires to a single architectural
"primitive" in the target device. This call is interpreted as
appropriate by the TechMapper object associated with this Logic
object.
- Parameters:
- i1 - Input 1 to "primitive".
- i2 - Input 2 to "primitive".
- i3 - Input 3 to "primitive".
- i4 - Input 4 to "primitive".
- i5 - Input 5 to "primitive".
- i6 - Input 6 to "primitive".
- o - Output to "primitive".
map
public Cell map(Wire i1,
Wire i2,
Wire i3,
Wire i4,
Wire i5,
Wire i6,
Wire i7,
Wire o)
- Attempts to map given wires to a single architectural
"primitive" in the target device. This call is interpreted as
appropriate by the TechMapper object associated with this Logic
object.
- Parameters:
- i1 - Input 1 to "primitive".
- i2 - Input 2 to "primitive".
- i3 - Input 3 to "primitive".
- i4 - Input 4 to "primitive".
- i5 - Input 5 to "primitive".
- i6 - Input 6 to "primitive".
- i7 - Input 7 to "primitive".
- o - Output to "primitive".
map
public Cell map(Wire i1,
Wire i2,
Wire i3,
Wire i4,
Wire i5,
Wire i6,
Wire i7,
Wire i8,
Wire o)
- Attempts to map given wires to a single architectural
"primitive" in the target device. This call is interpreted as
appropriate by the TechMapper object associated with this Logic
object.
- Parameters:
- i1 - Input 1 to "primitive".
- i2 - Input 2 to "primitive".
- i3 - Input 3 to "primitive".
- i4 - Input 4 to "primitive".
- i5 - Input 5 to "primitive".
- i6 - Input 6 to "primitive".
- i7 - Input 7 to "primitive".
- i8 - Input 8 to "primitive".
- o - Output to "primitive".
map
public Cell map(Wire i1,
Wire i2,
Wire i3,
Wire i4,
Wire i5,
Wire i6,
Wire i7,
Wire i8,
Wire i9,
Wire o)
- Attempts to map given wires to a single architectural
"primitive" in the target device. This call is interpreted as
appropriate by the TechMapper object associated with this Logic
object.
- Parameters:
- i1 - Input 1 to "primitive".
- i2 - Input 2 to "primitive".
- i3 - Input 3 to "primitive".
- i4 - Input 4 to "primitive".
- i5 - Input 5 to "primitive".
- i6 - Input 6 to "primitive".
- i7 - Input 7 to "primitive".
- i8 - Input 8 to "primitive".
- i9 - Input 9 to "primitive".
- o - Output to "primitive".
map
public Cell map(Wire i1,
Wire o,
String hints)
- Attempts to map given wires to a single architectural
"primitive" in the target device, with
String
hints. The mapping call and hint string are interpreted as
appropriate by the TechMapper object associated with this Logic
object.
- Parameters:
- i1 - Input 1 to "primitive".
- o - Output to "primitive".
map
public Cell map(Wire i1,
Wire i2,
Wire o,
String hints)
- Attempts to map given wires to a single architectural
"primitive" in the target device, with
String
hints. The mapping call and hint string are interpreted as
appropriate by the TechMapper object associated with this Logic
object.
- Parameters:
- i1 - Input 1 to "primitive".
- i2 - Input 2 to "primitive".
- o - Output to "primitive".
map
public Cell map(Wire i1,
Wire i2,
Wire i3,
Wire o,
String hints)
- Attempts to map given wires to a single architectural
"primitive" in the target device, with
String
hints. The mapping call and hint string are interpreted as
appropriate by the TechMapper object associated with this Logic
object.
- Parameters:
- i1 - Input 1 to "primitive".
- i2 - Input 2 to "primitive".
- i3 - Input 3 to "primitive".
- o - Output to "primitive".
map
public Cell map(Wire i1,
Wire i2,
Wire i3,
Wire i4,
Wire o,
String hints)
- Attempts to map given wires to a single architectural
"primitive" in the target device, with
String
hints. The mapping call and hint string are interpreted as
appropriate by the TechMapper object associated with this Logic
object.
- Parameters:
- i1 - Input 1 to "primitive".
- i2 - Input 2 to "primitive".
- i3 - Input 3 to "primitive".
- i4 - Input 4 to "primitive".
- o - Output to "primitive".
map
public Cell map(Wire i1,
Wire i2,
Wire i3,
Wire i4,
Wire i5,
Wire o,
String hints)
- Attempts to map given wires to a single architectural
"primitive" in the target device, with
String
hints. The mapping call and hint string are interpreted as
appropriate by the TechMapper object associated with this Logic
object.
- Parameters:
- i1 - Input 1 to "primitive".
- i2 - Input 2 to "primitive".
- i3 - Input 3 to "primitive".
- i4 - Input 4 to "primitive".
- i5 - Input 5 to "primitive".
- o - Output to "primitive".
map
public Cell map(Wire i1,
Wire i2,
Wire i3,
Wire i4,
Wire i5,
Wire i6,
Wire o,
String hints)
- Attempts to map given wires to a single architectural
"primitive" in the target device, with
String
hints. The mapping call and hint string are interpreted as
appropriate by the TechMapper object associated with this Logic
object.
- Parameters:
- i1 - Input 1 to "primitive".
- i2 - Input 2 to "primitive".
- i3 - Input 3 to "primitive".
- i4 - Input 4 to "primitive".
- i5 - Input 5 to "primitive".
- i6 - Input 6 to "primitive".
- o - Output to "primitive".
map
public Cell map(Wire i1,
Wire i2,
Wire i3,
Wire i4,
Wire i5,
Wire i6,
Wire i7,
Wire o,
String hints)
- Attempts to map given wires to a single architectural
"primitive" in the target device, with
String
hints. The mapping call and hint string are interpreted as
appropriate by the TechMapper object associated with this Logic
object.
- Parameters:
- i1 - Input 1 to "primitive".
- i2 - Input 2 to "primitive".
- i3 - Input 3 to "primitive".
- i4 - Input 4 to "primitive".
- i5 - Input 5 to "primitive".
- i6 - Input 6 to "primitive".
- i7 - Input 7 to "primitive".
- o - Output to "primitive".
map
public Cell map(Wire i1,
Wire i2,
Wire i3,
Wire i4,
Wire i5,
Wire i6,
Wire i7,
Wire i8,
Wire o,
String hints)
- Attempts to map given wires to a single architectural
"primitive" in the target device, with
String
hints. The mapping call and hint string are interpreted as
appropriate by the TechMapper object associated with this Logic
object.
- Parameters:
- i1 - Input 1 to "primitive".
- i2 - Input 2 to "primitive".
- i3 - Input 3 to "primitive".
- i4 - Input 4 to "primitive".
- i5 - Input 5 to "primitive".
- i6 - Input 6 to "primitive".
- i7 - Input 7 to "primitive".
- i8 - Input 8 to "primitive".
- o - Output to "primitive".
map
public Cell map(Wire i1,
Wire i2,
Wire i3,
Wire i4,
Wire i5,
Wire i6,
Wire i7,
Wire i8,
Wire i9,
Wire o,
String hints)
- Attempts to map given wires to a single architectural
"primitive" in the target device, with
String
hints. The mapping call and hint string are interpreted as
appropriate by the TechMapper object associated with this Logic
object.
- Parameters:
- i1 - Input 1 to "primitive".
- i2 - Input 2 to "primitive".
- i3 - Input 3 to "primitive".
- i4 - Input 4 to "primitive".
- i5 - Input 5 to "primitive".
- i6 - Input 6 to "primitive".
- i7 - Input 7 to "primitive".
- i8 - Input 8 to "primitive".
- i9 - Input 9 to "primitive".
- o - Output to "primitive".
place
public void place(Wire out1,
String s)
- Annotates target-specific
String placement hint onto
the Cell which drives the wire parameter. This form is used to
facilitate the placement of cells which are constructed using
other gate-constructing method calls in the Logic class,
as explained above.
The meaning of the placement hint is determined by the TechMapper
associated with this Logic object.
- Parameters:
- out1 - Wire whose driver is the gate to be placed.
- s - Target-specific placement hint string.
place
public void place(Wire out1,
int x,
int y)
- Annotates placement hint (x,y) onto the Cell which drives
wire out1. This form is used to facilitate the placement
of cells which are constructed using other gate-constructing
method calls in the Logic class. For example, the
in the following code we create an and gate and place it, all
without every explicitly referencing the gate itself:
Wire and_out = and ( a, b, c, d );
place ( and_out, 5, 6 );
The meaning of the placement hint is determined by the TechMapper
associated with this Logic object.
- Parameters:
- out1 - Wire whose driver is the gate to be placed.
- x - X-placement hint.
- y - Y-placement hint.
place
public void place(Wire out1,
int x,
int y,
String s)
- Annotates [x,y] placement hint and target-specific
String hint onto the Cell which drives the wire
parameter. This form is used to
facilitate the placement of cells which are constructed using
other gate-constructing method calls in the Logic class,
as explained above.
The meaning of the placement hint is determined by the TechMapper
associated with this Logic object.
- Parameters:
- out1 - Wire whose driver is the gate to be placed.
- x - X-placement hint.
- y - Y-placement hint.
- s - Target-specific placement hint string.
place
public void place(Wire out1,
int x,
int y,
int dx,
int dy)
- Annotates placement hint (x,y) onto the Cell which drives
wire out1. This form is used to facilitate the placement
of cells which are constructed using other gate-constructing
method calls in the Logic class, as explained above.
This
form is used for iteratively placing all the cells that drive the
individual bits of the wire.
The meaning of the placement hint is determined by the TechMapper
associated with this Logic object.
- Parameters:
- out1 - Wire whose driver is the gate to be placed.
- x - X-placement hint.
- y - Y-placement hint.
- dx - X-increment for iterated placement.
- dy - Y-increment for iterated placement.
place
public void place(Wire out1,
int x,
int y,
int dx,
int dy,
String s)
- Note: place() is deprecated.
- Annotates [x,y] placement hint and target-specific
String hint onto the Cell which drives the wire
parameter. This form is used to facilitate the placement of
cells which are constructed using other gate-constructing method
calls in the Logic class, as explained above. This form
is also used for iteratively placing all the cells that drive the
individual bits of the wire. For example, assume that we have
the following code, which instantiates and places 8 bits of
register:
Wire in = wire( 8 );
Wire out = reg( in );
place( in, 0, 0, 1, 3 );
should result in placing the registers in positions (0,0), (1,3),
(2,6), (3,9), ... The meaning of each placement hint is
determined by the TechMapper associated with this Logic
object.
- Parameters:
- out1 - Wire whose driver is the gate to be placed.
- x - X-placement hint.
- y - Y-placement hint.
- dx - X-increment for iterated placement.
- dy - Y-increment for iterated placement.
- s - Target-specific placement hint string.
place
public void place(Cell c,
int x,
int y)
- Annotates [x,y] placement hint onto the Cell parameter.
The meaning of the placement hint is determined by the TechMapper
associated with this Logic object.
- Parameters:
- c - Cell to be placed.
- dx - X-placement hint.
- dy - Y-placement hint.
place
public void place(Cell c,
String s)
- Annotates target-specific
String placement hint onto
the Cell parameter.
The meaning of the placement hint is determined by the TechMapper
associated with this Logic object.
- Parameters:
- c - Cell to be placed.
- s - Target-specific placement hint string.
place
public static void place(Cell c,
int x,
int y,
String s)
- Aqnnotates [x,y] placement hint and target-specific
String hint onto the Cell parameter.
The meaning of the placement hint is determined by the TechMapper
associated with this Logic object.
- Parameters:
- c - Cell to be placed.
- x - X-placement hint.
- y - Y-placement hint.
- s - Target-specific placement hint string.
place
public void place(Wire curr_out,
Directive dir,
Wire prev_out)
- Places the cell associate with curr_out in the direction of dir from prev_out.
This version of the place() method places the cell associated with an output Wire
(curr_out) in the direction of the Directive parameter (dir) from a previously placed
cell using the output Wire (prev_out) of the previously placed Cell.
If the previous Cell was not placed it will get placed at (0,0).
This method will then call a more basic place() method which
will annotate the calculated placement Hint onto that cell and interpret them as
determined by the techmapper.
- Parameters:
- curr_out - The output Wire of the cell to be placed.
- dir - A Directive object that specifies how this cell is to be placed and
aligned relative to the previous cell.
- prev_out - The output Wire of the cell we are placing relative to.
place
public void place(Cell curr_cell,
Directive dir,
Wire prev_out)
- Places curr_cell in the direction of dir from the cell associate with prev_out.
This version of the place() method places the cell (curr_cell) in the direction of
the Directive parameter (dir) from a previously placed
cell using the output Wire (prev_out) of the previously placed Cell.
If the previous Cell was not placed it will get placed at (0,0).
This method will then call a more basic place() method which
will annotate the calculated placement Hint onto this cell and interpret them as
determined by the techmapper.
- Parameters:
- curr_cell - The cell to be placed.
- dir - A Directive object that specifies how this cell is to be placed and
aligned relative to the previous cell.
- prev_out - The output Wire of the cell we are placing relative to.
place
public void place(Wire curr_out,
Directive dir,
Cell prev_cell)
- Places the cell associate with curr_out in the direction of dir from prev_cell.
This version of the place() method places the cell associated with an output Wire
(curr_out) in the direction of the Directive parameter (dir) from a previously placed
cell (prev_cell).
If the previous Cell was not placed it will get placed at (0,0).
This method will then call a more basic place() method which
will annotate the calculated placement Hint onto that cell and interpret them as
determined by the techmapper.
- Parameters:
- curr_out - The output Wire of the cell to be placed.
- dir - A Directive object that specifies how this cell is to be placed and
aligned relative to the previous cell.
- prev_cell - The cell we are placing relative to.
place
public void place(Cell curr_cell,
Directive dir,
Cell prev_cell)
- Places the cell curr_cell in the direction of dir from prev_cell.
This version of the place() method places the cell (curr_out) in the direction
of the Directive parameter (dir) from a previously placed
cell (prev_cell).
If the previous Cell was not placed it will get placed at (0,0).
This method will then call a more basic place() method which
will annotate the calculated placement Hint onto that cell and interpret them as
determined by the techmapper.
- Parameters:
- curr_cell - The cell to be placed.
- dir - A Directive object that specifies how this cell is to be placed and
aligned relative to the previous cell.
- prev_cell - The cell we are placing relative to.
placeInPort
public void placeInPort(Wire inWire,
Wire outCurrWire,
Directive dir)
placeInPort
public void placeInPort(Wire inWire,
Cell curr_cell,
Directive dir)
placeInPort
public void placeInPort(Wire inWire,
Cell curr_cell,
Directive dir,
Wire outWire)
placeInPort
public void placeInPort(Wire inWire,
Cell curr_cell,
Directive dir,
Cell prev_cell)
placeInPort
public void placeInPort(Wire inWire,
Cell curr_cell,
Directive dir,
Wire outWire,
Cell prev_cell)
placeOutPort
public void placeOutPort(Wire outWire,
Cell curr_cell,
Directive dir,
Wire inWire,
Cell prev_cell)
translate
public void translate(Wire w,
int dx,
int dy)
- Translate the source of wire w by dx in the x direction and dy in the
y direction. This is only permitted on a cell that has already been placed
and that is not locked with respect to it's siblings.
- Parameters:
- w - The output wire of the cell to be tranlated.
- dx - How far to translate the cell in the x direction.
- dy - How far to translate the cell in the y direction.
translate
public void translate(Cell c,
int dx,
int dy)
- Translates the specified cell by dx in the x direction and dy in the
y direction. This is only permitted on a cell that has already been placed
and that is not locked with respect to it's siblings.
- Parameters:
- w - The output wire of the cell to be translated.
- dx - How far to translate the cell in the x direction.
- dy - How far to translate the cell in the y direction.
rotate
public void rotate(Wire w,
int degrees)
- Rotates the source of the specified wire by the specifed number of degrees
in a counter-clockwise direction. This is only defined on a cell that has
not already been placed. Only integer degree values between -270 and 360
that are multiples of 90 degrees are currently supported.
- Parameters:
- w - The output wire of the cell to be rotated.
- degrees - How far to rotate the cell in the Counter-clockwise direction.
rotate
public void rotate(Cell c,
int degrees)
- Rotates the specified cell by the specifed number of degrees
in a counter-clockwise direction. This is only defined on a cell that has
not already been placed. Only integer degree values between -270 and 360
that are multiples of 90 degrees are currently supported.
- Parameters:
- c - The cell to be rotated.
- degrees - How far to rotate the cell in the Counter-clockwise direction.
scale
public void scale(Wire w,
int xFact,
int yFact)
- Scales the source of the specified wire by the specifed amount in the x
direction and by the specified amount in the y direction. This is only
defined on a cell that has not already been placed. Only integer values
are currently supported. This scaling will recursively scale all children
of the specified cell by the same amount. However, the interpretation of
the placement values is VERY technology dependant. That is, whether the
JHDL coordinate grid is interpreted as a CLB grid, a Slice grid, or a LUT
grid is based on the techmapper being used. The result of scaling will
also be determined by the techmapper of choice.
- Parameters:
- w - The output wire of the cell to be scaled.
- xFact - How much to scale the cell by in the X direction.
- yFact - How much to scale the cell by in the Y direction.
scale
public void scale(Cell c,
int xFact,
int yFact)
- Scales the specified cell by the specifed amount in the x
direction and by the specified amount in the y direction. This is only
defined on a cell that has not already been placed. Only integer values
are currently supported. This scaling will recursively scale all children
of the specified cell by the same amount. However, the interpretation of
the placement values is VERY technology dependant. That is, whether the
JHDL coordinate grid is interpreted as a CLB grid, a Slice grid, or a LUT
grid is based on the techmapper being used. The result of scaling will
also be determined by the techmapper of choice.
- Parameters:
- w - The output wire of the cell to be scaled.
- xFact - How much to scale the cell by in the X direction.
- yFact - How much to scale the cell by in the Y direction.
setBBox
public static Point setBBox(Cell par)
- This method computes the bounding box of a cell, translates the children of that cell to position the upper left hand corner at (0,0) and returns how far the children were translated. This is done by iterating through the children of a cell and taking the point where each child was placed as the upper left hand corner, and the width and height added to that point to be the lower right hand corner. Then the maximum of the lower right hand x's and the maximum of the lower right hand y's becomes the lower right hand corner of the parent. While the minimum of the upper left corners in x and y becomes the upper left corner of the parent.
Then, if new placement is enabled, it will translate all the children of this cell such that the upper left hand corner is at (0,0) in the JHDL coordinate grid. a Point is returned that corresponds to difference between the cell's origin and the upper left hand corner.
- Parameters:
- par - The cell for which we are computing a bounding box.
- Returns:
- A new Point with the coordinates of the upper left hand
corner relative to the current origin of the cell.
setWandH
protected Point setWandH(Cell par)
lockChildPlacement
public static void lockChildPlacement(Cell c)
- Locks the placement of the children of the specified cell. This means that
in the future if one child is transformed in any way, all children must be
transformed in the same way. In other words, the children of this cell are
locked together.
- Parameters:
- c - The cell whose children will be locked together.
techmap
public void techmap(Object arg)
- Initiates any necessary post-processing steps in the
TechMapper. Generally does not need to be called by the user.
source
public Cell source(Wire w)
- Returns the Cell which is the source for the wire paramater
in the
current level of hierarchy. This is different than the
source nodes listed in the wires sinks/sources list -- for
example, say we have the following:
new adder(a, b, sum); // A structural adder
Cell c = source(sum); // Find the source
In the above example, c will be a reference to the new
adder. If we looked at sum's source nodes, however, we
would only find the individual xor gates, etc. inside the adder
that drive the wire in simulation.
- Parameters:
- w - Wire whose source is to be found.
- Returns:
- The Cell which is the hierarchical source of the wire.
sink
public Cell sink(Wire w,
Cell c)
getSourceCell
public static Cell getSourceCell(Wire w)
- Finds the simulation source of the wire parameter. This is derived
from the sink/source lists in the wire. If multiple drivers are
found, an exception is thrown.
- Parameters:
- w - Wire whose simulation sources is to be found.
- Returns:
- The Cell which is the simulation source of the wire.
getSinkCell
public static Cell getSinkCell(Wire w)
- Finds the simulation sink of the wire parameter. This is derived
from the sink/source lists in the wire. If multiple sinks are
found, an exception is thrown.
- Parameters:
- w - Wire whose simulation sink is to be found.
- Returns:
- The Cell which is the simulation sink of the wire.
getTechMapHint
public String getTechMapHint(Wire w)
- Returns a
String describing the technology mapping
hints for the Cell that is the source for the wire parameter.
Meaning of hint
string is determined by the TechMapper object associated with
this Logic object.
- Parameters:
- w - Wire driven by the desired source Cell.
- Returns:
- Current technology mapping hints associated with the
cell encoded in a target-specific string.
getTechMapHint
public String getTechMapHint(Cell c)
- Returns a
String describing the technology mapping
hints for the Cell parameter. Meaning of hint
string is determined by the TechMapper object associated with
this Logic object.
- Parameters:
- c - Cell whose technology mapping hints are to be returned.
- Returns:
- Current technology mapping hints associated with the
cell encoded in a target-specific string.
printTechMapHints
public void printTechMapHints()
- Debugging method. Prints out TechMapper-specific status string.
All Packages Class Hierarchy This Package Previous Next Index