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:
Some edits also needed to be made to the constraint file in order to line up the ports.