19 lines
507 B
Python
19 lines
507 B
Python
import pytest
|
|
|
|
|
|
@pytest.fixture(scope='session')
|
|
def mydir():
|
|
import os
|
|
from pathlib import Path
|
|
return Path(os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__))))
|
|
|
|
@pytest.fixture(scope='session')
|
|
def b14_circuit(mydir):
|
|
from kyupy import verilog
|
|
return verilog.load(mydir / 'b14.v.gz', branchforks=True)
|
|
|
|
@pytest.fixture(scope='session')
|
|
def b14_delays(mydir, b14_circuit):
|
|
from kyupy import sdf
|
|
return sdf.load(mydir / 'b14.sdf.gz').iopaths(b14_circuit)[1:2]
|