Entities | |
mos_6502_alu.rtl | architecture |
Ports | ||
a | in | std_ulogic_vector ( 7 downto 0 ) |
The A input register for the ALU. | ||
b | in | std_ulogic_vector ( 7 downto 0 ) |
The B input register for the ALU. | ||
result | out | std_ulogic_vector ( 7 downto 0 ) |
The output word from the ALU. | ||
carry_out_ACR | out | std_ulogic |
overflow_AVR | out | std_ulogic |
half_carry_HC | out | std_ulogic |
decimal_enable_DAA | in | std_ulogic |
carry_in_IADDC | in | std_ulogic |
enable_sum_SUMS | in | std_ulogic |
enable_and_ANDS | in | std_ulogic |
enable_xor_EORS | in | std_ulogic |
enable_or_ORS | in | std_ulogic |
enable_right_shift_SRS | in | std_ulogic |
|
Port |
The A input register for the ALU.
|
Port |
The B input register for the ALU.
|
Port |
Carry-in input port for the ALU I/ADDC
- ALU Carry-in Input
|
Port |
ACR - An output flag that is true if the result is > 255 ACR
- ALU Carryout
|
Port |
Controls whether the ALU is in normal mode or BCD mode DAA
- ALU Decimal Mode Enable
|
Port |
Enable logical AND ANDS
- ALU Logical AND Enable
|
Port |
Enable logical OR ORS
- ALU Logical OR Enable
|
Port |
Enable right shift SRS
- ALU Shift Right Enable
|
Port |
Enable summing the inputs SUMS
- ALU Summation Enable
|
Port |
Enable logical XOR EORS
- ALU Logical XOR Enable
|
Port |
HC - An output flag of unknown purpose HC
- ALU Half Carry ??
|
Port |
AVR - An output flag that is set when the signed result of an operation overflows. AVR
- ALU Overflow
|
Port |
The output word from the ALU.