|
|
|

|
|
|
|
|
|

|
|
 |
Gates Using UDP
|
|
|

|
|
|
|
|
|

|
|
 |
Two Input OR
|
|
|

|
|
|
1 //-----------------------------------------------------
2 // Design Name : or2_input
3 // File Name : or2_input.v
4 // Function : 2 Input OR Gate Using UDP
5 // Coder : Deepak Kumar Tala
6 //-----------------------------------------------------
7 primitive or2_input (c,a,b);
8 output c;
9 input a,b;
10 table
11 //a b : c
12 1 ? : 1;
13 ? 1 : 1;
14 0 0 : 0;
15 0 x : x;
16 x 0 : x;
17 endtable
18 endprimitive
You could download file or2_input.v here
|
|
|

|
|
 |
Two Input XOR
|
|
|

|
|
|
1 primitive xor2_input (c,a,b);
2 output c;
3 input a,b;
4 table
5 0 0 : 0;
6 0 1 : 1;
7 1 0 : 1;
8 1 1 : 0;
9 x 1 : x;
10 1 x : x;
11 x 0 : x;
12 0 x : x;
13 x x : x;
14 endtable
15 endprimitive
You could download file xor2_input.v here
|
|
|

|
|
|

|
|
|

|
|
|
|
|
|

|
|
|
|
|
|

|
|
Copyright © 1998-2025 |
Deepak Kumar Tala - All rights reserved |
Do you have any Comment? mail me at:deepak@asic-world.com
|
|