CE433 2022 Spring
Lab  8
John Hitti

jdhitti@fortlewis.edu

Lab 8 - Part 1

Introduction
In this Lab we will be using our Basys 3 FPGA and the PicoBlaze softcore processor to create a simple square calculator.

Task 1&2
In this task we will start by following the example in the text book and adjusting out code so that it will function with out Basys 3 FPGA. This example is a simple calculator that can take two numbers and perform squared operations on them. First we adjust to main code to run with our FPGA's specific i/o definitions and make sure we include the updated version of the picoblaze, the kcpsm6.




Along with some other minor adjustments this program is ready to upload to the FPGA! Once this is verified we can also add our second task to the code. This is displaying a 16bit binary output to the LED lights on the FPGA. We can add some code to our MUX selector module that also displays the output to the LEDs. Once this is implemented we can upload it to the FPGA.








Lab 8 - Part 2
In this part of the lab we will be taking the work done in part one and combining it with Lab 6. We will be adding the LCD screen to our FPGA to display the output of the simple square calculator. This is done by passing our in-vales to our previous translator_topmodule to display them on the LCD.
 





Discussion
This lab was an excellent introduction into using the PicoBlaze softcore processor for more complicated tasks and integrating more IO as well.