OpenCores
no use no use 1/1 no use no use
Master-Slave D flipflop
by hemanthkaja on May 11, 2012
hemanthkaja
Posts: 16
Joined: Sep 24, 2008
Last seen: Sep 5, 2021
Hi,
Is it possible in verilog to write a structural implementation of master slave D- flipflop using a D-flipflop code written earlier? (the flip flop is edge triggered)
RE: Master-Slave D flipflop
by esabohw on Feb 19, 2014
esabohw
Posts: 1
Joined: Feb 18, 2014
Last seen: Feb 19, 2014
Hi,
Is it possible in verilog to write a structural implementation of master slave D- flipflop using a D-flipflop code written earlier? (the flip flop is edge triggered)
RE: Master-Slave D flipflop
by rockgird on May 15, 2014
rockgird
Posts: 1
Joined: May 14, 2014
Last seen: Jun 25, 2020
Yeh I think should be easy to do.

If it's an structural module you must have module instance as d_ff (inp, clk, rst, enable, out)

you take two instance of d_ff and take NOT of enable signal from previous one and feed it to the other instance.

d_ff(inp, clk, rst, enable, out1);
d_ff(out1, clk, rst, ~enable, out);

there you've a master-slave flip-flop
no use no use 1/1 no use no use
© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.