summaryrefslogtreecommitdiff
path: root/psl/psl-qm.ads
diff options
context:
space:
mode:
authorTristan Gingold2014-11-04 20:14:19 +0100
committerTristan Gingold2014-11-04 20:14:19 +0100
commit9c195bf5d86d67ea5eb419ccf6e48dc153e57c68 (patch)
tree575346e529b99e26382b4a06f6ff2caa0b391ab2 /psl/psl-qm.ads
parent184a123f91e07c927292d67462561dc84f3a920d (diff)
downloadghdl-9c195bf5d86d67ea5eb419ccf6e48dc153e57c68.tar.gz
ghdl-9c195bf5d86d67ea5eb419ccf6e48dc153e57c68.tar.bz2
ghdl-9c195bf5d86d67ea5eb419ccf6e48dc153e57c68.zip
Move sources to src/ subdirectory.
Diffstat (limited to 'psl/psl-qm.ads')
-rw-r--r--psl/psl-qm.ads49
1 files changed, 0 insertions, 49 deletions
diff --git a/psl/psl-qm.ads b/psl/psl-qm.ads
deleted file mode 100644
index 85f1e3c..0000000
--- a/psl/psl-qm.ads
+++ /dev/null
@@ -1,49 +0,0 @@
-with PSL.Nodes; use PSL.Nodes;
-with Interfaces; use Interfaces;
-
-package PSL.QM is
- type Primes_Set (<>) is private;
-
- function Build_Primes (N : Node) return Primes_Set;
-
- function Build_Node (Ps : Primes_Set) return Node;
-
- function Reduce (N : Node) return Node;
-
- -- The maximum number of terms that this package can handle.
- -- The algorithm is in O(2**n)
- Max_Terms : constant Natural := 12;
-
- type Term_Assoc_Type is array (1 .. Max_Terms) of Node;
- Term_Assoc : Term_Assoc_Type := (others => Null_Node);
- Nbr_Terms : Natural := 0;
-
- procedure Reset;
-
- procedure Disp_Primes_Set (Ps : Primes_Set);
-private
- -- Scalar type used to represent a vector of booleans for terms.
- subtype Vector_Type is Unsigned_16;
- pragma Assert (Vector_Type'Modulus >= 2 ** Max_Terms);
-
- -- States of a vector of term.
- -- If SET is 0, this is a don't care: the term has no influence.
- -- If SET is 1, the value of the term is in VAL.
- type Prime_Type is record
- Val : Unsigned_16;
- Set : Unsigned_16;
- end record;
-
- subtype Len_Type is Natural range 0 .. 2 ** Max_Terms;
-
- type Set_Type is array (Natural range <>) of Prime_Type;
-
- -- A set of primes is a collection of at most MAX prime.
- type Primes_Set (Max : Len_Type) is record
- Nbr : Len_Type := 0;
- Set : Set_Type (1 .. Max);
- end record;
-end PSL.QM;
-
-
-