mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-13 12:28:44 +00:00
simlib.v: Update case equality operators to v2
Also tag as x-aware cells and add titles.
This commit is contained in:
parent
b1025dbaa6
commit
ed92374263
|
@ -828,11 +828,10 @@ endmodule
|
||||||
|
|
||||||
// --------------------------------------------------------
|
// --------------------------------------------------------
|
||||||
|
|
||||||
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
|
//* ver 2
|
||||||
//-
|
//* title Case equality
|
||||||
//- $eqx (A, B, Y)
|
|
||||||
//* group binary
|
//* group binary
|
||||||
//-
|
//* tags x-aware
|
||||||
//- An exact equality comparison between inputs 'A' and 'B'. Also known as the
|
//- An exact equality comparison between inputs 'A' and 'B'. Also known as the
|
||||||
//- case equality operator. This corresponds to the Verilog '===' operator.
|
//- case equality operator. This corresponds to the Verilog '===' operator.
|
||||||
//- Unlike equality comparison that can give 'x' as output, an exact equality
|
//- Unlike equality comparison that can give 'x' as output, an exact equality
|
||||||
|
@ -863,15 +862,13 @@ endmodule
|
||||||
|
|
||||||
// --------------------------------------------------------
|
// --------------------------------------------------------
|
||||||
|
|
||||||
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
|
//* ver 2
|
||||||
//-
|
//* title Case inequality
|
||||||
//- $nex (A, B, Y)
|
|
||||||
//* group binary
|
//* group binary
|
||||||
//-
|
//* tags x-aware
|
||||||
//- An exact inequality comparison between inputs 'A' and 'B'.
|
|
||||||
//- This corresponds to the Verilog '!==' operator.
|
//- This corresponds to the Verilog '!==' operator.
|
||||||
//- Unlike inequality comparison that can give 'x' as output,
|
//-
|
||||||
//- an exact inequality comparison will strictly give '0' or '1' as output.
|
//- Refer to `$eqx` for more details.
|
||||||
//-
|
//-
|
||||||
module \$nex (A, B, Y);
|
module \$nex (A, B, Y);
|
||||||
|
|
||||||
|
@ -1871,7 +1868,13 @@ endspecify
|
||||||
endmodule
|
endmodule
|
||||||
|
|
||||||
// --------------------------------------------------------
|
// --------------------------------------------------------
|
||||||
|
|
||||||
|
//* ver 2
|
||||||
|
//* title Bit-wise case equality
|
||||||
//* group binary
|
//* group binary
|
||||||
|
//* tags x-aware
|
||||||
|
//- A bit-wise version of `$eqx`.
|
||||||
|
//-
|
||||||
module \$bweqx (A, B, Y);
|
module \$bweqx (A, B, Y);
|
||||||
|
|
||||||
parameter WIDTH = 0;
|
parameter WIDTH = 0;
|
||||||
|
|
Loading…
Reference in a new issue