M Having problems with this problem: Design a circuit that takes as input YEAR (
ID: 1835059 • Letter: M
Question
M Having problems with this problem:Design a circuit that takes as input YEAR (Y15…Y0), and generates the leap-year flag (L). The rule for a leap year is: a year is leap if it is divisible by 4 and greater than 1582, unless it is divisible by 100 and not by 400. Implement your work in VHDL. YOU ARE NOT ALLOWED TO USE THE BUILT-IN VHDL ARITHMETIC OPERATORS (+, -, <, >, …). You should design your own blocks to implement the above leap-year conditions (divisible by 4, 100, 400), and to check whether the input is greater than 1582. Note that in your comparisons, you should take into account that Y15…Y0 is represented in BCD and not as a regular binary number. Include a testbench for your code.
How Can i implement this using VHDL ?
Any Help Would Be Appreciated !
Explanation / Answer
Hi i have written the code on my machine using Xilinx, but i can't type it and post it here because time has expired please rate me lifesaver and i'll make sure the answer is in your inbox! or my effort and time would go all in vain i don't do this generally but i am doing because of the circumstances
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.