This commit is contained in:
Stefan Holst committed 2023-07-12 11:34:45 +09:00
1 parent cf9a98b5ce
commit f4d875f7e5
6 files changed
+30 -33

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
Circuit Graph - :mod:`kyupy.circuit`
====================================
.. automodule:: kyupy.circuit
.. autoclass:: kyupy.circuit.Node
:members:
.. autoclass:: kyupy.circuit.Line
:members:
.. autoclass:: kyupy.circuit.Circuit
:members:
-29
View File
@@ -1,29 +0,0 @@
Data Structures
===============
KyuPy provides two types of core data structures, one for gate-level circuits, and a few others for representing and storing logic data and signal values.
The data structures are designed to work together nicely with numpy arrays.
For example, all the nodes and connections in the circuit graph have consecutive integer indices that can be used to access ndarrays with associated data.
Circuit graphs also define an ordering of inputs, outputs and other nodes to easily process test vector data and alike.
Circuit Graph - :mod:`kyupy.circuit`
------------------------------------
.. automodule:: kyupy.circuit
.. autoclass:: kyupy.circuit.Node
:members:
.. autoclass:: kyupy.circuit.Line
:members:
.. autoclass:: kyupy.circuit.Circuit
:members:
Multi-Valued Logic - :mod:`kyupy.logic`
---------------------------------------
.. automodule:: kyupy.logic
:members:
+3 -2
View File
@@ -4,9 +4,10 @@ API Reference
------------- -------------
.. toctree:: .. toctree::
:maxdepth: 2 :maxdepth: 1
datastructures circuit
logic
parsers parsers
simulators simulators
miscellaneous miscellaneous
+7
View File
@@ -0,0 +1,7 @@
Multi-Valued Logic - :mod:`kyupy.logic`
=======================================
.. automodule:: kyupy.logic
:members:
+6 -1
View File
@@ -1,8 +1,13 @@
"""Data structures for representing non-hierarchical gate-level circuits. """Core module for handling non-hierarchical gate-level circuits.
The class :class:`Circuit` is a container of nodes connected by lines. The class :class:`Circuit` is a container of nodes connected by lines.
A node is an instance of class :class:`Node`, A node is an instance of class :class:`Node`,
and a line is an instance of class :class:`Line`. and a line is an instance of class :class:`Line`.
The data structures are designed to work together nicely with numpy arrays.
For example, all the nodes and connections in the circuit graph have consecutive integer indices that can be used to access ndarrays with associated data.
Circuit graphs also define an ordering of inputs, outputs and other nodes to easily process test vector data and alike.
""" """
from collections import deque, defaultdict from collections import deque, defaultdict
+1 -1
View File
@@ -1,4 +1,4 @@
"""This module contains definitions and tools for 2-, 4-, and 8-valued logic operations. """Core module for handling 2-, 4-, and 8-valued logic data and signal values.
Logic values are stored in numpy arrays with data type ``np.uint8``. Logic values are stored in numpy arrays with data type ``np.uint8``.
There are no explicit data structures in KyuPy for holding patterns, pattern sets or vectors. There are no explicit data structures in KyuPy for holding patterns, pattern sets or vectors.