CE 433 Lab 2022 Spring
Homework 8
Name:
Nicolas Llarena
Email: Njllarenaarias@fortlewis.edu

1. Homework 8 - Embedded a Soft-Core

2. Introduction
The purpose of this lab is to work with the basys 3 board and vivado to implement Assembly code together with vivado to achieve some LED outputs by using switches. This will get us familiarized with assembly and how to use it with FPGAs.
3. Materials
Materials Quantity
Gvim
1
Vivado
1
BASYS 3 Board
1

4. Results

Task 1



Task 1: This task included writing the initial code to be used for all tasks as well as added a simple switch to LED script.


Task 2



Task 2: This task included writing the assembly code to simulate the square problem.



Task 3



Task 3:   This task included writing the assembly code to display a 0x13 to the LEDs.




Task 4

Task 4:  This task included writing the assembly code for a MASK to keep the first two LEDs on.



Task 5



Task 5: This task included adding the assembly code to shift the input to the right by one bit this is shown by the LEDs shifting.



Task 6


Task 6: This task included using the assembly instructions jump, return, and load

Task 7


Task 7: This task included writing the assembly code to practice with some sub routines which ultimately gives the desired output without changing.
Task 8



Task 8:  This task required us to use the compare instruction to achieve the same result as task 9.

Discussion

This homework was a good refresher on some of the instructions for assembly. I have taken computer architecture in the past and we used many of these instructions as well. I has some slight issues at the beginning of this homework when trying to follow the instructions from the tutorial. some parts were not clear when trying to get the initial code that is used throughout the tasks. Regardless, it was a good introduction on how to use Assembly with FPGAs.