![no use](https://cdn.opencores.org/img/pils_lt.png)
![no use](https://cdn.opencores.org/img/pil_lt.png)
![no use](https://cdn.opencores.org/img/pil_rt.png)
![no use](https://cdn.opencores.org/img/pils_rt.png)
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](https://cdn.opencores.org/img/pils_lt.png)
![no use](https://cdn.opencores.org/img/pil_lt.png)
![no use](https://cdn.opencores.org/img/pil_rt.png)
![no use](https://cdn.opencores.org/img/pils_rt.png)