# Altera Quarts II 4bit ALU design

#### sham_rulz

1. The problem statement, all variables and given/known data
Hello!
As a part of my course i am required to produce a 4 bit ALU using altera quartus. However i have very little experience with the software and cannot continue.
the input data is 2 4bit numbers A & B. The data should be read by the positive edge trigger of a clock plus and the data has to be output at a later pulse.
A and B are 4 bit binary numbers where A is greater always and the output is a 5 bit binary number.
IP instruction
0 0 Add A and B
0 1 Subtract B from A
1 0 Multiply A by 2
1 1 Divide A by 2

2. Relevant equations

3. The attempt at a solution
I tried solving this using the megawizard plug in manager where i found the ALU's for the functions but i cannot implement them in the design. Also am i supposed to use flip fllops or registers?
Any help would be appreciated!

Related Engineering and Comp. Sci. Homework News on Phys.org

"Altera Quarts II 4bit ALU design"

### Physics Forums Values

We Value Quality
• Topics based on mainstream science
• Proper English grammar and spelling
We Value Civility
• Positive and compassionate attitudes
• Patience while debating
We Value Productivity
• Disciplined to remain on-topic
• Recognition of own weaknesses
• Solo and co-op problem solving