当前位置: 首页>>代码示例>>Python>>正文


Python conversion.verify函数代码示例

本文整理汇总了Python中myhdl.conversion.verify函数的典型用法代码示例。如果您正苦于以下问题:Python verify函数的具体用法?Python verify怎么用?Python verify使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了verify函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: test_SigAugmAssignUnsupported

def test_SigAugmAssignUnsupported():
    z = Signal(intbv(0)[8:])
    a = Signal(intbv(0)[8:])
    try:
        verify(sigAugmAssignUnsupported, z, a)
    except ConversionError, e:
        assert e.kind == _error.NotSupported
开发者ID:Alisa-lisa,项目名称:uni-stuff,代码行数:7,代码来源:test_errors.py

示例2: test_modbvSigRange

def test_modbvSigRange():
    z = Signal(modbv(0, min=0, max=42))
    a = Signal(intbv(0)[4:])
    b = Signal(intbv(0)[4:])
    try:
        verify(modbvSigRange, z, a, b)
    except ConversionError, e:
        assert e.kind == _error.ModbvRange
开发者ID:Alisa-lisa,项目名称:uni-stuff,代码行数:8,代码来源:test_errors.py

示例3: test_modbvRange

def test_modbvRange():
    z = Signal(intbv(0)[8:])
    a = Signal(intbv(0)[4:])
    b = Signal(intbv(0)[4:])
    try:
        verify(modbvRange(z, a, b))
    except ConversionError as e:
        assert e.kind == _error.ModbvRange
    else:
        assert False
开发者ID:StudentESE,项目名称:myhdl,代码行数:10,代码来源:test_errors.py

示例4: test_unused4

def test_unused4():
    f = get_fileinfo()
    assert verify(unused4_bench, M_DEFAULT) == 0
    if not kh_enabled:
        return
    u = updated_files(f)
    assert len(u) == 2
    for m in ("unused4_bench", "and_operator4"):
        assert file_check(u, m)
开发者ID:benzea,项目名称:myhdl-addons,代码行数:9,代码来源:test_unused.py

示例5: test_unused3b

def test_unused3b():
    f = get_fileinfo()
    defval = random.randrange(2**M_DEFAULT)
    assert verify(unused3_bench, M_DEFAULT, defval) == 0
    if not kh_enabled:
        return
    u = updated_files(f)
    assert len(u) == 2
    for m in ("unused3_bench", "and_operator3"):
        assert file_check(u, m)
开发者ID:benzea,项目名称:myhdl-addons,代码行数:10,代码来源:test_unused.py

示例6: test_incReg

def test_incReg():  
    assert verify(IncBench, incRef) == 0
开发者ID:BackupTheBerlios,项目名称:osocgen-svn,代码行数:2,代码来源:test_inc.py

示例7: test_bug_1835797

def test_bug_1835797():  
    assert verify(bug_1835797) == 0
开发者ID:Aravind-Suresh,项目名称:myhdl,代码行数:2,代码来源:test_bug_1835797.py

示例8: test_bug_1740778

def test_bug_1740778 ():  
    assert verify(bug_1740778) == 0
开发者ID:StudentESE,项目名称:myhdl,代码行数:2,代码来源:test_bug_1740778.py

示例9: testWhileBreakLoop

def testWhileBreakLoop():
    assert verify(LoopBench, WhileBreakLoop) == 0
开发者ID:Alisa-lisa,项目名称:uni-stuff,代码行数:2,代码来源:test_loops.py

示例10: testNestedForLoop2

def testNestedForLoop2():
   assert verify(LoopBench, NestedForLoop2) == 0
开发者ID:Alisa-lisa,项目名称:uni-stuff,代码行数:2,代码来源:test_loops.py

示例11: testForBreakLoop

def testForBreakLoop():
   assert verify(LoopBench, ForBreakLoop) == 0
开发者ID:Alisa-lisa,项目名称:uni-stuff,代码行数:2,代码来源:test_loops.py

示例12: checkUnaryOps

def checkUnaryOps(m):
    assert verify(unaryBench, m) == 0
开发者ID:Aravind-Suresh,项目名称:myhdl,代码行数:2,代码来源:test_ops.py

示例13: checkMultiOps

def checkMultiOps(m, n, p):
    assert verify(multiBench, m, n, p) == 0
开发者ID:Aravind-Suresh,项目名称:myhdl,代码行数:2,代码来源:test_ops.py

示例14: checkBinary

def checkBinary(m, n):
    assert verify(binaryBench, m, n) == 0
开发者ID:Aravind-Suresh,项目名称:myhdl,代码行数:2,代码来源:test_ops.py

示例15: test_hdlobjattrsimple

def test_hdlobjattrsimple():
    assert verify(ObjBench, HdlObjAttrSimple) == 0
开发者ID:Aravind-Suresh,项目名称:myhdl,代码行数:2,代码来源:test_method.py


注:本文中的myhdl.conversion.verify函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。