Ask a Question

d f/f to s-r f/f covert

on 2010-04-23 22:03:31   by BIPLAB   on Electrical Engineering  1 answers

Administrator

on 2010-04-24 09:30:00  

It is simple suppose if you want to convert a D ff to T flip flop first we write a verilog code for the D ff and the according to the excitation table conversion rulez we connect the Dff accordingly in a seperate module instantiating the Dff module. to convert the Dff to Tff just xor the output of dff and T input and feed it to the D input pin of the Dff it will lok like this: module ff(Q,clk,reset,D); input clk,reset,D; output reg Q; always@(posedge clk) begin if(reset) Q