Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Question on digital Logic

Status
Not open for further replies.
Is edge triggering possible using Mux,?
 

hi,
how many muxes can we use? Also what other components can be used ??? Please some more inputs!!!

Best Regards,

Added after 20 minutes:

Shantha Rangarajan said:
Hi all,
How do you design a T flip flop using a Mux ?.
Thanks Shantha

Hi shantha,
First of all if you are talking about level sensitive thing then i can give u an answer. Observe the truth table of a T- FF
Q T Q(t+1)
0 0 0
0 1 1
1 0 1
1 1 0
This is same as that of a 2 i/p Xor gate with feedback.
Now you can design a two i/p Xor gate with feedback using mux as follows.

Please correct anyone if i went wrong somewhere.

Best Regards,
 

Here is how to do it!
Hope this helps!

Code:
module mux(y, sel, d0, d1);
   output y;
   input       sel, d0, d1;
   assign      y = (~sel & d0) | (sel & d1);
endmodule // mux

module mux_tff (clk, t, q);
   input clk, t;
   output      q;
   wire        q_m, q_s;
   wire        d, q_n;
   assign      q = q_s;
   
   //Master latch
   mux m0 (q_m, clk, q_m, d);
   //Slave latch
   mux m1 (q_s, clk, q_m, q_s);
   //input mux
   mux m2 (d, t, q_s, q_n);
   //Inverter for Q
   mux m3 (q_n, q_s, 1'b1, 1'b0);
   
endmodule // mux_tff
 

I thin you can follow following steps to

construct a T FLIPFLOP by using Mux:

1) use Mux to construct two latch

2) use these two latch to

construct a edge triggered DFF.

3) use this DFF and Mux to construct a TFF.


best regards




Shantha Rangarajan said:
Hi all,
How do you design a T flip flop using a Mux ?.
Thanks Shantha
 

the question needs to be much more elaborate.u need to specify whether combinational logic can be used or not.if yes,it can be done easily.just first cibstruct an edge triggered register using two muxes ,one triggered on negative edge of clock and another on the positive edge of the clock.this is a d flip flop,use T-D conversion ,(refer any book on digital logic for this),u may need some combinational logic for doing this,again this combinational logic can be implemented using another mux.

regards
amarnath
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top