Eletricidade e eletromagnetismo · AP Computer Science
Simulador de portas lógicas e tabelas-verdade
Simulador de circuitos lógicos digitais e tabelas-verdade: AND, OR, NOT, NAND
- No navegador
- Sem cadastro
- Dedução ao vivo
- Modo projetor
- Folha de exercícios A4
Janela de simulação 3D● 60 FPS
Variáveis de controle do experimento
V
Deduções e métricas em tempo real
Saída lógica Y
--
Nível de tensão de saída
--
Expressão booleana
--
Modelo de circuito equivalente
--
Dedução de fórmulas em tempo real
Fórmula fundamental:
--Substituição de valores:
--Estado físico: --
Exemplos clássicos e armadilhas de exame
Worked Problem
Problema: A bank vault opens only when two managers turn their keys simultaneously. What logic gate is this? Give truth table.
Derivação passo a passo:
- AND Gate. Truth table: (0,0)->0, (0,1)->0, (1,0)->0, (1,1)->1. Boolean formula: Y = A AND B.
Worked Problem
Problema: What is an XOR gate? What role does it play in computer adders?
Derivação passo a passo:
- Outputs 1 when inputs differ, 0 when identical. Serves as the binary half-adder sum function (1+1 = 0 with carry 1).
Folha de investigação em aula e exercícios
Q1. Variant 1: Why is the NAND gate termed the "universal gate" in digital chip design?
Answer Key: NAND is functionally complete: appropriate interconnections synthesize NOT, AND, OR, and XOR gates exclusively using NAND gates.
Q2. Variant 2: A burglar alarm triggers if either a window opens (A=1) or door opens (B=1). What gate is needed?
Answer Key: OR Gate. Any single affirmative input triggers output alarm Y = A OR B.
Q3. Variant 3: Automatic streetlight controller inverts daylight 1 into off 0, and night 0 into on 1. What gate is used?
Answer Key: NOT Gate (inverter). It flips input polarity: Y = NOT A.
Perguntas frequentes e erros comuns
What do "0" and "1" physically represent inside a silicon chip?
Voltage levels! In 5V TTL logic, 0V-0.8V represents "0" (Low), while 2.4V-5.0V represents "1" (High), separated by a noise immunity guardband.
How do billions of transistors inside a CPU perform computation?
MOSFET transistors serve as solid-state electrical switches. Arranged in complementary CMOS pairs, they implement logic gates that assemble into ALUs and registers.
What are De Morgan's Laws in boolean algebra?
1) NOT(A AND B) = (NOT A) OR (NOT B); 2) NOT(A OR B) = (NOT A) AND (NOT B). They simplify digital circuits into optimized gate arrays.
How do Qubits in quantum computers revolutionize classic 0 and 1 bits?
Classic bits are strictly 0 or 1. Quantum bits exploit quantum superposition, existing as α|0⟩ + β|1⟩ simultaneously, processing 2^N states concurrently.