1
0
mirror of https://github.com/myhdl/myhdl.git synced 2024-12-14 07:44:38 +08:00
myhdl/cosimulation/test/dff_clkout.py
2016-03-10 20:27:07 +01:00

20 lines
314 B
Python

import myhdl
from myhdl import *
from dff import dff
ACTIVE_LOW, INACTIVE_HIGH = 0, 1
def dff_clkout(clkout, q, d, clk, reset):
DFF_1 = dff(q, d, clkout, reset)
@instance
def assign():
while 1:
yield clk
clkout.next = clk
return DFF_1, assign