Lab 8: Softcore

Calvin Reese

cjreese@fortlewis.edu

4/6/2022

Introduction

In this lab, we worked with assembly language to solve the square problem using the 7 segment display, buttons, switches and leds.

Materials and Methods

The tutorial to these examples are found:

Here

Results

Top Code for Task 1-3:

MUX Code for Task 1-3:

Note this is repeated for each case of q_reg

Task 1: Replicate the Example

Task 2: Replicate the Example with LEDs

Task 3: Replicate the Example with LCD. Note the error of the first digit occasionally not displaying carried over from the previous lab and I am not sure why it does it, but I think it is a timing issue.

Discussion

Overall pretty simple and gave me some more experience working with the KCPSM6 functions as well as a refresher on 7 segment displays and the LCD.