PyHCL/example/ClockDomin.py

13 lines
215 B
Python

# Copyright (c) 2019 scutdig
# Licensed under the MIT license.
from pyhcl import *
class A(Module):
io=IO(
i=input(Bool),
o=output(Bool),
en=input(Bool),
)
r0 = RegInit(U.w(1))