doc and indent fix
This commit is contained in:
1 parent
8434f5e694
commit
c5be32d7e5
2 files changed
+3
-3
No files matched your search
@@ -107,10 +107,10 @@ class LogicSim:
|
|||||||
sim.capture(state_bp)
|
sim.capture(state_bp)
|
||||||
|
|
||||||
:param inject_cb: A callback function for manipulating intermediate signal values.
|
:param inject_cb: A callback function for manipulating intermediate signal values.
|
||||||
This function is called with a line index and its new logic values (in bit-parallel format) after
|
This function is called with a line and its new logic values (in bit-parallel format) after
|
||||||
evaluation of a node. The callback may manipulate the given values in-place, the simulation
|
evaluation of a node. The callback may manipulate the given values in-place, the simulation
|
||||||
resumes with the manipulated values after the callback returns.
|
resumes with the manipulated values after the callback returns.
|
||||||
:type inject_cb: ``f(int, ndarray)``
|
:type inject_cb: ``f(Line, ndarray)``
|
||||||
"""
|
"""
|
||||||
for node in self.circuit.topological_order():
|
for node in self.circuit.topological_order():
|
||||||
if self.state_epoch[node] != self.epoch: continue
|
if self.state_epoch[node] != self.epoch: continue
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ class VerilogTransformer(Transformer):
|
|||||||
def instantiation(args):
|
def instantiation(args):
|
||||||
return Instantiation(args[0], args[1],
|
return Instantiation(args[0], args[1],
|
||||||
dict((pin.children[0],
|
dict((pin.children[0],
|
||||||
pin.children[1]) for pin in args[2:] if len(pin.children) > 1))
|
pin.children[1]) for pin in args[2:] if len(pin.children) > 1))
|
||||||
|
|
||||||
def range(self, args):
|
def range(self, args):
|
||||||
left = int(args[0].value)
|
left = int(args[0].value)
|
||||||
|
|||||||
Reference in new issue
Block a user