Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

What are logic gates?

Logic gates are based on the boolean function and carry out logical operations.
These logic gates take a number of inputs (usually 2) and return an output.
Here are some of the examples:

INPUT1	INPUT2		OUTPUT
AND
0 		0   		0
0 		1   		0
1 		0   		0
1 		1   		1
NOT (only 1 input)
0		--			1
1		--			0
OR
0		0			0
0		1			1
1		0			1
1		1			1
XOR
0		0			0
0		1			1
1		0			1
1		1			0
NAND
0		0			1
0		1			1
1		0			1
1		1			0
NOR
0		0			1
0		1			0
1		0			0
1		1			0

Computers use these logic gates to complete many tasks like adding numbers
or storing information (memory).
  
EXAMPLE
Lets say we want to run the inputs 1 and 0 into the XOR function. By doing
this, we would get an output of 1
Comment

What are logic gates?

Logic gates are based on the boolean function and carry out logical operations.
These logic gates take a number of inputs (usually 2) and return an output.
Here are some of the examples:

INPUT1	INPUT2		OUTPUT
AND
0 		0   		0
0 		1   		0
1 		0   		0
1 		1   		1
NOT (only 1 input)
0		--			1
1		--			0
OR
0		0			0
0		1			1
1		0			1
1		1			1
XOR
0		0			0
0		1			1
1		0			1
1		1			0
NAND
0		0			1
0		1			1
1		0			1
1		1			0
NOR
0		0			1
0		1			0
1		0			0
1		1			0

Computers use these logic gates to complete many tasks like adding numbers
or storing information (memory).
  
EXAMPLE
Lets say we want to run the inputs 1 and 0 into the XOR function. By doing
this, we would get an output of 1
Comment

Logic gates

The most common logic gates are the following

AND
|A|B|O|
|0|0|0|
|0|1|0|
|1|0|0|
|1|1|1|

NOT
|A|B|O|
|0|0|1|
|-|-|-|
|-|-|-|
|1|1|0|

NAND
|A|B|O|
|0|0|1|
|0|1|1|
|1|0|1|
|1|1|0|

OR
|A|B|O|
|0|0|0|
|0|1|1|
|1|0|1|
|1|1|1|
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# merge two lists as queryable 
Csharp :: allow scroll with wheel mouse datagridview c# 
Csharp :: c# custom event handler with parameters 
Csharp :: docker Test a Connection using Curl 
Csharp :: multiply structs c# 
Csharp :: c# get index of item in list 
Csharp :: how to access path position variable in unity 
Csharp :: unity DOScale 
Csharp :: how to check url has parameter in c# 
Csharp :: get all properties of an object including children c# 
Csharp :: c# internalsvisibleto 
Csharp :: how to check if an integer is in array c# 
Csharp :: unity deactivate scripts in list 
Csharp :: get first number in string C# 
Csharp :: curl rest api keycloak 
Csharp :: regex only letters and numbers c# 
Csharp :: C# How to display text in console 
Csharp :: c# recorrer una lista 
Csharp :: How to change ListBox selection background color 
Csharp :: generate a dropdown list from array data using razor .net mvc 
Csharp :: c# xml check if attribute exists 
Csharp :: console writeline 
Csharp :: color rgb to float c# 
Csharp :: count number of specific characters in string c# 
Csharp :: how to empty an array c# 
Csharp :: c# linq join mutiple 
Csharp :: c# distinct comparer multiple properties 
Csharp :: static keyword 
Csharp :: entity 
Csharp :: c# how to refresh input field 
ADD CONTENT
Topic
Content
Source link
Name
8+4 =