Compare commits

...

2 Commits

  1. 1
      .python-version
  2. 7
      pyproject.toml
  3. 3
      tests/test_wave_sim.py

1
.python-version

@ -0,0 +1 @@ @@ -0,0 +1 @@
3.13

7
pyproject.toml

@ -6,7 +6,7 @@ authors = [ @@ -6,7 +6,7 @@ authors = [
]
description = 'High-performance processing and analysis of non-hierarchical VLSI designs'
readme = "README.rst"
requires_python = ">=3.8"
requires-python = ">=3.10,<3.14"
dependencies = [
"numpy>=1.17.0",
"lark>=1.3.0",
@ -30,3 +30,8 @@ homepage = "https://github.com/s-holst/kyupy" @@ -30,3 +30,8 @@ homepage = "https://github.com/s-holst/kyupy"
requires = ["hatchling"]
build-backend = "hatchling.build"
[dependency-groups]
dev = [
"pytest>=9.0.1",
]

3
tests/test_wave_sim.py

@ -41,11 +41,10 @@ def test_xnor2_delays(): @@ -41,11 +41,10 @@ def test_xnor2_delays():
def test_nand_delays():
op = (sim.NAND4, 4, 0, 1, 2, 3, -1, 0, 0)
#op = (0b0111, 4, 0, 1)
c = np.full((5*16, 1), TMAX, dtype=np.float32) # 5 waveforms of capacity 16
c_locs = np.zeros((5,), dtype='int')
c_caps = np.zeros((5,), dtype='int')
ebuf = np.zeros((4, 1, 2), dtype=np.int32)
ebuf = np.zeros((5, 1, 2), dtype=np.int32)
for i in range(5): c_locs[i], c_caps[i] = i*16, 16 # 1:1 mapping

Loading…
Cancel
Save