zuspec-dataclasses 0.0.1.6741044156__py2.py3-none-any.whl → 0.0.1.13064594382__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- zsp_dataclasses/impl/field_reg_c_impl.py +16 -14
- {zuspec_dataclasses-0.0.1.6741044156.dist-info → zuspec_dataclasses-0.0.1.13064594382.dist-info}/METADATA +10 -2
- {zuspec_dataclasses-0.0.1.6741044156.dist-info → zuspec_dataclasses-0.0.1.13064594382.dist-info}/RECORD +6 -6
- {zuspec_dataclasses-0.0.1.6741044156.dist-info → zuspec_dataclasses-0.0.1.13064594382.dist-info}/WHEEL +1 -1
- {zuspec_dataclasses-0.0.1.6741044156.dist-info → zuspec_dataclasses-0.0.1.13064594382.dist-info}/LICENSE +0 -0
- {zuspec_dataclasses-0.0.1.6741044156.dist-info → zuspec_dataclasses-0.0.1.13064594382.dist-info}/top_level.txt +0 -0
@@ -19,7 +19,9 @@
|
|
19
19
|
#* Author:
|
20
20
|
#*
|
21
21
|
#****************************************************************************
|
22
|
+
from vsc_dataclasses.impl.ctor import Ctor as VscCtor
|
22
23
|
import vsc_dataclasses.impl.context as vsc_ctxt
|
24
|
+
from vsc_dataclasses.impl.expr import Expr
|
23
25
|
from .ctor import Ctor
|
24
26
|
|
25
27
|
class FieldRegCImpl(object):
|
@@ -34,32 +36,32 @@ class FieldRegCImpl(object):
|
|
34
36
|
ctor = Ctor.inst()
|
35
37
|
reg_read = ctor.ctxt().findDataTypeFunction("pss::core::reg_read")
|
36
38
|
|
37
|
-
ctor.
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
[])))
|
39
|
+
call_expr = ctor.ctxt().mkTypeExprMethodCallContext(
|
40
|
+
reg_read,
|
41
|
+
self.mkRef(),
|
42
|
+
[])
|
43
|
+
return Expr(call_expr)
|
43
44
|
|
44
45
|
def write(self, value):
|
45
46
|
ctor = Ctor.inst()
|
47
|
+
vsc_ctor = VscCtor.inst()
|
48
|
+
|
46
49
|
reg_write = Ctor.inst().ctxt().findDataTypeFunction("pss::core::reg_write")
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
+
value_e = Expr.toExpr(value)
|
51
|
+
value_e = vsc_ctor.pop_expr(value_e)
|
52
|
+
|
53
|
+
return Expr(ctor.ctxt().mkTypeExprMethodCallContext(
|
50
54
|
reg_write,
|
51
55
|
self.mkRef(),
|
52
|
-
[]))
|
56
|
+
[value_e]))
|
53
57
|
|
54
58
|
def read_val(self):
|
55
59
|
ctor = Ctor.inst()
|
56
60
|
reg_read_val = Ctor.inst().ctxt().findDataTypeFunction("pss::core::reg_read_val")
|
57
|
-
ctor.
|
58
|
-
ctor.ctxt().mkTypeProcStmtExpr(
|
59
|
-
ctor.ctxt().mkTypeExprMethodCallContext(
|
61
|
+
return Expr(ctor.ctxt().mkTypeExprMethodCallContext(
|
60
62
|
reg_read_val,
|
61
63
|
self.mkRef(),
|
62
|
-
[]))
|
64
|
+
[]))
|
63
65
|
|
64
66
|
def write_val(self, value):
|
65
67
|
ctor = Ctor.inst()
|
@@ -1,6 +1,6 @@
|
|
1
|
-
Metadata-Version: 2.
|
1
|
+
Metadata-Version: 2.2
|
2
2
|
Name: zuspec-dataclasses
|
3
|
-
Version: 0.0.1.
|
3
|
+
Version: 0.0.1.13064594382
|
4
4
|
Summary: Front-end for capturing Action Relation Level models using dataclasses
|
5
5
|
Home-page: https://github.com/zuspec/zuspec-dataclasses
|
6
6
|
Author: Matthew Ballance
|
@@ -9,6 +9,14 @@ License: Apache 2.0
|
|
9
9
|
Keywords: SystemVerilog,Verilog,RTL
|
10
10
|
License-File: LICENSE
|
11
11
|
Requires-Dist: pyvsc-dataclasses
|
12
|
+
Dynamic: author
|
13
|
+
Dynamic: author-email
|
14
|
+
Dynamic: description
|
15
|
+
Dynamic: home-page
|
16
|
+
Dynamic: keywords
|
17
|
+
Dynamic: license
|
18
|
+
Dynamic: requires-dist
|
19
|
+
Dynamic: summary
|
12
20
|
|
13
21
|
|
14
22
|
PyARL-Dataclasses provides a front-end for capturing actions, and activities
|
@@ -46,7 +46,7 @@ zsp_dataclasses/impl/extend_decorator_impl.py,sha256=hRQa88X2L7-7Id7mtb-4jNt781P
|
|
46
46
|
zsp_dataclasses/impl/extend_kind_e.py,sha256=Ffae7HJ7cFzFO6_gWuHTu0bjk2Xc5ksLhzD2Hx4lbEs,940
|
47
47
|
zsp_dataclasses/impl/field_claim_impl.py,sha256=iaf8IytXDymRduzKhT85UQBlc4jV9AGSl2uTD7QQrT0,340
|
48
48
|
zsp_dataclasses/impl/field_pool_impl.py,sha256=glCQf2DdC9Yqdzy3e2zs4Y9SyRVvrhkV1dXNkL8AN3g,1192
|
49
|
-
zsp_dataclasses/impl/field_reg_c_impl.py,sha256=
|
49
|
+
zsp_dataclasses/impl/field_reg_c_impl.py,sha256=1aUW06bpbAS52dIkXt6BP5SJ7pzHANvTfXeYP22o9es,3153
|
50
50
|
zsp_dataclasses/impl/flow_obj_kind_e.py,sha256=K_M7kSKyvyU53I6MSu6TVwRFRcG7NJlP-rAckVxfF-Y,138
|
51
51
|
zsp_dataclasses/impl/fn_decorator_impl.py,sha256=-FW8z_r9opfNAm7n1rM7szXVfK7OsP9sMdNpppdP55Q,1728
|
52
52
|
zsp_dataclasses/impl/fn_impl.py,sha256=nrXtG4RiMz10INe3HDmWdwz6CCnq1UB-iNTZWLy5OUc,1062
|
@@ -124,8 +124,8 @@ zsp_dataclasses/impl/pyctxt/visitor_base.py,sha256=sTLIy8Zt3euX8gpJ0YCJ1i4XTVX5P
|
|
124
124
|
zsp_dataclasses/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
125
125
|
zsp_dataclasses/util/extract_cpp_embedded_dsl.py,sha256=SyMMLumZD6fsubj40hyekYzWyrcoUGTijJH3NmK1ihY,5630
|
126
126
|
zsp_dataclasses/util/gen_cpp_dt_defs/__main__.py,sha256=DXsm_J93bGROjqWRLQa4rXhVdKI7SdwLRokNt6CU_bM,3483
|
127
|
-
zuspec_dataclasses-0.0.1.
|
128
|
-
zuspec_dataclasses-0.0.1.
|
129
|
-
zuspec_dataclasses-0.0.1.
|
130
|
-
zuspec_dataclasses-0.0.1.
|
131
|
-
zuspec_dataclasses-0.0.1.
|
127
|
+
zuspec_dataclasses-0.0.1.13064594382.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
128
|
+
zuspec_dataclasses-0.0.1.13064594382.dist-info/METADATA,sha256=XONRNvC0ZG_Sq5zU5r37nOPReyoei3fNlg6NN7ywfIQ,653
|
129
|
+
zuspec_dataclasses-0.0.1.13064594382.dist-info/WHEEL,sha256=9Hm2OB-j1QcCUq9Jguht7ayGIIZBRTdOXD1qg9cCgPM,109
|
130
|
+
zuspec_dataclasses-0.0.1.13064594382.dist-info/top_level.txt,sha256=BHigRYcGvNv_xCJUUv5OXgSPSoczsH3Tle0gABks4l0,16
|
131
|
+
zuspec_dataclasses-0.0.1.13064594382.dist-info/RECORD,,
|
File without changes
|
File without changes
|