• edited by
25,482 views
37 37 votes

The minimum number of $\text{D}$ flip-flops needed to design a mod-258 counter is

  1. 9
  2. 8
  3. 512
  4. 258

7 Answers

Best answer
41 41 votes

Mod $258$ counter has $258$ states. We need to find no. of bits to represent $257$ at max. $2^n \geq 258 \implies n \geq 9$. 

Answer is A.

• edited by
50 50 votes

Flip -Flop is a binary cell capable of storing 1-bit of information. so to store n-bit we need n Fli-Flip.


n-bit Ring Counter can have n different output states.

n-bit Twisted ring counter(Johnson Ring Counter) can have 2n different output states.

n-bit ripple counter (mod-2n counter) can have 2n  different output states.


so i mean to say

A Ring Counter that consist n Flip-Flip will have n-states.

3-bit ripple counter is called as MOD-8 counter. So in general, an n-bit ripple counter is called as modulo-N counter. Where, MOD number = 2n.

so MOD-258 counter needs 9 bit to store all states so ultimately 9 Flip-Flop.

Tell me if i went wrong somewhere.

19 19 votes

Following is the $mod-4$ counter using two D-flip flops:

Using the same technqiue we can build $mod-258$ counter using $nine$ D-Flip Flops.

Hence, Answer is (A).

9 9 votes
mod 258 will have 258 states from 0 to 257 so number of bits needed is log 257=9 bits hence the answer is 9.
6 6 votes

In general, the minimum no of Flip-flop needed to count a number N = ceil( logN) base2.
So, Mod 258 counter needs = ceil(log 258)= 9 flipflops. It could be mod-258 up/down/random counter.

Although Asynchronous counters use T flip-flops for counting but can be designed by other flip-flops(j-k, D....) and combinational circuits using same no. of flip-flops(9) only.

Note- Only Asynchronous counters can count mod-N using only (log N) flip-flops. If we use any Synchronous counter is surely going to take more than (log N)flip-flops. There are many Synchronous counters which can be designed using a different type of flip-flop(J-K,T...) and combinational circuits which take lesser no. of flip-flops than ring and johnson counter to count mod N. So for Synchronous counters this no. could be (log N)<m<N.

• edited by
1 1 vote
An n-bit binary counter consists of n flip-flops and can count in binary from 0 to 2^n-1

2^n ≥ 258
Answer:
Position:
Show:

Related questions

75 75 votes
4 answers 4 answers
24.7k
24.7k views
go_editor asked Sep 29, 2014
24,697 views
On a non-pipelined sequential processor, a program segment, which is the part of the interrupt service routine, is given to transfer $500$ bytes from an I/O device to mem...
49 49 votes
2 answers 2 answers
16.9k
16.9k views
akash asked Oct 29, 2014
16,917 views
Let $P$ be a regular language and $Q$ be a context-free language such that $Q \subseteq P$. (For example, let $P$ be the language represented by the regular expression $p...
23 23 votes
2 answers 2 answers
8.6k
8.6k views
go_editor asked Sep 29, 2014
8,642 views
Choose the most appropriate word(s) from the options given below to complete the following sentence.I contemplated _________ Singapore for my vacation but decided against...
46 46 votes
7 answers 7 answers
16.9k
16.9k views
go_editor asked Sep 29, 2014
16,926 views
A deterministic finite automaton ($\text{DFA}$) $D$ with alphabet $\Sigma = \{a, b\}$ is given below.Which of the following finite state machines is a valid minimal $\tex...