mirror of
https://github.com/YosysHQ/yosys.git
synced 2026-08-22 14:17:27 +02:00
Add $_ANDNOT_ and $_ORNOT_ gates
This commit is contained in:
@@ -173,6 +173,44 @@ output Y;
|
||||
assign Y = ~(A ^ B);
|
||||
endmodule
|
||||
|
||||
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
|
||||
//-
|
||||
//- $_ANDNOT_ (A, B, Y)
|
||||
//-
|
||||
//- A 2-input AND-NOT gate.
|
||||
//-
|
||||
//- Truth table: A B | Y
|
||||
//- -----+---
|
||||
//- 0 0 | 0
|
||||
//- 0 1 | 0
|
||||
//- 1 0 | 1
|
||||
//- 1 1 | 0
|
||||
//-
|
||||
module \$_ANDNOT_ (A, B, Y);
|
||||
input A, B;
|
||||
output Y;
|
||||
assign Y = A & (~B);
|
||||
endmodule
|
||||
|
||||
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
|
||||
//-
|
||||
//- $_ORNOT_ (A, B, Y)
|
||||
//-
|
||||
//- A 2-input OR-NOT gate.
|
||||
//-
|
||||
//- Truth table: A B | Y
|
||||
//- -----+---
|
||||
//- 0 0 | 1
|
||||
//- 0 1 | 0
|
||||
//- 1 0 | 1
|
||||
//- 1 1 | 1
|
||||
//-
|
||||
module \$_ORNOT_ (A, B, Y);
|
||||
input A, B;
|
||||
output Y;
|
||||
assign Y = A | (~B);
|
||||
endmodule
|
||||
|
||||
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
|
||||
//-
|
||||
//- $_MUX_ (A, B, S, Y)
|
||||
|
||||
Reference in New Issue
Block a user