• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Nic30 / hwtLib / b469f1f6-6a00-4958-bfb0-f9fbf427a589

06 Jun 2024 06:38PM UTC coverage: 93.399% (-0.03%) from 93.431%
b469f1f6-6a00-4958-bfb0-f9fbf427a589

push

circleci

Nic30
docs

8040 of 9100 branches covered (88.35%)

39136 of 41902 relevant lines covered (93.4%)

0.93 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

95.0
/hwtLib/examples/errors/accessingSubunitInternalIntf.py
1
from hwt.hwIOs.std import HwIOSignal
1✔
2
from hwt.hwIOs.utils import addClkRstn, propagateClkRstn
1✔
3
from hwt.hwModule import HwModule
1✔
4
from hwt.pyUtils.typingFuture import override
1✔
5
from hwtLib.examples.simpleHwModuleWithNonDirectIntConncetion import SimpleHwModuleWithNonDirectIntConncetion
1✔
6

7

8
class AccessingSubunitInternalIntf(HwModule):
1✔
9
    """
10
    Example of error from accessing a internal interface of subunit
11
    """
12

13
    @override
1✔
14
    def hwDeclr(self):
1✔
15
        addClkRstn(self)
1✔
16
        self.submodule0 = SimpleHwModuleWithNonDirectIntConncetion()
1✔
17
        self.a0 = HwIOSignal()
1✔
18
        self.b0 = HwIOSignal()._m()
1✔
19
        self.c0 = HwIOSignal()._m()
1✔
20

21
    @override
1✔
22
    def hwImpl(self):
1✔
23
        propagateClkRstn(self)
1✔
24
        m = self.submodule0
1✔
25
        m.a(self.a0)
1✔
26
        self.c0(m.b)
1✔
27
        self.b0(m.c)
×
28

29

30
if __name__ == "__main__":
31
    from hwt.synth import to_rtl_str
32
    
33
    m = AccessingSubunitInternalIntf()
34
    print(to_rtl_str(m))
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc