Day of Week
Introduction
In this lab you will implement an algorithm to compute the day of
the week given a date, month and year. Your vhdl entity will
take as input integers for year, month and date and output an
integer in the range of 0 to 6 for the corresponding day of the
week. A start signal will initiate the computation and a done
signal will signal the end of the computation. You may implement
this processor using an FSMD.
Here is the algorithm:
The magic numbers are: 1, 4, 4, 0, 2, 5, 0, 3, 6, 1, 4, 6.
You should write a testbench to test your entity. To verify that your algorithm works, try it on today's date. Then, try it on your birth date. Did you know what day of the week you were born? When ready, demonstrate your design (code and simulation waves) to your TA.