can anyone tell me the verilog coding and simulation for this design using modelsim software..i had tried a lot by the following coding but i can't get the correct result..please i need it for my reference.
module SD_L(in,clk,rst,q,out);
input in,clk,rst,q;
output out;
reg out;
wire k1,k2,k3;
assign k1=in||q;
SD_dl m1(.enable(k1),.q(k2));
assign k3=k2&clk;
always@(posedge clk)
begin
out<=q;
end
SD_dff m2( .d(in),.clk(k3),.rst(rst),.out(q));
endmodule