design 4-bit Even-Odd up counter. The counter has 1) clock input (CLK) 2) reset input signal (R) 3) count mode 4) contro
Posted: Mon May 09, 2022 7:01 am
design 4-bit Even-Odd up counter. The counter has 1) clock input (CLK) 2) reset input signal (R) 3) count mode 4) control input (M) The counter has a 4-bit output which outputs the current count as a 4-bit binary number. The counter operates as follows: The counter will count in even mode when M = 0' and it will count in odd mode when M = '1. When R='0', the count should be reset to "1111" On every clock cycle, the counter should count even or odd based on the counting mode. For example: Even mode count the counter will operate as follows: 0,2,4...12,14,0,2,. Odd counting mode it will operate as follows: 1, 3, 5,.13,15,1,3,.. In case the counter changes between the modes, it should count up to the next state. For example, if the current count is 2 and the counting mode was changed from even to odd then the next count will be 3.