Page 1 of 1

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
by answerhappygod
Exercise 14 1 Function Binary To Bcd A Function That Converts A 12 Bit Vector Representing A 0 To 4095 Integer Into F 1
Exercise 14 1 Function Binary To Bcd A Function That Converts A 12 Bit Vector Representing A 0 To 4095 Integer Into F 1 (24.1 KiB) Viewed 26 times
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?