|
|
|
@ -10,7 +10,7 @@ import math
@@ -10,7 +10,7 @@ import math
|
|
|
|
|
|
|
|
|
|
import numpy as np |
|
|
|
|
|
|
|
|
|
from . import numba, logic, hr_bytes, sim |
|
|
|
|
from . import numba, logic, hr_bytes, sim, eng |
|
|
|
|
from .circuit import Circuit |
|
|
|
|
|
|
|
|
|
class LogicSim(sim.SimOps): |
|
|
|
@ -44,7 +44,7 @@ class LogicSim(sim.SimOps):
@@ -44,7 +44,7 @@ class LogicSim(sim.SimOps):
|
|
|
|
|
self.s[:,:,1,:] = 255 # unassigned |
|
|
|
|
|
|
|
|
|
def __repr__(self): |
|
|
|
|
return f'{{name: "{self.circuit.name}", sims: {self.sims}, m: {self.m}, c_bytes: {self.c.nbytes}}}' |
|
|
|
|
return f'{{name: "{self.circuit.name}", sims: {self.sims}, m: {self.m}, c_bytes: {eng(self.c.nbytes)}}}' |
|
|
|
|
|
|
|
|
|
def s_to_c(self): |
|
|
|
|
"""Copies the values from ``s[0]`` the inputs of the combinational portion. |
|
|
|
|