Recap - Logic Gate Circuit
Coddy Verilog 여정의 기초 섹션에 포함된 레슨. 90개 중 42번째.
챌린지
이 챌린지는 이 장에서 게이트 프리미티브에 대해 배운 모든 내용을 종합합니다. 여러 게이트를 사용하여 회로를 만들어 보세요.
해야 할 일:
다음 요소를 포함하는 회로를 만드세요:
- 입력:
a,b,c - 출력:
out1,out2,out3
논리:
out1=a AND bout2=b OR cout3=a XOR c
게이트 프리미티브(and, or, xor)를 사용하여 이러한 출력을 만드세요.
직접 해보기
module logic_circuit (
input a,
input b,
input c,
output out1,
output out2,
output out3
);
// TODO: out1에 대한 AND 게이트 추가 (a & b)
// TODO: out2에 대한 OR 게이트 추가 (b | c)
// TODO: out3에 대한 XOR 게이트 추가 (a ^ c)
endmodule기초의 모든 레슨
4Operators Part 1
Arithmetic OperatorsModulo OperatorComparison OperatorsRecap - Simple MathBitwise Operators7Assign And Gates
Continuous AssignmentAssign With OperatorsBuilt In Gate PrimitivesAND OR NOT GatesXOR XNOR GatesRecap - Logic Gate Circuit10Decision Making
If StatementIf - ElseRecap - Simple ComparatorCase StatementCasex And CasezRecap - ALU Design5Operators Part 2
Logical OperatorsReduction OperatorsShift OperatorsConcatenation OperatorConditional OperatorRecap - Operator Challenge3Number System
Binary RepresentationSized NumbersUnsized NumbersNegative NumbersSpecial Values X And ZRecap - Number Formats6Modules
Module StructureInput And Output PortsInout PortsModule InstantiationPort Mapping By NamePort Mapping By OrderRecap - Build A Module9Procedural Blocks
Always BlockInitial BlockSensitivity ListBlocking AssignmentNon Blocking AssignmentRecap - Always vs Initial15Traffic Light Controller
Defining The StatesState Machine Logic직접 연습해 보세요: 온라인 Verilog 컴파일러