Castle: The best Real-Time/Embedded/HighTech language EVER. Attempt 2
Revisión | 230b7c668b209fa4e5b028106c5b56dd4868ac14 (tree) |
---|---|
Tiempo | 2023-10-06 23:22:54 |
Autor | Albert Mietus < albert AT mietus DOT nl > |
Commiter | Albert Mietus < albert AT mietus DOT nl > |
ASIS: Started to generated/render: SieveMoat -- 1st ref added
@@ -0,0 +1,26 @@ | ||
1 | +# -*- python -*- | |
2 | +# Generated (R)Python file | |
3 | +# (C) Albert Mietus, 2023. Part of Castle/CCastle project | |
4 | + | |
5 | +#### | |
6 | +from CC import buildin | |
7 | +from CC import base | |
8 | + | |
9 | +#Put the Castle/generated imports here | |
10 | +import SimpleSieve | |
11 | + | |
12 | + | |
13 | +cc_CI_Sieve = buildin.CC_B_ComponentInterface(name="Sieve", | |
14 | + inherit_from=base.cc_CI_Component, | |
15 | + ports=[]) | |
16 | +cc_CI_Sieve.ports.append(buildin.CC_B_C_PortID(name="try", | |
17 | + portNo=2, # XXXX | |
18 | + protocol=SimpleSieve.cc_P_SimpleSieve, | |
19 | + direction=buildin.PortDirection.In, | |
20 | + part_of=cc_CI_Sieve)) | |
21 | +cc_CI_Sieve.ports.append(buildin.CC_B_C_PortID(name="coprime", | |
22 | + portNo=3, #XXX | |
23 | + protocol=SimpleSieve.cc_P_SimpleSieve, | |
24 | + direction=buildin.CC_B_PortDirection.Out, | |
25 | + part_of=cc_CI_Sieve)) | |
26 | + |