rearrangement
This commit is contained in:
19
iverilog/tobb/labs/lab2/src/BitM.v
Normal file
19
iverilog/tobb/labs/lab2/src/BitM.v
Normal file
@ -0,0 +1,19 @@
|
||||
module BitM(
|
||||
input A,
|
||||
input B,
|
||||
output AlB,
|
||||
output AeB,
|
||||
output AgB
|
||||
);
|
||||
|
||||
wire An, Bn;
|
||||
|
||||
not n1 (An, A);
|
||||
not n2 (Bn, B);
|
||||
|
||||
and a1 (AlB, An, B);
|
||||
and a2 (AgB, Bn, A);
|
||||
|
||||
nor nor1 (AeB, AlB, AgB);
|
||||
|
||||
endmodule
|
Reference in New Issue
Block a user