Site icon UK Essayz

Verilog Code Assignment

Design a module named counter_101 using behavioral Verilog code. The module output count increases by 1 each time a sequence ˜101 is detected on the input datain. Assume that datain is a 7-bit value. For example, if the input is ˜1010001, the count value is 1. If the input is ˜1101010, the count value is 2.