From the course: Learning Verilog for FPGA Development

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

A functional demo of the ALU

A functional demo of the ALU - FPGA Tutorial

From the course: Learning Verilog for FPGA Development

Start my 1-month free trial

A functional demo of the ALU

- [Narrator] So here we have the application running on the digital Digilent Basys3 board and I will show you an example with the four operations we have implemented. So let me enter the number 10 for A, that is one, zero, one zero and the number three for B. That is zero, zero, one, one. Now notice that the operation in the two left most switches is set to zero zero. That's addition. So if we look at the LEDs, you'll see that the result is showing one, one, zero, one. That's 13 because 10 plus three equals 13. Now let me change the operation to zero one. That is multiplication. And look at the LEDs now. It says one, one, one, one, zero. That's 30. Because 10 times three is 30. Moving on to the next operation, let me change this to one, zero. That is the module operation and we get one, because 10 divided by three gives us a remainder of one. And finally, the last operation will be one, one, four…

Contents