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