1. Write a Verilog module that computes DAY_OF_YEAR[8:0] given MONTH[3:0], DAY[4:0], and LEAP_YEAR flag. Use a CASE statement in Verilog to implement a lookup-table for the month offset and then perform an appropriate addition ( use this template – cal.v ). In addition, you should have and ERROR flag output if the MONTH is 0, 13, 14, or 15 or the DAY and LEAP_YEAR inputs don’t make sense. Use the test fixture ( cal_tf.v ) to test your circuit. Make sure to read the Verilog to see how it works and the conditions it is testing.
2. CLD-II, Chapter 5, problem 5.9
3.
CLD-II, Chapter 5, problem 5.10