Exercise 14.1. Function binary_to_bcd A function that converts a 12-bit vector (representing a 0-to-4095 integer) into f
Posted: Mon May 02, 2022 12:48 pm
Exercise 14.1. Function binary_to_bcd A function that converts a 12-bit vector (representing a 0-to-4095 integer) into four BCD digits was presented in example 14.5. a) Write a code for a circuit that tests that function, with a call like bed <=binary_to_bed(bin). b) Show simulation results, using the same stimuli of figure 14.2; then compare the results. c) Add to the function the assertion described in section 14.8. What happens when the code is recompiled? d) Recompile the code now using 13 bits for bin. What happens?