示例#1
0
        class A(Module):
            io = IO()
            a = Wire(U.w(8))
            b = Wire(U.w(8))
            c = Wire(U.w(8))

            with otherwise():
                c <<= a + b
示例#2
0
    class A(Module):
        io = IO()

        a = Wire(U.w(8))
        b = Wire(U.w(8))
        c = Wire(U.w(8))

        c <<= a + b
示例#3
0
        class A(Module):
            io = IO()
            a = Wire(U.w(8))
            b = Wire(U.w(8))
            c = Wire(U.w(8))

            with when(U(0)):
                b <<= a + c
                with otherwise():
                    c <<= a + b
示例#4
0
    class A(Module):
        io = IO()
        a = Wire(U.w(8))
        b = Wire(U.w(8))
        c = Wire(U.w(8))

        a <<= b
        with when(U(0)):
            a <<= b + c
            c <<= a
        with else_when(U(1)):
            b <<= a + c
            with when(U(0)):
                b <<= a
            with otherwise():
                c <<= a
        with otherwise():
            c <<= a + b
            c <<= a + b
            c <<= a + b
            c <<= a + b
示例#5
0
 class A(Module):
     io = IO()
     a = HclExpr()
示例#6
0
文件: test_io.py 项目: zhongzc/py-hcl
 class A(Module):
     io = IO(i=Input(HclType()), o=HclType())
示例#7
0
文件: test_io.py 项目: zhongzc/py-hcl
 class A(Module):
     io = IO(i=HclType(), o=Output(HclType()))
示例#8
0
文件: test_io.py 项目: zhongzc/py-hcl
 class A(Module):
     io = IO(i=HclType())
示例#9
0
文件: test_io.py 项目: zhongzc/py-hcl
class A(Module):
    io = IO(i=Input(U.w(8)), o=Output(U.w(8)))

    io.o <<= io.i