summaryrefslogtreecommitdiffstats
path: root/src/regtests/jedutil
diff options
context:
space:
mode:
authorGravatarGravatar Scott Stone <tafoid@users.noreply.github.com>2012-09-05 22:44:28 +0000
committerGravatarGravatar Scott Stone <tafoid@users.noreply.github.com>2012-09-05 22:44:28 +0000
commitec94908b351fef1990102cf15b8766d90de130fa (patch) (github)
treec384039540e8b1debeb69d73ddcf5c6eeb3ff3e6 /src/regtests/jedutil
parent47c42009c7548eaeb50442c4588920eb5eef3f77 (diff)
downloadmame-ec94908b351fef1990102cf15b8766d90de130fa.tar.bz2
mame-ec94908b351fef1990102cf15b8766d90de130fa.zip
Numerous jedutil tool improvements. [Kevin Eshbach]
Made some modifications to the jedutil tool to allow the viewing of simple combinatorial jeds (adding support for registered and gals in the future) by taking a jed file and printing out human-readable equations. Changed the command line options of the jedutil tool to know take an initial argument to specify what the tool should do. For example to convert a jed to bin the command is now: jedutil –convert <source.jed> <dest.bin> jedutil –convert <source.bin> <dest.jed> To view a jed file with human-readable equations the command is jedutil –view <source.jed> <pal type> Added a simple regression test for the tool that just verifies that the currently known pals have the row and column fuse location mapped correctly and at the moment this tool runs under windows only. Under the directory src/regtests/jedutil there is a Windows Script File with the name jedtest.wsf that if run from the command line with the command “cscript jedtest.wsf” will verify that a dump of the jeds in src/regtests/jedutil/jeds matches the good dumps in src/regtests/jedutil/baseline. Reference jed files created using the tool eqn2jed which is included with Opal Jr and these files are in src/regtests/jedutil/eqns.
Diffstat (limited to 'src/regtests/jedutil')
-rw-r--r--src/regtests/jedutil/baseline/pal10h8.txt33
-rw-r--r--src/regtests/jedutil/baseline/pal10l8.txt33
-rw-r--r--src/regtests/jedutil/baseline/pal12h6.txt29
-rw-r--r--src/regtests/jedutil/baseline/pal12l6.txt29
-rw-r--r--src/regtests/jedutil/baseline/pal14h4.txt25
-rw-r--r--src/regtests/jedutil/baseline/pal14l4.txt25
-rw-r--r--src/regtests/jedutil/baseline/pal16h2.txt21
-rw-r--r--src/regtests/jedutil/baseline/pal16l2.txt21
-rw-r--r--src/regtests/jedutil/baseline/pal16l8.txt73
-rw-r--r--src/regtests/jedutil/baseline/pal20l10.txt51
-rw-r--r--src/regtests/jedutil/baseline/pal20l8.txt73
-rw-r--r--src/regtests/jedutil/eqns/pal10h8.eqn30
-rw-r--r--src/regtests/jedutil/eqns/pal10l8.eqn30
-rw-r--r--src/regtests/jedutil/eqns/pal12h6.eqn28
-rw-r--r--src/regtests/jedutil/eqns/pal12l6.eqn28
-rw-r--r--src/regtests/jedutil/eqns/pal14h4.eqn26
-rw-r--r--src/regtests/jedutil/eqns/pal14l4.eqn26
-rw-r--r--src/regtests/jedutil/eqns/pal16h2.eqn24
-rw-r--r--src/regtests/jedutil/eqns/pal16l2.eqn24
-rw-r--r--src/regtests/jedutil/eqns/pal16l8.eqn79
-rw-r--r--src/regtests/jedutil/eqns/pal20l10.eqn56
-rw-r--r--src/regtests/jedutil/eqns/pal20l8.eqn78
-rw-r--r--src/regtests/jedutil/eqns/readme.txt1
-rw-r--r--src/regtests/jedutil/jeds/pal10h8.jed36
-rw-r--r--src/regtests/jedutil/jeds/pal10l8.jed36
-rw-r--r--src/regtests/jedutil/jeds/pal12h6.jed34
-rw-r--r--src/regtests/jedutil/jeds/pal12l6.jed34
-rw-r--r--src/regtests/jedutil/jeds/pal14h4.jed32
-rw-r--r--src/regtests/jedutil/jeds/pal14l4.jed32
-rw-r--r--src/regtests/jedutil/jeds/pal16h2.jed30
-rw-r--r--src/regtests/jedutil/jeds/pal16l2.jed30
-rw-r--r--src/regtests/jedutil/jeds/pal16l8.jed85
-rw-r--r--src/regtests/jedutil/jeds/pal20l10.jed62
-rw-r--r--src/regtests/jedutil/jeds/pal20l8.jed84
-rw-r--r--src/regtests/jedutil/jedtest.wsf209
35 files changed, 1547 insertions, 0 deletions
diff --git a/src/regtests/jedutil/baseline/pal10h8.txt b/src/regtests/jedutil/baseline/pal10h8.txt
new file mode 100644
index 00000000000..25e7c611d65
--- /dev/null
+++ b/src/regtests/jedutil/baseline/pal10h8.txt
@@ -0,0 +1,33 @@
+o12 = /i1 & i2 & i3 & i4 & i5 & i6 & i7 & i8 +
+ i9 & i11
+o12.oe = vcc
+
+o13 = i1 & /i2 & i3 & i4 & i5 & i6 & i7 & i8 +
+ /i9 & i11
+o13.oe = vcc
+
+o14 = i1 & i2 & /i3 & i4 & i5 & i6 & i7 & i8 +
+ i9 & /i11
+o14.oe = vcc
+
+o15 = i1 & i2 & i3 & /i4 & i5 & i6 & i7 & i8 +
+ /i9 & /i11
+o15.oe = vcc
+
+o16 = i1 & i2 & i3 & i4 & /i5 & i6 & i7 & i8 +
+ /i9 & /i11
+o16.oe = vcc
+
+o17 = i1 & i2 & i3 & i4 & i5 & /i6 & i7 & i8 +
+ i9 & /i11
+o17.oe = vcc
+
+o18 = i1 & i2 & i3 & i4 & i5 & i6 & /i7 & i8 +
+ /i9 & i11
+o18.oe = vcc
+
+o19 = i1 & i2 & i3 & i4 & i5 & i6 & i7 & /i8 +
+ i11
+o19.oe = vcc
+
+
diff --git a/src/regtests/jedutil/baseline/pal10l8.txt b/src/regtests/jedutil/baseline/pal10l8.txt
new file mode 100644
index 00000000000..74a47cfe5c0
--- /dev/null
+++ b/src/regtests/jedutil/baseline/pal10l8.txt
@@ -0,0 +1,33 @@
+/o12 = /i1 & i2 & i3 & i4 & i5 & i6 & i7 & i8 +
+ i9 & i11
+o12.oe = vcc
+
+/o13 = i1 & /i2 & i3 & i4 & i5 & i6 & i7 & i8 +
+ /i9 & i11
+o13.oe = vcc
+
+/o14 = i1 & i2 & /i3 & i4 & i5 & i6 & i7 & i8 +
+ i9 & /i11
+o14.oe = vcc
+
+/o15 = i1 & i2 & i3 & /i4 & i5 & i6 & i7 & i8 +
+ /i9 & /i11
+o15.oe = vcc
+
+/o16 = i1 & i2 & i3 & i4 & /i5 & i6 & i7 & i8 +
+ /i9 & /i11
+o16.oe = vcc
+
+/o17 = i1 & i2 & i3 & i4 & i5 & /i6 & i7 & i8 +
+ i9 & /i11
+o17.oe = vcc
+
+/o18 = i1 & i2 & i3 & i4 & i5 & i6 & /i7 & i8 +
+ i11
+o18.oe = vcc
+
+/o19 = i1 & i2 & i3 & i4 & i5 & i6 & i7 & /i8 +
+ /i9
+o19.oe = vcc
+
+
diff --git a/src/regtests/jedutil/baseline/pal12h6.txt b/src/regtests/jedutil/baseline/pal12h6.txt
new file mode 100644
index 00000000000..3ba3b54cc6c
--- /dev/null
+++ b/src/regtests/jedutil/baseline/pal12h6.txt
@@ -0,0 +1,29 @@
+o13 = /i1 & i2 & i3 & i4 & i5 & i6 & i7 & i8 +
+ i9 & i11 +
+ /i19 +
+ i12
+o13.oe = vcc
+
+o14 = i1 & /i2 & i3 & i4 & i5 & i6 & i7 & i8 +
+ /i9 & i11
+o14.oe = vcc
+
+o15 = i1 & i2 & i3 & /i4 & i5 & i6 & i7 & i8 +
+ /i9 & /i11
+o15.oe = vcc
+
+o16 = i1 & i2 & i3 & i4 & i5 & i6 & /i7 & i8 +
+ i9 & /i11
+o16.oe = vcc
+
+o17 = i1 & i2 & i3 & i4 & /i5 & i6 & i7 & i8 +
+ /i9 & /i11
+o17.oe = vcc
+
+o18 = i1 & i2 & i3 & i4 & i5 & /i6 & i7 & i8 +
+ /i9 & i11 +
+ i19 +
+ /i12
+o18.oe = vcc
+
+
diff --git a/src/regtests/jedutil/baseline/pal12l6.txt b/src/regtests/jedutil/baseline/pal12l6.txt
new file mode 100644
index 00000000000..1ad002f171b
--- /dev/null
+++ b/src/regtests/jedutil/baseline/pal12l6.txt
@@ -0,0 +1,29 @@
+/o13 = /i1 & i2 & i3 & i4 & i5 & i6 & i7 & i8 +
+ i9 & i11 +
+ /i19 +
+ i12
+o13.oe = vcc
+
+/o14 = i1 & /i2 & i3 & i4 & i5 & i6 & i7 & i8 +
+ /i9 & i11
+o14.oe = vcc
+
+/o15 = i1 & i2 & /i3 & i4 & i5 & i6 & i7 & i8 +
+ i9 & i11
+o15.oe = vcc
+
+/o16 = i1 & i2 & i3 & /i4 & i5 & i6 & i7 & i8 +
+ /i9 & /i11
+o16.oe = vcc
+
+/o17 = i1 & i2 & i3 & i4 & /i5 & i6 & i7 & i8 +
+ /i9 & /i11
+o17.oe = vcc
+
+/o18 = i1 & i2 & i3 & i4 & i5 & /i6 & i7 & i8 +
+ /i9 & i11 +
+ i19 +
+ /i12
+o18.oe = vcc
+
+
diff --git a/src/regtests/jedutil/baseline/pal14h4.txt b/src/regtests/jedutil/baseline/pal14h4.txt
new file mode 100644
index 00000000000..7e3c7cb05bd
--- /dev/null
+++ b/src/regtests/jedutil/baseline/pal14h4.txt
@@ -0,0 +1,25 @@
+o14 = /i1 & i2 & i3 & i4 & i5 & i6 & i7 & i8 +
+ i9 & i11 +
+ /i12 & /i13 +
+ i18 & /i19
+o14.oe = vcc
+
+o15 = i1 & /i2 & i3 & i4 & i5 & i6 & i7 & i8 +
+ i9 & /i11 +
+ i12 & i13 +
+ /i18 & i19
+o15.oe = vcc
+
+o16 = i1 & i2 & /i3 & i4 & i5 & i6 & i7 & i8 +
+ /i9 & i11 +
+ i12 & /i13 +
+ /i18 & /i19
+o16.oe = vcc
+
+o17 = i1 & i2 & i3 & /i4 & i5 & i6 & i7 & i8 +
+ i9 & i11 +
+ /i12 & i13 +
+ i18 & i19
+o17.oe = vcc
+
+
diff --git a/src/regtests/jedutil/baseline/pal14l4.txt b/src/regtests/jedutil/baseline/pal14l4.txt
new file mode 100644
index 00000000000..26b9cc817b1
--- /dev/null
+++ b/src/regtests/jedutil/baseline/pal14l4.txt
@@ -0,0 +1,25 @@
+/o14 = i1 & /i2 & i3 & i4 & i5 & i6 & i7 & i8 +
+ /i9 & i11 +
+ i12 & /i13 +
+ i18 & i19
+o14.oe = vcc
+
+/o15 = i1 & i2 & i3 & /i4 & i5 & i6 & i7 & i8 +
+ /i9 & /i11 +
+ /i12 & i13 +
+ /i18 & i19
+o15.oe = vcc
+
+/o16 = i1 & i2 & i3 & i4 & /i5 & i6 & i7 & i8 +
+ /i9 & /i11 +
+ i12 & i13 +
+ i18 & /i19
+o16.oe = vcc
+
+/o17 = i1 & i2 & i3 & i4 & i5 & /i6 & i7 & i8 +
+ /i9 & i11 +
+ /i12 & /i13 +
+ /i18 & /i19
+o17.oe = vcc
+
+
diff --git a/src/regtests/jedutil/baseline/pal16h2.txt b/src/regtests/jedutil/baseline/pal16h2.txt
new file mode 100644
index 00000000000..ab5aa6656ee
--- /dev/null
+++ b/src/regtests/jedutil/baseline/pal16h2.txt
@@ -0,0 +1,21 @@
+o15 = i1 & i2 & i3 & /i4 & i5 & /i6 & i7 & i8 +
+ i9 +
+ /i11 +
+ i12 +
+ /i13 +
+ i14 +
+ /i17 +
+ i18 & /i19
+o15.oe = vcc
+
+o16 = i1 & i2 & /i3 & i4 & /i5 & i6 & i7 & i8 +
+ /i9 +
+ i11 +
+ /i12 +
+ i13 +
+ /i14 +
+ i17 +
+ /i18 & i19
+o16.oe = vcc
+
+
diff --git a/src/regtests/jedutil/baseline/pal16l2.txt b/src/regtests/jedutil/baseline/pal16l2.txt
new file mode 100644
index 00000000000..7db39f9fe3e
--- /dev/null
+++ b/src/regtests/jedutil/baseline/pal16l2.txt
@@ -0,0 +1,21 @@
+/o15 = i1 & i2 & i3 & /i4 & i5 & i6 & i7 & i8 +
+ /i9 +
+ /i11 +
+ /i12 +
+ i13 +
+ i14 +
+ i17 +
+ i18 & i19
+o15.oe = vcc
+
+/o16 = i1 & i2 & i3 & i4 & i5 & i6 & /i7 & i8 +
+ i9 +
+ i11 +
+ i12 +
+ /i13 +
+ /i14 +
+ /i17 +
+ /i18 & /i19
+o16.oe = vcc
+
+
diff --git a/src/regtests/jedutil/baseline/pal16l8.txt b/src/regtests/jedutil/baseline/pal16l8.txt
new file mode 100644
index 00000000000..e591b1004eb
--- /dev/null
+++ b/src/regtests/jedutil/baseline/pal16l8.txt
@@ -0,0 +1,73 @@
+/o12 = i3 & i7 & /i9 +
+ i1 & o13 +
+ i3 +
+ /i6 +
+ i8 +
+ /i9 +
+ i7 & /o13
+o12.oe = vcc
+
+/o13 = i11 & /o14 +
+ /i9 +
+ i8 +
+ /i7 +
+ /i6 & o14 +
+ i5 +
+ i4
+o13.oe = i2 & o14
+
+/o14 = i1 & /o15 +
+ /i8 +
+ i1 & /i8 +
+ i1 & /i2 & /o15 +
+ /i2 +
+ i2 & /i8 & o15 +
+ i3
+o14.oe = vcc
+
+/o15 = i3 & i6 & i7 & /i11 +
+ i6 & o16 +
+ i3 & /o16 +
+ i7 +
+ /i11 +
+ i6 & i7 +
+ i7 & /i11
+o15.oe = vcc
+
+/o16 = /i3 & /o17 +
+ /i4 & /i11 +
+ /i3 & /i4 +
+ /i3 & i4 +
+ /i7 & o17 +
+ /i7 & /i11 +
+ i4
+o16.oe = vcc
+
+/o17 = i2 & i5 & i6 & /i7 +
+ i2 & /o18 +
+ i5 +
+ i6 +
+ /i7 & o18 +
+ i2 & /i7 +
+ i5 & i6
+o17.oe = /o16
+
+/o18 = /i2 & i5 & i6 & /i7 +
+ i3 & i6 & i7 & i11 +
+ i3 +
+ /i2 & /i7 +
+ i3 & i11 +
+ i5 & i6 & /i7 +
+ i7 & i11
+o18.oe = vcc
+
+/o19 = i5 & i6 & /i7 & i11 +
+ i3 & i6 & i7 +
+ i5 +
+ i6 +
+ i7 +
+ i11 +
+ /i7
+o19.oe = vcc
+
+
diff --git a/src/regtests/jedutil/baseline/pal20l10.txt b/src/regtests/jedutil/baseline/pal20l10.txt
new file mode 100644
index 00000000000..20292efa87c
--- /dev/null
+++ b/src/regtests/jedutil/baseline/pal20l10.txt
@@ -0,0 +1,51 @@
+/o14 = /i11 +
+ i10 +
+ i9 & /o15
+o14.oe = o15
+
+/o15 = /i1 & i2 & /i3 & i4 & i11 +
+ /i1 & i2 & /i3 & /i5 & /i13 & o16 +
+ /i1 & i2 & /i3 & i6
+o15.oe = /o16
+
+/o16 = i1 & /i2 & /o17 +
+ i3 & /i4 +
+ i3 & i9 & o17
+o16.oe = vcc
+
+/o17 = /o18 +
+ i10 & o18 +
+ i9
+o17.oe = i4 & i5
+
+/o18 = i1 & /i2 & i3 & /i4 & /i8 +
+ /i6 & i7 & i8 & i9 & i10 & /o19 +
+ i1 & i2 & i3 & /i4 & /i5 & o19
+o18.oe = i1 & i10
+
+/o19 = i11 & o20 +
+ i2 & /i10 +
+ i9 & i11
+o19.oe = i8 & /o20
+
+/o20 = o21 +
+ /i6 +
+ /i7 & /o21
+o20.oe = vcc
+
+/o21 = i1 & i8 +
+ /i4 & /o22 +
+ o22
+o21.oe = i5 & i6
+
+/o22 = i1 & /i8 +
+ /i8 +
+ i1
+o22.oe = i3 & /i7
+
+/o23 = i7 +
+ i11 +
+ /i13
+o23.oe = vcc
+
+
diff --git a/src/regtests/jedutil/baseline/pal20l8.txt b/src/regtests/jedutil/baseline/pal20l8.txt
new file mode 100644
index 00000000000..5a824490618
--- /dev/null
+++ b/src/regtests/jedutil/baseline/pal20l8.txt
@@ -0,0 +1,73 @@
+/o15 = /i1 & i2 & /i3 & i4 & i11 +
+ /i1 & i2 & /i3 & /i5 & /i13 +
+ /i1 & i2 & /i3 & i6 & i14 +
+ /i1 & i2 & /i3 & /i7 & /i23 +
+ /i1 & i2 & /i3 & i8 & /i11 +
+ /i1 & i2 & /i3 & /i9 & i13 +
+ /o16
+o15.oe = o16
+
+/o16 = i1 & /i2 & /o17 +
+ i3 & /i4 +
+ i5 & /i6 +
+ i7 & /i8 +
+ i3 & i9 & o17 +
+ i1 & /i2 & i3 & /i4 & i5 & /i6 & i7 & /i8 & /i9 +
+ /i8 & /i9
+o16.oe = vcc
+
+/o17 = /o18 & /i23 +
+ i10 & o18 +
+ i9 +
+ i8 +
+ /i7 +
+ /i6 +
+ i5
+o17.oe = i4 & i5
+
+/o18 = i1 & /i2 & i3 & /i4 & /i8 & i23 +
+ i1 & i2 & i3 & /i4 & /i5 +
+ /i6 & i7 & i8 & i9 & i10 & /o19 +
+ i11 & i13 & i14 & i23 +
+ /i6 & i7 & i8 & i9 & i10 +
+ i3 & i13 & i14 & i23 +
+ i1 & i2 & i3 & /i4 & /i5 & o19
+o18.oe = i1 & i10 & i23
+
+/o19 = i9 & /i10 & i11 & i23 +
+ i9 +
+ /i10 +
+ i11 & o20 +
+ i23 +
+ i2 & /i10 & i23 +
+ i9 & i11
+o19.oe = i8 & /o20
+
+/o20 = o21 +
+ /i2 +
+ /i3 +
+ /i4 +
+ /i5 +
+ /i6 +
+ /i7 & /o21
+o20.oe = vcc
+
+/o21 = i1 & i8 +
+ /i14 +
+ i1 & /i5 & i8 +
+ i23 +
+ i1 & i8 & /i14 +
+ i13 +
+ i1 & i11
+o21.oe = i5 & i6
+
+/o22 = i1 & /i8 +
+ /i8 +
+ i1 +
+ /i10 +
+ /i23 +
+ i8 & /i13 +
+ /i11
+o22.oe = i3 & /i7
+
+
diff --git a/src/regtests/jedutil/eqns/pal10h8.eqn b/src/regtests/jedutil/eqns/pal10h8.eqn
new file mode 100644
index 00000000000..690cdcf090a
--- /dev/null
+++ b/src/regtests/jedutil/eqns/pal10h8.eqn
@@ -0,0 +1,30 @@
+chip 2000 PAL10H8
+
+i1=1 i2=2 i3=3 i4=4 i5=5 i6=6 i7=7 i8=8 i9=9 GND=10 i11=11
+o12=12 o13=13 o14=14 o15=15 o16=16 o17=17 o18=18 o19=19 VCC=20
+
+equations
+
+o12 = /i1 & i2 & i3 & i4 & i5 & i6 & i7 & i8 +
+ i9 & i11
+
+o13 = i1 & /i2 & i3 & i4 & i5 & i6 & i7 & i8 +
+ /i9 & i11
+
+o14 = i1 & i2 & /i3 & i4 & i5 & i6 & i7 & i8 +
+ i9 & /i11
+
+o15 = i1 & i2 & i3 & /i4 & i5 & i6 & i7 & i8 +
+ /i9 & /i11
+
+o16 = i1 & i2 & i3 & i4 & /i5 & i6 & i7 & i8 +
+ /i9 & /i11
+
+o17 = i1 & i2 & i3 & i4 & i5 & /i6 & i7 & i8 +
+ i9 & /i11
+
+o18 = i1 & i2 & i3 & i4 & i5 & i6 & /i7 & i8 +
+ /i9 & i11
+
+o19 = i1 & i2 & i3 & i4 & i5 & i6 & i7 & /i8 +
+ i11
diff --git a/src/regtests/jedutil/eqns/pal10l8.eqn b/src/regtests/jedutil/eqns/pal10l8.eqn
new file mode 100644
index 00000000000..b316ec32d26
--- /dev/null
+++ b/src/regtests/jedutil/eqns/pal10l8.eqn
@@ -0,0 +1,30 @@
+chip 2000 PAL10L8
+
+i1=1 i2=2 i3=3 i4=4 i5=5 i6=6 i7=7 i8=8 i9=9 GND=10 i11=11
+o12=12 o13=13 o14=14 o15=15 o16=16 o17=17 o18=18 o19=19 VCC=20
+
+equations
+
+/o12 = /i1 & i2 & i3 & i4 & i5 & i6 & i7 & i8 +
+ i9 & i11
+
+/o13 = i1 & /i2 & i3 & i4 & i5 & i6 & i7 & i8 +
+ /i9 & i11
+
+/o14 = i1 & i2 & /i3 & i4 & i5 & i6 & i7 & i8 +
+ i9 & /i11
+
+/o15 = i1 & i2 & i3 & /i4 & i5 & i6 & i7 & i8 +
+ /i9 & /i11
+
+/o16 = i1 & i2 & i3 & i4 & /i5 & i6 & i7 & i8 +
+ /i9 & /i11
+
+/o17 = i1 & i2 & i3 & i4 & i5 & /i6 & i7 & i8 +
+ i9 & /i11
+
+/o18 = i1 & i2 & i3 & i4 & i5 & i6 & /i7 & i8 +
+ i11
+
+/o19 = i1 & i2 & i3 & i4 & i5 & i6 & i7 & /i8 +
+ /i9
diff --git a/src/regtests/jedutil/eqns/pal12h6.eqn b/src/regtests/jedutil/eqns/pal12h6.eqn
new file mode 100644
index 00000000000..43b72ca6dc3
--- /dev/null
+++ b/src/regtests/jedutil/eqns/pal12h6.eqn
@@ -0,0 +1,28 @@
+chip 2000 PAL12H6
+
+i1=1 i2=2 i3=3 i4=4 i5=5 i6=6 i7=7 i8=8 i9=9 GND=10 i11=11
+i12=12 o13=13 o14=14 o15=15 o16=16 o17=17 o18=18 i19=19 VCC=20
+
+equations
+
+o13 = /i1 & i2 & i3 & i4 & i5 & i6 & i7 & i8 +
+ i9 & i11 +
+ /i19 +
+ i12
+
+o14 = i1 & /i2 & i3 & i4 & i5 & i6 & i7 & i8 +
+ /i9 & i11
+
+o15 = i1 & i2 & i3 & /i4 & i5 & i6 & i7 & i8 +
+ /i9 & /i11
+
+o16 = i1 & i2 & i3 & i4 & i5 & i6 & /i7 & i8 +
+ i9 & /i11
+
+o17 = i1 & i2 & i3 & i4 & /i5 & i6 & i7 & i8 +
+ /i9 & /i11
+
+o18 = i1 & i2 & i3 & i4 & i5 & /i6 & i7 & i8 +
+ /i9 & i11 +
+ i19 +
+ /i12
diff --git a/src/regtests/jedutil/eqns/pal12l6.eqn b/src/regtests/jedutil/eqns/pal12l6.eqn
new file mode 100644
index 00000000000..a1867dd827a
--- /dev/null
+++ b/src/regtests/jedutil/eqns/pal12l6.eqn
@@ -0,0 +1,28 @@
+chip 2000 PAL12L6
+
+i1=1 i2=2 i3=3 i4=4 i5=5 i6=6 i7=7 i8=8 i9=9 GND=10 i11=11
+i12=12 o13=13 o14=14 o15=15 o16=16 o17=17 o18=18 i19=19 VCC=20
+
+equations
+
+/o13 = /i1 & i2 & i3 & i4 & i5 & i6 & i7 & i8 +
+ i9 & i11 +
+ /i19 +
+ i12
+
+/o14 = i1 & /i2 & i3 & i4 & i5 & i6 & i7 & i8 +
+ /i9 & i11
+
+/o15 = i1 & i2 & /i3 & i4 & i5 & i6 & i7 & i8 +
+ i9 & i11
+
+/o16 = i1 & i2 & i3 & /i4 & i5 & i6 & i7 & i8 +
+ /i9 & /i11
+
+/o17 = i1 & i2 & i3 & i4 & /i5 & i6 & i7 & i8 +
+ /i9 & /i11
+
+/o18 = i1 & i2 & i3 & i4 & i5 & /i6 & i7 & i8 +
+ /i9 & i11 +
+ i19 +
+ /i12
diff --git a/src/regtests/jedutil/eqns/pal14h4.eqn b/src/regtests/jedutil/eqns/pal14h4.eqn
new file mode 100644
index 00000000000..7db1b42ee27
--- /dev/null
+++ b/src/regtests/jedutil/eqns/pal14h4.eqn
@@ -0,0 +1,26 @@
+chip 2000 PAL14H4
+
+i1=1 i2=2 i3=3 i4=4 i5=5 i6=6 i7=7 i8=8 i9=9 GND=10 i11=11
+i12=12 i13=13 o14=14 o15=15 o16=16 o17=17 i18=18 i19=19 VCC=20
+
+equations
+
+o14 = /i1 & i2 & i3 & i4 & i5 & i6 & i7 & i8 +
+ i9 & i11 +
+ /i12 & /i13 +
+ i18 & /i19
+
+o15 = i1 & /i2 & i3 & i4 & i5 & i6 & i7 & i8 +
+ i9 & /i11 +
+ i12 & i13 +
+ /i18 & i19
+
+o16 = i1 & i2 & /i3 & i4 & i5 & i6 & i7 & i8 +
+ /i9 & i11 +
+ i12 & /i13 +
+ /i18 & /i19
+
+o17 = i1 & i2 & i3 & /i4 & i5 & i6 & i7 & i8 +
+ i9 & i11 +
+ /i12 & i13 +
+ i18 & i19
diff --git a/src/regtests/jedutil/eqns/pal14l4.eqn b/src/regtests/jedutil/eqns/pal14l4.eqn
new file mode 100644
index 00000000000..0e63b68c612
--- /dev/null
+++ b/src/regtests/jedutil/eqns/pal14l4.eqn
@@ -0,0 +1,26 @@
+chip 2000 PAL14L4
+
+i1=1 i2=2 i3=3 i4=4 i5=5 i6=6 i7=7 i8=8 i9=9 GND=10 i11=11
+i12=12 i13=13 o14=14 o15=15 o16=16 o17=17 i18=18 i19=19 VCC=20
+
+equations
+
+/o14 = i1 & /i2 & i3 & i4 & i5 & i6 & i7 & i8 +
+ /i9 & i11 +
+ i12 & /i13 +
+ i18 & i19
+
+/o15 = i1 & i2 & i3 & /i4 & i5 & i6 & i7 & i8 +
+ /i9 & /i11 +
+ /i12 & i13 +
+ /i18 & i19
+
+/o16 = i1 & i2 & i3 & i4 & /i5 & i6 & i7 & i8 +
+ /i9 & /i11 +
+ i12 & i13 +
+ i18 & /i19
+
+/o17 = i1 & i2 & i3 & i4 & i5 & /i6 & i7 & i8 +
+ /i9 & i11 +
+ /i12 & /i13 +
+ /i18 & /i19
diff --git a/src/regtests/jedutil/eqns/pal16h2.eqn b/src/regtests/jedutil/eqns/pal16h2.eqn
new file mode 100644
index 00000000000..cd597b209c2
--- /dev/null
+++ b/src/regtests/jedutil/eqns/pal16h2.eqn
@@ -0,0 +1,24 @@
+chip 2000 PAL16H2
+
+i1=1 i2=2 i3=3 i4=4 i5=5 i6=6 i7=7 i8=8 i9=9 GND=10 i11=11
+i12=12 i13=13 i14=14 o15=15 o16=16 i17=17 i18=18 i19=19 VCC=20
+
+equations
+
+o15 = i1 & i2 & i3 & /i4 & i5 & /i6 & i7 & i8 +
+ i9 +
+ /i11 +
+ i12 +
+ /i13 +
+ i14 +
+ /i17 +
+ i18 & /i19
+
+o16 = i1 & i2 & /i3 & i4 & /i5 & i6 & i7 & i8 +
+ /i9 +
+ i11 +
+ /i12 +
+ i13 +
+ /i14 +
+ i17 +
+ /i18 & i19
diff --git a/src/regtests/jedutil/eqns/pal16l2.eqn b/src/regtests/jedutil/eqns/pal16l2.eqn
new file mode 100644
index 00000000000..d68a83e9173
--- /dev/null
+++ b/src/regtests/jedutil/eqns/pal16l2.eqn
@@ -0,0 +1,24 @@
+chip 2000 PAL16L2
+
+i1=1 i2=2 i3=3 i4=4 i5=5 i6=6 i7=7 i8=8 i9=9 GND=10 i11=11
+i12=12 i13=13 i14=14 o15=15 o16=16 i17=17 i18=18 i19=19 VCC=20
+
+equations
+
+/o15 = i1 & i2 & i3 & /i4 & i5 & i6 & i7 & i8 +
+ /i9 +
+ /i11 +
+ /i12 +
+ i13 +
+ i14 +
+ i17 +
+ i18 & i19
+
+/o16 = i1 & i2 & i3 & i4 & i5 & i6 & /i7 & i8 +
+ i9 +
+ i11 +
+ i12 +
+ /i13 +
+ /i14 +
+ /i17 +
+ /i18 & /i19
diff --git a/src/regtests/jedutil/eqns/pal16l8.eqn b/src/regtests/jedutil/eqns/pal16l8.eqn
new file mode 100644
index 00000000000..6daddee92dd
--- /dev/null
+++ b/src/regtests/jedutil/eqns/pal16l8.eqn
@@ -0,0 +1,79 @@
+md
+chip 2000 PAL16L8
+
+i1=1 i2=2 i3=3 i4=4 i5=5 i6=6 i7=7 i8=8 i9=9 GND=10
+i11=11 o12=12 o13=13 o14=14 o15=15 o16=16 o17=17 o18=18 o19=19 VCC=20
+
+equations
+
+/o12 = i3 & i7 & /i9 +
+ i1 & o13 +
+ i3 +
+ /i6 +
+ i8 +
+ /i9 +
+ i7 & /o13
+o12.oe = vcc
+
+/o13 = i11 & /o14 +
+ /i9 +
+ i8 +
+ /i7 +
+ /i6 & o14 +
+ i5 +
+ i4
+o13.oe = i2 & o14
+
+/o14 = i1 & /o15 +
+ /i8 +
+ i1 & /i8 +
+ i1 & /i2 & /o15 +
+ /i2 +
+ i2 & /i8 & o15 +
+ i3
+o14.oe = vcc
+
+/o15 = i3 & i6 & i7 & /i11 +
+ i6 & o16 +
+ i3 & /o16 +
+ i7 +
+ /i11 +
+ i6 & i7 +
+ i7 & /i11
+o15.oe = vcc
+
+/o16 = /i3 & /o17 +
+ /i4 & /i11 +
+ /i4 & /i3 +
+ /i3 & i4 +
+ /i7 & o17 +
+ /i7 & /i11 +
+ i4
+o16.oe = vcc
+
+/o17 = i2 & i5 & i6 & /i7 +
+ i2 & /o18 +
+ i5 +
+ i6 +
+ /i7 & o18 +
+ i2 & /i7 +
+ i5 & i6
+o17.oe = /o16
+
+/o18 = /i2 & i5 & i6 & /i7 +
+ i3 & i6 & i7 & i11 +
+ i3 +
+ /i2 & /i7 +
+ i3 & i11 +
+ i5 & i6 & /i7 +
+ i7 & i11
+o18.oe = vcc
+
+/o19 = i5 & i6 & /i7 & i11 +
+ i3 & i6 & i7 +
+ i5 +
+ i6 +
+ i7 +
+ i11 +
+ /i7
+o19.oe = vcc
diff --git a/src/regtests/jedutil/eqns/pal20l10.eqn b/src/regtests/jedutil/eqns/pal20l10.eqn
new file mode 100644
index 00000000000..d6639bdf9f4
--- /dev/null
+++ b/src/regtests/jedutil/eqns/pal20l10.eqn
@@ -0,0 +1,56 @@
+chip 2000 PAL20L10
+
+i1=1 i2=2 i3=3 i4=4 i5=5 i6=6 i7=7 i8=8 i9=9 i10=10 i11=11 GND=12
+i13=13 o14=14 o15=15 o16=16 o17=17 o18=18 o19=19 o20=20 o21=21 o22=22 o23=23 VCC=24
+
+equations
+
+/o14 = /i11 +
+ i10 +
+ i9 & /o15
+o14.oe = o15
+
+/o15 = /i1 & i2 & /i3 & i4 & i11 +
+ /i1 & i2 & /i3 & /i5 & /i13 & o16 +
+ /i1 & i2 & /i3 & i6
+o15.oe = /o16
+
+/o16 = i1 & /i2 & /o17 +
+ i3 & /i4 +
+ i3 & i9 & o17
+o16.oe = vcc
+
+/o17 = /o18 +
+ i10 & o18 +
+ i9
+o17.oe = i4 & i5
+
+/o18 = i1 & /i2 & i3 & /i4 & /i8 +
+ /i6 & i7 & i8 & i9 & i10 & /o19 +
+ i1 & i2 & i3 & /i4 & /i5 & o19
+o18.oe = i1 & i10
+
+/o19 = i11 & o20 +
+ i2 & /i10 +
+ i9 & i11
+o19.oe = i8 & /o20
+
+/o20 = o21 +
+ /i6 +
+ /i7 & /o21
+o20.oe = vcc
+
+/o21 = i1 & i8 +
+ /i4 & /o22 +
+ o22
+o21.oe = i5 & i6
+
+/o22 = i1 & /i8 +
+ /i8 +
+ i1
+o22.oe = i3 & /i7
+
+/o23 = i7 +
+ i11 +
+ /i13
+o23.oe = vcc
diff --git a/src/regtests/jedutil/eqns/pal20l8.eqn b/src/regtests/jedutil/eqns/pal20l8.eqn
new file mode 100644
index 00000000000..f7280b6150f
--- /dev/null
+++ b/src/regtests/jedutil/eqns/pal20l8.eqn
@@ -0,0 +1,78 @@
+chip 2000 PAL20L8
+
+i1=1 i2=2 i3=3 i4=4 i5=5 i6=6 i7=7 i8=8 i9=9 i10=10 i11=11 GND=12
+i13=13 i14=14 o15=15 o16=16 o17=17 o18=18 o19=19 o20=20 o21=21 o22=22 i23=23 VCC=24
+
+equations
+
+/o15 = /i1 & i2 & /i3 & i4 & i11 +
+ /i1 & i2 & /i3 & /i5 & /i13 +
+ /i1 & i2 & /i3 & i6 & i14 +
+ /i1 & i2 & /i3 & /i7 & /i23 +
+ /i1 & i2 & /i3 & i8 & /i11 +
+ /i1 & i2 & /i3 & /i9 & i13 +
+ /o16
+o15.oe = o16
+
+/o16 = i1 & /i2 & /o17 +
+ i3 & /i4 +
+ i5 & /i6 +
+ i7 & /i8 +
+ i3 & i9 & o17 +
+ i1 & /i2 & i3 & /i4 & i5 & /i6 & i7 & /i8 & /i9 +
+ /i8 & /i9
+o16.oe = vcc
+
+/o17 = /i23 & /o18 +
+ i10 & o18 +
+ i9 +
+ i8 +
+ /i7 +
+ /i6 +
+ i5
+o17.oe = i4 & i5
+
+/o18 = i1 & /i2 & i3 & /i4 & /i8 & i23 +
+ i1 & i2 & i3 & /i4 & /i5 +
+ /i6 & i7 & i8 & i9 & i10 & /o19 +
+ i11 & i13 & i14 & i23 +
+ /i6 & i7 & i8 & i9 & i10 +
+ i3 & i13 & i14 & i23 +
+ i1 & i2 & i3 & /i4 & /i5 & o19
+o18.oe = i1 & i10 & i23
+
+/o19 = i9 & /i10 & i11 & i23 +
+ i9 +
+ /i10 +
+ i11 & o20 +
+ i23 +
+ i2 & /i10 & i23 +
+ i9 & i11
+o19.oe = i8 & /o20
+
+/o20 = o21 +
+ /i2 +
+ /i3 +
+ /i4 +
+ /i5 +
+ /i6 +
+ /i7 & /o21
+o20.oe = vcc
+
+/o21 = i1 & i8 +
+ /i14 +
+ i1 & /i5 & i8 +
+ i23 +
+ i1 & i8 & /i14 +
+ i13 +
+ i1 & i11
+o21.oe = i5 & i6
+
+/o22 = i1 & /i8 +
+ /i8 +
+ i1 +
+ /i10 +
+ /i23 +
+ i8 & /i13 +
+ /i11
+o22.oe = i3 & /i7
diff --git a/src/regtests/jedutil/eqns/readme.txt b/src/regtests/jedutil/eqns/readme.txt
new file mode 100644
index 00000000000..94dcdf6ab46
--- /dev/null
+++ b/src/regtests/jedutil/eqns/readme.txt
@@ -0,0 +1 @@
+This files are for use with the utility eqn2jed which is a tool included with Opal Jr. The tools takes this equation files and automatically creates a jed file.
diff --git a/src/regtests/jedutil/jeds/pal10h8.jed b/src/regtests/jedutil/jeds/pal10h8.jed
new file mode 100644
index 00000000000..96ffb7005dc
--- /dev/null
+++ b/src/regtests/jedutil/jeds/pal10h8.jed
@@ -0,0 +1,36 @@
+
+PAL10H8
+EQN2JED - Boolean Equations to JEDEC file assembler (Version V101)
+Copyright (c) National Semiconductor Corporation 1990-1993
+Assembled from "pal10h8.eqn". Date: 8-27-112
+*
+NOTE PINS i1:1 i2:2 i3:3 i4:4 i5:5 i6:6 i7:7 i8:8 i9:9 GND:10*
+NOTE PINS i11:11 o12:12 o13:13 o14:14 o15:15 o16:16 o17:17 o18:18*
+NOTE PINS o19:19 VCC:20*
+QF0320*QP20*F0*
+L0000
+01010101010101101111
+11111111111111111101*
+L0040
+01010101010110011111
+11111111111111111001*
+L0080
+01010101011001011111
+11111111111111110110*
+L0120
+01010101100101011111
+11111111111111111010*
+L0160
+01010110010101011111
+11111111111111111010*
+L0200
+01011001010101011111
+11111111111111110110*
+L0240
+10010101010101011111
+11111111111111111001*
+L0280
+01100101010101011111
+11111111111111110101*
+C1E2E*
+0000
diff --git a/src/regtests/jedutil/jeds/pal10l8.jed b/src/regtests/jedutil/jeds/pal10l8.jed
new file mode 100644
index 00000000000..a5293c4e893
--- /dev/null
+++ b/src/regtests/jedutil/jeds/pal10l8.jed
@@ -0,0 +1,36 @@
+
+PAL10L8
+EQN2JED - Boolean Equations to JEDEC file assembler (Version V101)
+Copyright (c) National Semiconductor Corporation 1990-1993
+Assembled from "pal10l8.eqn". Date: 8-27-112
+*
+NOTE PINS i1:1 i2:2 i3:3 i4:4 i5:5 i6:6 i7:7 i8:8 i9:9 GND:10*
+NOTE PINS i11:11 o12:12 o13:13 o14:14 o15:15 o16:16 o17:17 o18:18*
+NOTE PINS o19:19 VCC:20*
+QF0320*QP20*F0*
+L0000
+01010101010101101111
+11111111111111111011*
+L0040
+01010101010110011111
+11111111111111111101*
+L0080
+01010101011001011111
+11111111111111110110*
+L0120
+01010101100101011111
+11111111111111111010*
+L0160
+01010110010101011111
+11111111111111111010*
+L0200
+01011001010101011111
+11111111111111110110*
+L0240
+10010101010101011111
+11111111111111111001*
+L0280
+01100101010101011111
+11111111111111110101*
+C1E6E*
+0000
diff --git a/src/regtests/jedutil/jeds/pal12h6.jed b/src/regtests/jedutil/jeds/pal12h6.jed
new file mode 100644
index 00000000000..b6b3948455c
--- /dev/null
+++ b/src/regtests/jedutil/jeds/pal12h6.jed
@@ -0,0 +1,34 @@
+
+PAL12H6
+EQN2JED - Boolean Equations to JEDEC file assembler (Version V101)
+Copyright (c) National Semiconductor Corporation 1990-1993
+Assembled from "pal12h6.eqn". Date: 8-27-112
+*
+NOTE PINS i1:1 i2:2 i3:3 i4:4 i5:5 i6:6 i7:7 i8:8 i9:9 GND:10*
+NOTE PINS i11:11 i12:12 o13:13 o14:14 o15:15 o16:16 o17:17 o18:18*
+NOTE PINS i19:19 VCC:20*
+QF0384*QP20*F0*
+L0000
+010101110101100101111111
+111111111111111111111001
+111111011111111111111111
+111111111111111111101111*
+L0096
+010101110110010101111111
+111111111111111111111010*
+L0144
+010101110101011001111111
+111111111111111111110110*
+L0192
+010101111001010101111111
+111111111111111111111010*
+L0240
+100101110101010101111111
+111111111111111111111001*
+L0288
+011001110101010101111111
+111111111111111111110101
+111111101111111111111111
+111111111111111111011111*
+C2948*
+0000
diff --git a/src/regtests/jedutil/jeds/pal12l6.jed b/src/regtests/jedutil/jeds/pal12l6.jed
new file mode 100644
index 00000000000..58a6cecf02f
--- /dev/null
+++ b/src/regtests/jedutil/jeds/pal12l6.jed
@@ -0,0 +1,34 @@
+
+PAL12L6
+EQN2JED - Boolean Equations to JEDEC file assembler (Version V101)
+Copyright (c) National Semiconductor Corporation 1990-1993
+Assembled from "pal12l6.eqn". Date: 8-27-112
+*
+NOTE PINS i1:1 i2:2 i3:3 i4:4 i5:5 i6:6 i7:7 i8:8 i9:9 GND:10*
+NOTE PINS i11:11 i12:12 o13:13 o14:14 o15:15 o16:16 o17:17 o18:18*
+NOTE PINS i19:19 VCC:20*
+QF0384*QP20*F0*
+L0000
+010101110101100101111111
+111111111111111111111001
+111111011111111111111111
+111111111111111111101111*
+L0096
+010101110110010101111111
+111111111111111111111010*
+L0144
+010101111001010101111111
+111111111111111111111010*
+L0192
+010110110101010101111111
+111111111111111111110101*
+L0240
+100101110101010101111111
+111111111111111111111001*
+L0288
+011001110101010101111111
+111111111111111111110101
+111111101111111111111111
+111111111111111111011111*
+C29B8*
+0000
diff --git a/src/regtests/jedutil/jeds/pal14h4.jed b/src/regtests/jedutil/jeds/pal14h4.jed
new file mode 100644
index 00000000000..f673ba3d820
--- /dev/null
+++ b/src/regtests/jedutil/jeds/pal14h4.jed
@@ -0,0 +1,32 @@
+
+PAL14H4
+EQN2JED - Boolean Equations to JEDEC file assembler (Version V101)
+Copyright (c) National Semiconductor Corporation 1990-1993
+Assembled from "PAL14H4.eqn". Date: 8-24-112
+*
+NOTE PINS i1:1 i2:2 i3:3 i4:4 i5:5 i6:6 i7:7 i8:8 i9:9 GND:10*
+NOTE PINS i11:11 i12:12 i13:13 o14:14 o15:15 o16:16 o17:17 i18:18*
+NOTE PINS i19:19 VCC:20*
+QF0448*QP20*F0*
+L0000
+0101011110110101011101111111
+1111111111111111111111110101
+1111111111111111110111101111
+1111110111011111111111111111*
+L0112
+0101101101110101011101111111
+1111111111111111111111111001
+1111111111111111111011011111
+1111111011101111111111111111*
+L0224
+1001011101110101011101111111
+1111111111111111111111110110
+1111111111111111110111011111
+1111110111101111111111111111*
+L0336
+0110011101110101011101111111
+1111111111111111111111110101
+1111111111111111111011101111
+1111111011011111111111111111*
+C3116*
+0000
diff --git a/src/regtests/jedutil/jeds/pal14l4.jed b/src/regtests/jedutil/jeds/pal14l4.jed
new file mode 100644
index 00000000000..d01cfd872e9
--- /dev/null
+++ b/src/regtests/jedutil/jeds/pal14l4.jed
@@ -0,0 +1,32 @@
+
+PAL14L4
+EQN2JED - Boolean Equations to JEDEC file assembler (Version V101)
+Copyright (c) National Semiconductor Corporation 1990-1993
+Assembled from "PAL14L4.eqn". Date: 8-24-112
+*
+NOTE PINS i1:1 i2:2 i3:3 i4:4 i5:5 i6:6 i7:7 i8:8 i9:9 GND:10*
+NOTE PINS i11:11 i12:12 i13:13 o14:14 o15:15 o16:16 o17:17 i18:18*
+NOTE PINS i19:19 VCC:20*
+QF0448*QP20*F0*
+L0000
+0101011101110110011101111111
+1111111111111111111111111001
+1111111111111111111011101111
+1111111011101111111111111111*
+L0112
+0101011101111001011101111111
+1111111111111111111111111010
+1111111111111111110111011111
+1111111011011111111111111111*
+L0224
+0101011110110101011101111111
+1111111111111111111111111010
+1111111111111111110111101111
+1111110111101111111111111111*
+L0336
+1001011101110101011101111111
+1111111111111111111111111001
+1111111111111111111011011111
+1111110111011111111111111111*
+C306A*
+0000
diff --git a/src/regtests/jedutil/jeds/pal16h2.jed b/src/regtests/jedutil/jeds/pal16h2.jed
new file mode 100644
index 00000000000..df7112dfaed
--- /dev/null
+++ b/src/regtests/jedutil/jeds/pal16h2.jed
@@ -0,0 +1,30 @@
+
+PAL16H2
+EQN2JED - Boolean Equations to JEDEC file assembler (Version V101)
+Copyright (c) National Semiconductor Corporation 1990-1993
+Assembled from "PAL16H2.eqn". Date: 8-24-112
+*
+NOTE PINS i1:1 i2:2 i3:3 i4:4 i5:5 i6:6 i7:7 i8:8 i9:9 GND:10*
+NOTE PINS i11:11 i12:12 i13:13 i14:14 o15:15 o16:16 i17:17 i18:18*
+NOTE PINS i19:19 VCC:20*
+QF0512*QP20*F0*
+L0000
+01011011011110110111011101111111
+11111111111111111111111111111011
+11111111111111111111111111111101
+11111111111111111111111111101111
+11111111111111111111110111111111
+11111111111111111110111111111111
+11111111111111011111111111111111
+11111101111011111111111111111111*
+L0256
+01010111101101111011011101111111
+11111111111111111111111111110111
+11111111111111111111111111111110
+11111111111111111111111111011111
+11111111111111111111111011111111
+11111111111111111101111111111111
+11111111111111101111111111111111
+11111110110111111111111111111111*
+C3BDA*
+0000
diff --git a/src/regtests/jedutil/jeds/pal16l2.jed b/src/regtests/jedutil/jeds/pal16l2.jed
new file mode 100644
index 00000000000..855019dd8e2
--- /dev/null
+++ b/src/regtests/jedutil/jeds/pal16l2.jed
@@ -0,0 +1,30 @@
+
+PAL16L2
+EQN2JED - Boolean Equations to JEDEC file assembler (Version V101)
+Copyright (c) National Semiconductor Corporation 1990-1993
+Assembled from "PAL16L2.eqn". Date: 8-24-112
+*
+NOTE PINS i1:1 i2:2 i3:3 i4:4 i5:5 i6:6 i7:7 i8:8 i9:9 GND:10*
+NOTE PINS i11:11 i12:12 i13:13 i14:14 o15:15 o16:16 i17:17 i18:18*
+NOTE PINS i19:19 VCC:20*
+QF0512*QP20*F0*
+L0000
+01010111011101110111101101111111
+11111111111111111111111111110111
+11111111111111111111111111111101
+11111111111111111111111111011111
+11111111111111111111111011111111
+11111111111111111110111111111111
+11111111111111101111111111111111
+11111110111011111111111111111111*
+L0256
+01010111101101110111011101111111
+11111111111111111111111111111011
+11111111111111111111111111111110
+11111111111111111111111111101111
+11111111111111111111110111111111
+11111111111111111101111111111111
+11111111111111011111111111111111
+11111101110111111111111111111111*
+C3BEB*
+0000
diff --git a/src/regtests/jedutil/jeds/pal16l8.jed b/src/regtests/jedutil/jeds/pal16l8.jed
new file mode 100644
index 00000000000..80940fac0a4
--- /dev/null
+++ b/src/regtests/jedutil/jeds/pal16l8.jed
@@ -0,0 +1,85 @@
+
+PAL16L8
+EQN2JED - Boolean Equations to JEDEC file assembler (Version V101)
+Copyright (c) National Semiconductor Corporation 1990-1993
+Assembled from "pal16l8.eqn". Date: 8-29-112
+md
+*
+NOTE PINS i1:1 i2:2 i3:3 i4:4 i5:5 i6:6 i7:7 i8:8 i9:9 GND:10*
+NOTE PINS i11:11 o12:12 o13:13 o14:14 o15:15 o16:16 o17:17 o18:18*
+NOTE PINS o19:19 VCC:20*
+QF2048*QP20*F0*
+L0000
+11111111111111111111111111111111
+11111111111101110111101111111101
+11110111111111110111011111111111
+11111111111101111111111111111111
+11111111111111110111111111111111
+11111111111111111111011111111111
+11111111111111111111111111111101
+11111111111111111111101111111111*
+L0256
+11111111111111111111111111111111
+10111111111101110111101111111111
+11110111111111110111011111111101
+11110111111111111111111111111111
+10111111111111111111101111111111
+11110111111111111111111111111101
+11111111111101110111101111111111
+11111111111111111111011111111101*
+L0512
+11111111111111101111111111111111
+01111111111101110111101111111111
+01111110111111111111111111111111
+11111111111101111111111111111111
+11111111111111110111111111111111
+11111101111111111111101111111111
+01111111111111111111101111111111
+11111111111101110111111111111111*
+L0768
+11111111111111111111111111111111
+11111011111011111111111111111111
+11111111101111111111111111111110
+11111011101111111111111111111111
+11111011011111111111111111111111
+11111111110111111111101111111111
+11111111111111111111101111111110
+11111111011111111111111111111111*
+L1024
+11111111111111111111111111111111
+11110111111111110111011111111110
+11111111111111010111111111111111
+11110111111111101111111111111111
+11111111111111111111011111111111
+11111111111111111111111111111110
+11111111111111110111011111111111
+11111111111111111111011111111110*
+L1280
+11111111111111111111111111111111
+11011111111111111110111111111111
+11111111111111111111111110111111
+11011111111111111111111110111111
+10011111111111111110111111111111
+10111111111111111111111111111111
+01111111111111111101111110111111
+11110111111111111111111111111111*
+L1536
+01111111111111111111110111111111
+11111111111111111111111011111101
+11111111111111111111111111111011
+11111111111111111111111101111111
+11111111111111111111101111111111
+11111111111111111011110111111111
+11111111111101111111111111111111
+11111111011111111111111111111111*
+L1792
+11111111111111111111111111111111
+11110111111111111111011111111011
+11011111111111111111111111011111
+11110111111111111111111111111111
+11111111111111111011111111111111
+11111111111111111111111101111111
+11111111111111111111111111111011
+11111111111111111111011111101111*
+CF3C8*
+0000
diff --git a/src/regtests/jedutil/jeds/pal20l10.jed b/src/regtests/jedutil/jeds/pal20l10.jed
new file mode 100644
index 00000000000..4019ea407dd
--- /dev/null
+++ b/src/regtests/jedutil/jeds/pal20l10.jed
@@ -0,0 +1,62 @@
+
+PAL20L10
+EQN2JED - Boolean Equations to JEDEC file assembler (Version V101)
+Copyright (c) National Semiconductor Corporation 1990-1993
+Assembled from "pal20l10.eqn". Date: 8-31-112
+*
+NOTE PINS i1:1 i2:2 i3:3 i4:4 i5:5 i6:6 i7:7 i8:8 i9:9 i10:10*
+NOTE PINS i11:11 GND:12 i13:13 o14:14 o15:15 o16:16 o17:17 o18:18*
+NOTE PINS o19:19 o20:20 o21:21 o22:22 o23:23 VCC:24*
+QF1600*QP24*F0*
+L0000
+1111111111111111111111111111111111111111
+1111111111111111111101111111111111111111
+1111111111111111111111111111111111110111
+1111111111111111111111111111111111111110*
+L0160
+1111011111111111111110111111111111111111
+1101111111111111111111111011111111111111
+1111111111111111111111111011111111111111
+1101111111111111111111111111111111111111*
+L0320
+1111111111110111011111111111111111111111
+1101111111111111111111110111111111111111
+1111111010111111111111111111111111111111
+1111110111111111111111111111111111111111*
+L0480
+1111111111111111111111111111111111111111
+1111111111011111111111111111111111111111
+1111111111111111101111111111111111111111
+1111111111101111111110111111111111111111*
+L0640
+1111111111111110111111110111111111111111
+1111111111111101111111111111111111110111
+0111111111111111111111111111111110111111
+1111111111111111111111111111011111110111*
+L0800
+1101111111111111111111111111111101111111
+1001011110111111111111111011111111111111
+1111111111111111101001110111011101111111
+0101011110111011110111111111111111111111*
+L0960
+1111111101110111111111111111111111111111
+1111111111111111111111101111111111111111
+1111111111111111111111011111111101111111
+1111111111111111111111111111011111111111*
+L1120
+1111111111111111111111111111111111111111
+1001111111111111111111111110111111111111
+1111011110111111111111111111111111111111
+1111011111111111111111111101011111111111*
+L1280
+1111111111111111111111111111111011111111
+0110101101111111111111111111111111110111
+0110101111111011111111111111110111111110
+0110101111111111011111111111111111111111*
+L1440
+1111111111111111111111111111111111011111
+1111111111111111111111111111111111111011
+1111111111111111111111111111111101111111
+1111111111111111111111111111011111101111*
+CC08C*
+0000
diff --git a/src/regtests/jedutil/jeds/pal20l8.jed b/src/regtests/jedutil/jeds/pal20l8.jed
new file mode 100644
index 00000000000..4ab694fefea
--- /dev/null
+++ b/src/regtests/jedutil/jeds/pal20l8.jed
@@ -0,0 +1,84 @@
+
+PAL20L8
+EQN2JED - Boolean Equations to JEDEC file assembler (Version V101)
+Copyright (c) National Semiconductor Corporation 1990-1993
+Assembled from "PAL20L8.eqn". Date: 8-30-112
+*
+NOTE PINS i1:1 i2:2 i3:3 i4:4 i5:5 i6:6 i7:7 i8:8 i9:9 i10:10*
+NOTE PINS i11:11 GND:12 i13:13 i14:14 o15:15 o16:16 o17:17 o18:18*
+NOTE PINS o19:19 o20:20 o21:21 o22:22 i23:23 VCC:24*
+QF2560*QP24*F0*
+L0000
+1111011111111111111110111111111111111111
+1101111111111111111111111011111111111111
+1111111111111111111111111011111111111111
+1101111111111111111111111111111111111111
+1111111111111111111111111111111110111111
+1111111011111111111111111111111111111111
+1111111111111111111111110111111111111110
+1111111111111111111111111111111111111011*
+L0320
+1111111111110111011111111111111111111111
+1101111111111111111111110111111111111111
+1111111111111111111111111111111111101111
+1101111111111011111111110111111111111111
+1111110111111111111111111111111111111111
+1101111111111111111111110111111111101111
+1111111111111111111111111111111111111101
+1101111111111111111111111111111111110111*
+L0640
+1111111111111111111111111111111111111111
+1111111111011111111111111111111111111111
+1011111111111111111111111111111111111111
+1111101111111111111111111111111111111111
+1111111110111111111111111111111111111111
+1111111111111011111111111111111111111111
+1111111111111111101111111111111111111111
+1111111111101111111110111111111111111111*
+L0960
+1111111111111110111111110111111111111111
+1111110111111111111111111111011110110111
+1111111111111111111111111111011111111111
+1111111111111111111111111111111110111111
+1111111111111101111111111111111111110111
+1111110111111111111111111111111111111111
+0111110111111111111111111111111110111111
+1111111111111111111111111111011111110111*
+L1280
+1101110111111111111111111111111101111111
+1001010110111111111111111011111111111111
+0101011110111011111111111111111111111111
+1111111111111111101001110111011101111111
+1111110111111111111111111111111111010101
+1111111111111111101101110111011101111111
+1111010111111111111111111111111111011101
+0101011110111011110111111111111111111111*
+L1600
+1111111101110111111111111111111111111111
+1111111011111111111111101111111111111111
+1111111111111111111111011111111101111111
+1111111111111111111111111111011111111111
+1111111111111111111111110111111111111111
+1111111111111111111110111111111111111111
+1111111111111111101111111111111111111111
+1111111111110111111111111111111111111111*
+L1920
+1111111111111111111111111111111111111111
+1001111111111111111111111110111111111111
+1111011110111111111111111111111111111111
+1111111111110111101111111111111111111111
+1111111111111111111101111011111111111111
+1111011111111111111111111101011111111111
+1001011110110111101101111011101111111111
+1111111111111111111111111011101111111111*
+L2240
+1111111111111111111111111111110111111111
+0110101101111111111111111111111111110111
+0110101111111011111111111111111111111110
+0110101111111111011111111111111111011111
+0110101011111111111110111111111111111111
+0110101111111111111111110111111111111011
+0110101111111111111111111111101111111101
+1111111111111111111111111111111011111111*
+C3192*
+0000
diff --git a/src/regtests/jedutil/jedtest.wsf b/src/regtests/jedutil/jedtest.wsf
new file mode 100644
index 00000000000..cb2e47b509f
--- /dev/null
+++ b/src/regtests/jedutil/jedtest.wsf
@@ -0,0 +1,209 @@
+<?xml version="1.0"?>
+<package>
+ <job id="Test"><?job debug="true" error="true"?>
+ <runtime>
+ <description>This script runs regresion tests on the jedutil tool.</description>
+ </runtime>
+
+ <script language="JScript">
+ <![CDATA[
+ var g_Verbose = false;
+
+ function diffFiles(file1, file2)
+ {
+ var WshShell = WScript.CreateObject("WScript.Shell");
+ var oExec;
+
+ if (g_Verbose)
+ {
+ WScript.Echo("Diff File 1: " + file1);
+ WScript.Echo("Diff File 2: " + file2);
+ WScript.Echo();
+ }
+
+ oExec = WshShell.Exec("diff " + file1 + " " + file2);
+
+ while (!oExec.Status)
+ {
+ WScript.Sleep(100);
+ }
+
+ if (g_Verbose)
+ {
+ WScript.StdOut.WriteLine(oExec.StdOut.ReadAll());
+ WScript.StdErr.WriteLine(oExec.StdErr.ReadAll());
+ }
+
+ return oExec.ExitCode;
+ }
+
+ function runCommandAndCaptureOutput(command, outputFile)
+ {
+ var WshShell = WScript.CreateObject("WScript.Shell");
+ var fullCommand;
+
+ fullCommand = "%comspec% /c ";
+ fullCommand += command;
+ fullCommand += " > ";
+ fullCommand += outputFile;
+ fullCommand += " 2>&1";
+
+ if (g_Verbose)
+ {
+ WScript.Echo("Running the command : " + command);
+ WScript.Echo("Output File: " + outputFile);
+ WScript.Echo();
+ }
+
+ WshShell.Run(fullCommand, 0, true);
+ }
+
+ function findJedTests(jedsPath, baselinePath, outputPath)
+ {
+ var fso = new ActiveXObject("Scripting.FileSystemObject");
+ var folder = fso.GetFolder(jedsPath)
+ var folderCollection = new Enumerator(folder.files);
+ var jedArray = new Array();
+
+ while (!folderCollection.atEnd())
+ {
+ ++jedArray.length;
+
+ jedArray[jedArray.length - 1] = new Object;
+
+ jedArray[jedArray.length - 1].name = fso.GetBaseName(folderCollection.item().name);
+ jedArray[jedArray.length - 1].jedfile = folderCollection.item().path;
+ jedArray[jedArray.length - 1].baselineFile = baselinePath + "\\" +
+ jedArray[jedArray.length - 1].name +
+ ".txt";
+ jedArray[jedArray.length - 1].outputFile = outputPath + "\\" +
+ jedArray[jedArray.length - 1].name +
+ ".txt";
+
+ folderCollection.moveNext();
+ }
+
+ return jedArray;
+ }
+
+ function runViewJedTests(jedArray, jedUtilApp)
+ {
+ var command;
+
+ for (i = 0; i < jedArray.length; ++i)
+ {
+ command = jedUtilApp + " -view " + jedArray[i].jedfile + " " +
+ jedArray[i].name;
+
+ if (g_Verbose)
+ {
+ WScript.Echo("Viewing the JED file: " + jedArray[i].jedfile);
+ WScript.Echo();
+ }
+
+ runCommandAndCaptureOutput(command, jedArray[i].outputFile);
+ }
+ }
+
+ function runDiffJedTests(jedArray)
+ {
+ var result = true;
+
+ for (i = 0; i < jedArray.length; ++i)
+ {
+ if (g_Verbose)
+ {
+ WScript.Echo("Diffing the output from viewing the JED file: " + jedArray[i].jedfile);
+ }
+
+ if (diffFiles(jedArray[i].baselineFile, jedArray[i].outputFile))
+ {
+ WScript.Echo("Results are different for " + jedArray[i].name);
+ WScript.Echo();
+
+ result = false;
+ }
+ }
+
+ return result;
+ }
+
+ function main()
+ {
+ var result = 0;
+ var WshShell = WScript.CreateObject("WScript.Shell");
+ var fso = new ActiveXObject("Scripting.FileSystemObject");
+ var jedsPath = WshShell.CurrentDirectory + "\\jeds";
+ var baselinePath = WshShell.CurrentDirectory + "\\baseline";
+ var outputPath = WshShell.CurrentDirectory + "\\output";
+ var jedUtilApp = WshShell.CurrentDirectory + "\\..\\..\\..\\jedutil.exe";
+ var jedArray = new Array();
+
+ if (g_Verbose)
+ {
+ WScript.Echo("JED Path: " + jedsPath);
+ WScript.Echo("Baseline Path: " + baselinePath);
+ WScript.Echo("Output Path: " + outputPath);
+ WScript.Echo("jedutil App: " + jedUtilApp);
+ WScript.Echo();
+ }
+
+ if (fso.FolderExists(outputPath))
+ {
+ if (g_Verbose)
+ {
+ WScript.Echo("Emptying the output directory");
+ WScript.Echo();
+ }
+
+ fso.DeleteFile(outputPath + "\\*.*");
+ }
+ else
+ {
+ if (g_Verbose)
+ {
+ WScript.Echo("Creating the output directory");
+ WScript.Echo();
+ }
+
+ fso.CreateFolder(outputPath);
+ }
+
+ jedArray = findJedTests(jedsPath, baselinePath, outputPath);
+
+ runViewJedTests(jedArray, jedUtilApp);
+
+ if (!runDiffJedTests(jedArray))
+ {
+ result = 1;
+ }
+
+ if (!result)
+ {
+ WScript.Echo("All tests ran successfully.");
+ }
+
+ return result;
+ }
+
+ try
+ {
+ var result = main();
+
+ WScript.Quit(result);
+ }
+ catch (e)
+ {
+ WScript.Echo("Error Occurred");
+ WScript.Echo("");
+ WScript.Echo("Name: " + e.name);
+ WScript.Echo("Message: " + e.message);
+ WScript.Echo("Number: " + e.number);
+ WScript.Echo("Description: " + e.description);
+
+ WScript.Quit(1);
+ }
+ ]]>
+ </script>
+ </job>
+</package>