SPI Homework

Noah Smith

This homework was to implement a SPI ambient light sensor on the Basys 3 board.

In order to do this we need a shopping list of modules.

o   SPI leader receiver

§  This controls the SPI logic for the Basys 3 boards SPI

o   Binary to BCD converter

§  This module converts the incoming binary number into a decimal number

o   7 segment driver

§  This controls the display of the decimal number on 7 segment display

o   7 segment decoder

§  Converts the input data to 7 segment binary codes

o   Top module

§  This controls the logic for all these modules

 

Code below:

A screen shot of a computer program

Description automatically generatedA screen shot of a computer program

Description automatically generatedA screen shot of a computer program

Description automatically generatedA computer screen with text and numbers

Description automatically generated

Some edits also needed to be made to the constraint  file in order to line up the ports.

A computer screen with many white text

Description automatically generated