PPT Slide
arith_result
logic_result
inputA
inputB
output
result
result
operation
operandA
operandB
Logic Module
Arithmetic Module
operation
operandA
operandB
architecture alu_struct_arch of alu is
• • •
begin
Inst_alu_arith: arithmetic_module
Port Map (
operation => opcode(1 downto 0)
operandA => operand1
operandB => operand2
result => arith_result
);
• • •
MUX
opcode(1-0)
opcode(1-0)
operand1
operand1
operand2
operand2
opcode(2)
• • •
Inst_logic_arith: logic_module
Port Map (
operation => opcode(1 downto 0)
operandA => operand1
operandB => operand2
result => arith_result
);
• • •
selection
Previous slide
Next slide
Back to first slide
View graphic version