mar mar lwin
Newbie level 4
register_alu
The task is to design a component which could be used in the core of a microprocessor:
We shall call this Register_ALU:
• the design will contain 8 8-bit registers which can be loaded from an external input;
• the design will contain a block of logic which will have two 8-bit inputs A[7..0] and B[7..0], and will produce one 8-bit output C[7..0];
• the output will be formed as
o A and B, or
o A or B, or
o A plus B, or
o A minus B;
• the operation {logical and, logical or, arithmetic plus, arithmetic minus} will be selected by an external input to the design, called Op_Code[1..0];
• the output C[7..0] can be
o loaded back into one of the eight internal registers, or
o read externally.
please help me i have no idea how to create 8 8 bit alu,can someone gv the code for this task plzzz
The task is to design a component which could be used in the core of a microprocessor:
We shall call this Register_ALU:
• the design will contain 8 8-bit registers which can be loaded from an external input;
• the design will contain a block of logic which will have two 8-bit inputs A[7..0] and B[7..0], and will produce one 8-bit output C[7..0];
• the output will be formed as
o A and B, or
o A or B, or
o A plus B, or
o A minus B;
• the operation {logical and, logical or, arithmetic plus, arithmetic minus} will be selected by an external input to the design, called Op_Code[1..0];
• the output C[7..0] can be
o loaded back into one of the eight internal registers, or
o read externally.
please help me i have no idea how to create 8 8 bit alu,can someone gv the code for this task plzzz