summaryrefslogtreecommitdiffstatshomepage
path: root/regtests
diff options
context:
space:
mode:
authorGravatarGravatar Miodrag Milanovic <mmicko@gmail.com>2015-11-05 13:40:39 +0100
committerGravatarGravatar Miodrag Milanovic <mmicko@gmail.com>2015-11-05 13:41:25 +0100
commit583a1f81f2fbd5583f5a67f749eaba4af646f73e (patch)
tree82f8f4f16969ed509974b7042ae6a9f033ef51a9 /regtests
parent4ef4bf42d9938dcdaf1fcd9fedab2c6ac5f5264d (diff)
Moved regtests out of source tree, and updated paths (nw)
Diffstat (limited to 'regtests')
-rw-r--r--regtests/chdman/chdtest.py237
-rw-r--r--regtests/chdman/input/copy_cd_cue_audio_silence_wav_20_tracks_v4/in.chdbin0 -> 38412 bytes
-rw-r--r--regtests/chdman/input/copy_cd_cue_audio_silence_wav_v4/in.chdbin0 -> 32356 bytes
-rw-r--r--regtests/chdman/input/copy_cd_cue_empty_v4/in.chdbin0 -> 27956 bytes
-rw-r--r--regtests/chdman/input/copy_cd_nrg_empty_v4/in.chdbin0 -> 27956 bytes
-rw-r--r--regtests/chdman/input/copy_cd_toc_empty_v4/in.chdbin0 -> 60598 bytes
-rw-r--r--regtests/chdman/input/copy_hd_1/in.chdbin0 -> 21337 bytes
-rw-r--r--regtests/chdman/input/createcd_cue_audio_silence/in.binbin0 -> 14109648 bytes
-rw-r--r--regtests/chdman/input/createcd_cue_audio_silence/in.cue42
-rw-r--r--regtests/chdman/input/createcd_cue_audio_silence_wav/in.cue15
-rw-r--r--regtests/chdman/input/createcd_cue_audio_silence_wav/silence.wavbin0 -> 176448 bytes
-rw-r--r--regtests/chdman/input/createcd_cue_audio_silence_wav_20_tracks/in.cue60
-rw-r--r--regtests/chdman/input/createcd_cue_audio_silence_wav_20_tracks/silence.wavbin0 -> 176448 bytes
-rw-r--r--regtests/chdman/input/createcd_cue_audio_silence_wav_20_tracks_cdfl/in.cue60
-rw-r--r--regtests/chdman/input/createcd_cue_audio_silence_wav_20_tracks_cdfl/in.params1
-rw-r--r--regtests/chdman/input/createcd_cue_audio_silence_wav_20_tracks_cdfl/silence.wavbin0 -> 176448 bytes
-rw-r--r--regtests/chdman/input/createcd_cue_audio_silence_wav_20_tracks_cdlz/in.cue60
-rw-r--r--regtests/chdman/input/createcd_cue_audio_silence_wav_20_tracks_cdlz/in.params1
-rw-r--r--regtests/chdman/input/createcd_cue_audio_silence_wav_20_tracks_cdlz/silence.wavbin0 -> 176448 bytes
-rw-r--r--regtests/chdman/input/createcd_cue_audio_silence_wav_20_tracks_cdzl/in.cue60
-rw-r--r--regtests/chdman/input/createcd_cue_audio_silence_wav_20_tracks_cdzl/in.params1
-rw-r--r--regtests/chdman/input/createcd_cue_audio_silence_wav_20_tracks_cdzl/silence.wavbin0 -> 176448 bytes
-rw-r--r--regtests/chdman/input/createcd_cue_audio_silence_wav_20_tracks_none/in.cue60
-rw-r--r--regtests/chdman/input/createcd_cue_audio_silence_wav_20_tracks_none/in.params1
-rw-r--r--regtests/chdman/input/createcd_cue_audio_silence_wav_20_tracks_none/silence.wavbin0 -> 176448 bytes
-rw-r--r--regtests/chdman/input/createcd_cue_empty/in.binbin0 -> 1430016 bytes
-rw-r--r--regtests/chdman/input/createcd_cue_empty/in.cue4
-rw-r--r--regtests/chdman/input/createcd_iso_empty/in.isobin0 -> 1245184 bytes
-rw-r--r--regtests/chdman/input/createcd_nrg_audio_silence/in.nrgbin0 -> 14466058 bytes
-rw-r--r--regtests/chdman/input/createcd_nrg_empty/in.nrgbin0 -> 1782972 bytes
-rw-r--r--regtests/chdman/input/createcd_toc_empty/data.binbin0 -> 1488384 bytes
-rw-r--r--regtests/chdman/input/createcd_toc_empty/in.toc8
-rw-r--r--regtests/chdman/input/createhd_1/in.params1
-rw-r--r--regtests/chdman/input/createhd_2/in.params1
-rw-r--r--regtests/chdman/input/createhd_3/in.params1
-rw-r--r--regtests/chdman/input/createhd_4/in.params1
-rw-r--r--regtests/chdman/input/createhd_5/in.params1
-rw-r--r--regtests/chdman/input/createhd_raw_empty/in.rawbin0 -> 1048576 bytes
-rw-r--r--regtests/chdman/input/createhd_raw_empty_flac/in.params1
-rw-r--r--regtests/chdman/input/createhd_raw_empty_flac/in.rawbin0 -> 1048576 bytes
-rw-r--r--regtests/chdman/input/createhd_raw_empty_huff/in.params1
-rw-r--r--regtests/chdman/input/createhd_raw_empty_huff/in.rawbin0 -> 1048576 bytes
-rw-r--r--regtests/chdman/input/createhd_raw_empty_lzma/in.params1
-rw-r--r--regtests/chdman/input/createhd_raw_empty_lzma/in.rawbin0 -> 1048576 bytes
-rw-r--r--regtests/chdman/input/createhd_raw_empty_none/in.params1
-rw-r--r--regtests/chdman/input/createhd_raw_empty_none/in.rawbin0 -> 1048576 bytes
-rw-r--r--regtests/chdman/input/createhd_raw_empty_zlib/in.params1
-rw-r--r--regtests/chdman/input/createhd_raw_empty_zlib/in.rawbin0 -> 1048576 bytes
-rw-r--r--regtests/chdman/input/createld_avi_uyvy_3_frames_no_audio/in.avibin0 -> 1326226 bytes
-rw-r--r--regtests/chdman/input/createld_avi_yuv2_3_frames_no_audio/in.avibin0 -> 1326226 bytes
-rw-r--r--regtests/chdman/output/copy_cd_cue_audio_silence_wav_20_tracks_v4/out.chdbin0 -> 28848 bytes
-rw-r--r--regtests/chdman/output/copy_cd_cue_audio_silence_wav_v4/out.chdbin0 -> 27335 bytes
-rw-r--r--regtests/chdman/output/copy_cd_cue_empty_v4/out.chdbin0 -> 7326 bytes
-rw-r--r--regtests/chdman/output/copy_cd_nrg_empty_v4/out.chdbin0 -> 7326 bytes
-rw-r--r--regtests/chdman/output/copy_cd_toc_empty_v4/out.chdbin0 -> 51541 bytes
-rw-r--r--regtests/chdman/output/copy_hd_1/out.chdbin0 -> 226 bytes
-rw-r--r--regtests/chdman/output/createcd_cue_audio_silence/out.chdbin0 -> 27597 bytes
-rw-r--r--regtests/chdman/output/createcd_cue_audio_silence_wav/out.chdbin0 -> 49918 bytes
-rw-r--r--regtests/chdman/output/createcd_cue_audio_silence_wav_20_tracks/out.chdbin0 -> 50262 bytes
-rw-r--r--regtests/chdman/output/createcd_cue_audio_silence_wav_20_tracks_cdfl/out.chdbin0 -> 58054 bytes
-rw-r--r--regtests/chdman/output/createcd_cue_audio_silence_wav_20_tracks_cdlz/out.chdbin0 -> 50262 bytes
-rw-r--r--regtests/chdman/output/createcd_cue_audio_silence_wav_20_tracks_cdzl/out.chdbin0 -> 58168 bytes
-rw-r--r--regtests/chdman/output/createcd_cue_audio_silence_wav_20_tracks_none/out.chdbin0 -> 3740544 bytes
-rw-r--r--regtests/chdman/output/createcd_cue_empty/out.chdbin0 -> 9558 bytes
-rw-r--r--regtests/chdman/output/createcd_iso_empty/out.chdbin0 -> 2022 bytes
-rw-r--r--regtests/chdman/output/createcd_nrg_audio_silence/out.chdbin0 -> 40482 bytes
-rw-r--r--regtests/chdman/output/createcd_nrg_empty/out.chdbin0 -> 9558 bytes
-rw-r--r--regtests/chdman/output/createcd_toc_empty/out.chdbin0 -> 46007 bytes
-rw-r--r--regtests/chdman/output/createhd_1/out.chdbin0 -> 21337 bytes
-rw-r--r--regtests/chdman/output/createhd_2/out.chdbin0 -> 21337 bytes
-rw-r--r--regtests/chdman/output/createhd_3/out.chdbin0 -> 42502 bytes
-rw-r--r--regtests/chdman/output/createhd_4/out.chdbin0 -> 10413 bytes
-rw-r--r--regtests/chdman/output/createhd_5/out.chdbin0 -> 10414 bytes
-rw-r--r--regtests/chdman/output/createhd_raw_empty/out.chdbin0 -> 409 bytes
-rw-r--r--regtests/chdman/output/createhd_raw_empty_flac/out.chdbin0 -> 787 bytes
-rw-r--r--regtests/chdman/output/createhd_raw_empty_huff/out.chdbin0 -> 1410 bytes
-rw-r--r--regtests/chdman/output/createhd_raw_empty_lzma/out.chdbin0 -> 418 bytes
-rw-r--r--regtests/chdman/output/createhd_raw_empty_none/out.chdbin0 -> 8192 bytes
-rw-r--r--regtests/chdman/output/createhd_raw_empty_zlib/out.chdbin0 -> 418 bytes
-rw-r--r--regtests/chdman/output/createld_avi_uyvy_3_frames_no_audio/out.chdbin0 -> 376 bytes
-rw-r--r--regtests/chdman/output/createld_avi_yuv2_3_frames_no_audio/out.chdbin0 -> 376 bytes
-rw-r--r--regtests/jedutil/baseline/18cv8/18cv8_bi-directional_io.txt37
-rw-r--r--regtests/jedutil/baseline/18cv8/18cv8_combinatorial_feedback.txt35
-rw-r--r--regtests/jedutil/baseline/18cv8/18cv8_register_feedback.txt35
-rw-r--r--regtests/jedutil/baseline/18cv8/pal10h8-to-peel18cv8.txt49
-rw-r--r--regtests/jedutil/baseline/18cv8/pal10l8-to-peel18cv8.txt49
-rw-r--r--regtests/jedutil/baseline/18cv8/pal12h6-to-peel18cv8.txt43
-rw-r--r--regtests/jedutil/baseline/18cv8/pal12l6-to-peel18cv8.txt43
-rw-r--r--regtests/jedutil/baseline/18cv8/pal14h4-to-peel18cv8.txt37
-rw-r--r--regtests/jedutil/baseline/18cv8/pal14l4-to-peel18cv8.txt37
-rw-r--r--regtests/jedutil/baseline/18cv8/pal16h2-to-peel18cv8.txt31
-rw-r--r--regtests/jedutil/baseline/18cv8/pal16l2-to-peel18cv8.txt31
-rw-r--r--regtests/jedutil/baseline/18cv8/pal16l8-to-peel18cv8.txt89
-rw-r--r--regtests/jedutil/baseline/18cv8/pal16r4-to-peel18cv8.txt93
-rw-r--r--regtests/jedutil/baseline/18cv8/pal16r6-to-peel18cv8.txt95
-rw-r--r--regtests/jedutil/baseline/18cv8/pal16r8-to-peel18cv8.txt97
-rw-r--r--regtests/jedutil/baseline/ck2605/ck2605-test1.txt109
-rw-r--r--regtests/jedutil/baseline/ck2605/ck2605-test2.txt109
-rw-r--r--regtests/jedutil/baseline/gal16v8/pal10h8-to-gal16v8.txt49
-rw-r--r--regtests/jedutil/baseline/gal16v8/pal10l8-to-gal16v8.txt49
-rw-r--r--regtests/jedutil/baseline/gal16v8/pal12h6-to-gal16v8.txt43
-rw-r--r--regtests/jedutil/baseline/gal16v8/pal12l6-to-gal16v8.txt43
-rw-r--r--regtests/jedutil/baseline/gal16v8/pal14h4-to-gal16v8.txt37
-rw-r--r--regtests/jedutil/baseline/gal16v8/pal14l4-to-gal16v8.txt37
-rw-r--r--regtests/jedutil/baseline/gal16v8/pal16h2-to-gal16v8.txt31
-rw-r--r--regtests/jedutil/baseline/gal16v8/pal16l2-to-gal16v8.txt31
-rw-r--r--regtests/jedutil/baseline/gal16v8/pal16l8-to-gal16v8.txt89
-rw-r--r--regtests/jedutil/baseline/gal16v8/pal16r4-to-gal16v8.txt93
-rw-r--r--regtests/jedutil/baseline/gal16v8/pal16r6-to-gal16v8.txt95
-rw-r--r--regtests/jedutil/baseline/gal16v8/pal16r8-to-gal16v8.txt97
-rw-r--r--regtests/jedutil/baseline/gal18v10/gal18v10-test1.txt123
-rw-r--r--regtests/jedutil/baseline/gal18v10/pal10h8-to-gal18v10.txt49
-rw-r--r--regtests/jedutil/baseline/gal18v10/pal10l8-to-gal18v10.txt49
-rw-r--r--regtests/jedutil/baseline/gal18v10/pal12h6-to-gal18v10.txt43
-rw-r--r--regtests/jedutil/baseline/gal18v10/pal12l6-to-gal18v10.txt43
-rw-r--r--regtests/jedutil/baseline/gal18v10/pal14h4-to-gal18v10.txt37
-rw-r--r--regtests/jedutil/baseline/gal18v10/pal14l4-to-gal18v10.txt37
-rw-r--r--regtests/jedutil/baseline/gal18v10/pal16h2-to-gal18v10.txt31
-rw-r--r--regtests/jedutil/baseline/gal18v10/pal16l2-to-gal18v10.txt31
-rw-r--r--regtests/jedutil/baseline/gal18v10/pal16l8-to-gal18v10.txt89
-rw-r--r--regtests/jedutil/baseline/gal18v10/pal16r4-to-gal18v10.txt93
-rw-r--r--regtests/jedutil/baseline/gal18v10/pal16r6-to-gal18v10.txt95
-rw-r--r--regtests/jedutil/baseline/gal18v10/pal16r8-to-gal18v10.txt97
-rw-r--r--regtests/jedutil/baseline/pal10h8/pal10h8.txt49
-rw-r--r--regtests/jedutil/baseline/pal10l8/pal10l8.txt49
-rw-r--r--regtests/jedutil/baseline/pal10p8/pal10p8.txt49
-rw-r--r--regtests/jedutil/baseline/pal12h10/pal12h10.txt59
-rw-r--r--regtests/jedutil/baseline/pal12h6/pal12h6.txt43
-rw-r--r--regtests/jedutil/baseline/pal12l10/pal12l10.txt59
-rw-r--r--regtests/jedutil/baseline/pal12l6/pal12l6.txt43
-rw-r--r--regtests/jedutil/baseline/pal12p6/pal12p6.txt43
-rw-r--r--regtests/jedutil/baseline/pal14h4/pal14h4.txt37
-rw-r--r--regtests/jedutil/baseline/pal14h8/pal14h8.txt53
-rw-r--r--regtests/jedutil/baseline/pal14l4/pal14l4.txt37
-rw-r--r--regtests/jedutil/baseline/pal14l8/pal14l8.txt53
-rw-r--r--regtests/jedutil/baseline/pal14p4/pal14p4.txt37
-rw-r--r--regtests/jedutil/baseline/pal16c1/pal16c1.txt47
-rw-r--r--regtests/jedutil/baseline/pal16h2/pal16h2.txt31
-rw-r--r--regtests/jedutil/baseline/pal16h6/pal16h6.txt47
-rw-r--r--regtests/jedutil/baseline/pal16l2/pal16l2.txt31
-rw-r--r--regtests/jedutil/baseline/pal16l6/pal16l6.txt47
-rw-r--r--regtests/jedutil/baseline/pal16l8/pal16l8.txt89
-rw-r--r--regtests/jedutil/baseline/pal16p2/pal16p2.txt31
-rw-r--r--regtests/jedutil/baseline/pal16p8/pal16p8.txt89
-rw-r--r--regtests/jedutil/baseline/pal16r4/pal16r4.txt93
-rw-r--r--regtests/jedutil/baseline/pal16r6/pal16r6.txt95
-rw-r--r--regtests/jedutil/baseline/pal16r8/pal16r8.txt97
-rw-r--r--regtests/jedutil/baseline/pal16rp4/pal16rp4.txt93
-rw-r--r--regtests/jedutil/baseline/pal16rp6/pal16rp6.txt95
-rw-r--r--regtests/jedutil/baseline/pal16rp8/pal16rp8.txt97
-rw-r--r--regtests/jedutil/baseline/pal18h4/pal18h4.txt41
-rw-r--r--regtests/jedutil/baseline/pal18l4/pal18l4.txt41
-rw-r--r--regtests/jedutil/baseline/pal20c1/pal20c1.txt31
-rw-r--r--regtests/jedutil/baseline/pal20l10/pal20l10.txt69
-rw-r--r--regtests/jedutil/baseline/pal20l2/pal20l2.txt31
-rw-r--r--regtests/jedutil/baseline/pal20l8/pal20l8.txt89
-rw-r--r--regtests/jedutil/baseline/pal20r4/pal20r4.txt93
-rw-r--r--regtests/jedutil/baseline/pal20r6/pal20r6.txt95
-rw-r--r--regtests/jedutil/baseline/pal20r8/pal20r8.txt97
-rw-r--r--regtests/jedutil/baseline/pal20x10/pal20x10.txt79
-rw-r--r--regtests/jedutil/baseline/pal20x4/pal20x4.txt73
-rw-r--r--regtests/jedutil/baseline/pal20x8/pal20x8.txt77
-rw-r--r--regtests/jedutil/baseline/pal6l16/pal6l16.txt73
-rw-r--r--regtests/jedutil/baseline/pal8l14/pal8l14.txt65
-rw-r--r--regtests/jedutil/baseline/palce16v8/pal10h8-as-palce16v8.txt97
-rw-r--r--regtests/jedutil/baseline/palce16v8/pal10l8-as-palce16v8.txt97
-rw-r--r--regtests/jedutil/baseline/palce16v8/pal12h6-as-palce16v8.txt75
-rw-r--r--regtests/jedutil/baseline/palce16v8/pal12l6-as-palce16v8.txt75
-rw-r--r--regtests/jedutil/baseline/palce16v8/pal14h4-as-palce16v8.txt53
-rw-r--r--regtests/jedutil/baseline/palce16v8/pal14l4-as-palce16v8.txt53
-rw-r--r--regtests/jedutil/baseline/palce16v8/pal16h2-as-palce16v8.txt31
-rw-r--r--regtests/jedutil/baseline/palce16v8/pal16l2-as-palce16v8.txt31
-rw-r--r--regtests/jedutil/baseline/palce16v8/pal16l8-as-palce16v8.txt89
-rw-r--r--regtests/jedutil/baseline/palce16v8/pal16r4-as-palce16v8.txt93
-rw-r--r--regtests/jedutil/baseline/palce16v8/pal16r6-as-palce16v8.txt95
-rw-r--r--regtests/jedutil/baseline/palce16v8/pal16r8-as-palce16v8.txt97
-rw-r--r--regtests/jedutil/baseline/pls153/pls153.txt178
-rw-r--r--regtests/jedutil/eqns/ICT_Place/PEEL18CV8/18cv8_bi-directional_io.psf64
-rw-r--r--regtests/jedutil/eqns/ICT_Place/PEEL18CV8/18cv8_combinatorial_feedback.psf62
-rw-r--r--regtests/jedutil/eqns/ICT_Place/PEEL18CV8/18cv8_register_feedback.psf62
-rw-r--r--regtests/jedutil/eqns/ICT_Place/readme.txt1
-rw-r--r--regtests/jedutil/eqns/Opal_Jr/pal10h8/pal10h8.eqn30
-rw-r--r--regtests/jedutil/eqns/Opal_Jr/pal10l8/pal10l8.eqn30
-rw-r--r--regtests/jedutil/eqns/Opal_Jr/pal10p8/pal10p8.eqn30
-rw-r--r--regtests/jedutil/eqns/Opal_Jr/pal12h10/pal12h10.eqn46
-rw-r--r--regtests/jedutil/eqns/Opal_Jr/pal12h6/pal12h6.eqn28
-rw-r--r--regtests/jedutil/eqns/Opal_Jr/pal12l10/pal12l10.eqn46
-rw-r--r--regtests/jedutil/eqns/Opal_Jr/pal12l6/pal12l6.eqn28
-rw-r--r--regtests/jedutil/eqns/Opal_Jr/pal12p6/pal12p6.eqn28
-rw-r--r--regtests/jedutil/eqns/Opal_Jr/pal14h4/pal14h4.eqn26
-rw-r--r--regtests/jedutil/eqns/Opal_Jr/pal14h8/pal14h8.eqn42
-rw-r--r--regtests/jedutil/eqns/Opal_Jr/pal14l4/pal14l4.eqn26
-rw-r--r--regtests/jedutil/eqns/Opal_Jr/pal14p4/pal14p4.eqn26
-rw-r--r--regtests/jedutil/eqns/Opal_Jr/pal16c1/pal16c1.eqn23
-rw-r--r--regtests/jedutil/eqns/Opal_Jr/pal16h2/pal16h2.eqn24
-rw-r--r--regtests/jedutil/eqns/Opal_Jr/pal16h6/pal16h6.eqn38
-rw-r--r--regtests/jedutil/eqns/Opal_Jr/pal16l2/pal16l2.eqn24
-rw-r--r--regtests/jedutil/eqns/Opal_Jr/pal16l6/pal16l6.eqn38
-rw-r--r--regtests/jedutil/eqns/Opal_Jr/pal16l8/pal16l8.eqn79
-rw-r--r--regtests/jedutil/eqns/Opal_Jr/pal16p2/pal16p2.eqn24
-rw-r--r--regtests/jedutil/eqns/Opal_Jr/pal16p8/pal16p8.eqn78
-rw-r--r--regtests/jedutil/eqns/Opal_Jr/pal16r4/pal16r4.eqn82
-rw-r--r--regtests/jedutil/eqns/Opal_Jr/pal16r6/pal16r6.eqn84
-rw-r--r--regtests/jedutil/eqns/Opal_Jr/pal16r8/pal16r8.eqn86
-rw-r--r--regtests/jedutil/eqns/Opal_Jr/pal16rp4/pal16rp4.eqn82
-rw-r--r--regtests/jedutil/eqns/Opal_Jr/pal16rp6/pal16rp6.eqn84
-rw-r--r--regtests/jedutil/eqns/Opal_Jr/pal16rp8/pal16rp8.eqn86
-rw-r--r--regtests/jedutil/eqns/Opal_Jr/pal18h4/pal18h4.eqn34
-rw-r--r--regtests/jedutil/eqns/Opal_Jr/pal18l4/pal18l4.eqn34
-rw-r--r--regtests/jedutil/eqns/Opal_Jr/pal20c1/pal20c1.eqn26
-rw-r--r--regtests/jedutil/eqns/Opal_Jr/pal20l10/pal20l10.eqn56
-rw-r--r--regtests/jedutil/eqns/Opal_Jr/pal20l2/pal20l2.eqn26
-rw-r--r--regtests/jedutil/eqns/Opal_Jr/pal20l8/pal20l8.eqn78
-rw-r--r--regtests/jedutil/eqns/Opal_Jr/pal20r4/pal20r4.eqn82
-rw-r--r--regtests/jedutil/eqns/Opal_Jr/pal20r6/pal20r6.eqn84
-rw-r--r--regtests/jedutil/eqns/Opal_Jr/pal20r8/pal20r8.eqn86
-rw-r--r--regtests/jedutil/eqns/Opal_Jr/pal20x10/pal20x10.eqn66
-rw-r--r--regtests/jedutil/eqns/Opal_Jr/pal20x4/pal20x4.eqn60
-rw-r--r--regtests/jedutil/eqns/Opal_Jr/pal20x8/pal20x8.eqn64
-rw-r--r--regtests/jedutil/eqns/Opal_Jr/readme.txt1
-rw-r--r--regtests/jedutil/eqns/PALASM/pal6l16/pal6l16.pds53
-rw-r--r--regtests/jedutil/eqns/PALASM/pal8l14/pal8l14.pds51
-rw-r--r--regtests/jedutil/eqns/PALASM/palce16v8/pal10h8-as-palce16v8.pds119
-rw-r--r--regtests/jedutil/eqns/PALASM/palce16v8/pal10l8-as-palce16v8.pds119
-rw-r--r--regtests/jedutil/eqns/PALASM/palce16v8/pal12h6-as-palce16v8.pds101
-rw-r--r--regtests/jedutil/eqns/PALASM/palce16v8/pal12l6-as-palce16v8.pds101
-rw-r--r--regtests/jedutil/eqns/PALASM/palce16v8/pal14h4-as-palce16v8.pds83
-rw-r--r--regtests/jedutil/eqns/PALASM/palce16v8/pal14l4-as-palce16v8.pds83
-rw-r--r--regtests/jedutil/eqns/PALASM/palce16v8/pal16h2-as-palce16v8.pds65
-rw-r--r--regtests/jedutil/eqns/PALASM/palce16v8/pal16l2-as-palce16v8.pds65
-rw-r--r--regtests/jedutil/eqns/PALASM/palce16v8/pal16l8-as-palce16v8.pds119
-rw-r--r--regtests/jedutil/eqns/PALASM/palce16v8/pal16r4-as-palce16v8.pds119
-rw-r--r--regtests/jedutil/eqns/PALASM/palce16v8/pal16r6-as-palce16v8.pds119
-rw-r--r--regtests/jedutil/eqns/PALASM/palce16v8/pal16r8-as-palce16v8.pds119
-rw-r--r--regtests/jedutil/eqns/PALASM/readme.txt1
-rw-r--r--regtests/jedutil/eqns/ispLEVER_Classic/gal18v10/test1/gal18v10-test1.abl138
-rw-r--r--regtests/jedutil/eqns/ispLEVER_Classic/gal18v10/test1/gal18v10-test1.syn11
-rw-r--r--regtests/jedutil/eqns/ispLEVER_Classic/readme.txt1
-rw-r--r--regtests/jedutil/eqns/pal10l8/pal10l8.eqn0
-rw-r--r--regtests/jedutil/eqns/pal12h6/pal12h6.eqn0
-rw-r--r--regtests/jedutil/eqns/pal12l6/pal12l6.eqn0
-rw-r--r--regtests/jedutil/eqns/pal14h4/pal14h4.eqn0
-rw-r--r--regtests/jedutil/eqns/pal14l4/pal14l4.eqn0
-rw-r--r--regtests/jedutil/eqns/pal16c1/pal16c1.eqn0
-rw-r--r--regtests/jedutil/eqns/pal16h2/pal16h2.eqn0
-rw-r--r--regtests/jedutil/eqns/pal16l2/pal16l2.eqn0
-rw-r--r--regtests/jedutil/eqns/pal16l8/pal16l8.eqn0
-rw-r--r--regtests/jedutil/eqns/pal16r4/pal16r4.eqn0
-rw-r--r--regtests/jedutil/eqns/pal16r6/pal16r6.eqn0
-rw-r--r--regtests/jedutil/eqns/pal16r8/pal16r8.eqn0
-rw-r--r--regtests/jedutil/eqns/pal20l10/pal20l10.eqn0
-rw-r--r--regtests/jedutil/eqns/pal20l8/pal20l8.eqn0
-rw-r--r--regtests/jedutil/eqns/pal20r4/pal20r4.eqn0
-rw-r--r--regtests/jedutil/eqns/pal20r6/pal20r6.eqn0
-rw-r--r--regtests/jedutil/eqns/pal20r8/pal20r8.eqn0
-rw-r--r--regtests/jedutil/eqns/readme.txt0
-rw-r--r--regtests/jedutil/jeds/18cv8/18cv8_bi-directional_io.jed104
-rw-r--r--regtests/jedutil/jeds/18cv8/18cv8_combinatorial_feedback.jed104
-rw-r--r--regtests/jedutil/jeds/18cv8/18cv8_register_feedback.jed104
-rw-r--r--regtests/jedutil/jeds/18cv8/pal10h8-to-peel18cv8.jed104
-rw-r--r--regtests/jedutil/jeds/18cv8/pal10l8-to-peel18cv8.jed104
-rw-r--r--regtests/jedutil/jeds/18cv8/pal12h6-to-peel18cv8.jed104
-rw-r--r--regtests/jedutil/jeds/18cv8/pal12l6-to-peel18cv8.jed104
-rw-r--r--regtests/jedutil/jeds/18cv8/pal14h4-to-peel18cv8.jed104
-rw-r--r--regtests/jedutil/jeds/18cv8/pal14l4-to-peel18cv8.jed104
-rw-r--r--regtests/jedutil/jeds/18cv8/pal16h2-to-peel18cv8.jed104
-rw-r--r--regtests/jedutil/jeds/18cv8/pal16l2-to-peel18cv8.jed104
-rw-r--r--regtests/jedutil/jeds/18cv8/pal16l8-to-peel18cv8.jed104
-rw-r--r--regtests/jedutil/jeds/18cv8/pal16r4-to-peel18cv8.jed104
-rw-r--r--regtests/jedutil/jeds/18cv8/pal16r6-to-peel18cv8.jed104
-rw-r--r--regtests/jedutil/jeds/18cv8/pal16r8-to-peel18cv8.jed104
-rw-r--r--regtests/jedutil/jeds/ck2605/ck2605-test1.jed36
-rw-r--r--regtests/jedutil/jeds/ck2605/ck2605-test2.jed36
-rw-r--r--regtests/jedutil/jeds/gal16v8/pal10h8-to-gal16v8.jed106
-rw-r--r--regtests/jedutil/jeds/gal16v8/pal10l8-to-gal16v8.jed106
-rw-r--r--regtests/jedutil/jeds/gal16v8/pal12h6-to-gal16v8.jed106
-rw-r--r--regtests/jedutil/jeds/gal16v8/pal12l6-to-gal16v8.jed106
-rw-r--r--regtests/jedutil/jeds/gal16v8/pal14h4-to-gal16v8.jed106
-rw-r--r--regtests/jedutil/jeds/gal16v8/pal14l4-to-gal16v8.jed106
-rw-r--r--regtests/jedutil/jeds/gal16v8/pal16h2-to-gal16v8.jed106
-rw-r--r--regtests/jedutil/jeds/gal16v8/pal16l2-to-gal16v8.jed106
-rw-r--r--regtests/jedutil/jeds/gal16v8/pal16l8-to-gal16v8.jed107
-rw-r--r--regtests/jedutil/jeds/gal16v8/pal16r4-to-gal16v8.jed106
-rw-r--r--regtests/jedutil/jeds/gal16v8/pal16r6-to-gal16v8.jed106
-rw-r--r--regtests/jedutil/jeds/gal16v8/pal16r8-to-gal16v8.jed106
-rw-r--r--regtests/jedutil/jeds/gal18v10/gal18v10-test1.jed109
-rw-r--r--regtests/jedutil/jeds/gal18v10/pal10h8-to-gal18v10.jed133
-rw-r--r--regtests/jedutil/jeds/gal18v10/pal10l8-to-gal18v10.jed133
-rw-r--r--regtests/jedutil/jeds/gal18v10/pal12h6-to-gal18v10.jed133
-rw-r--r--regtests/jedutil/jeds/gal18v10/pal12l6-to-gal18v10.jed133
-rw-r--r--regtests/jedutil/jeds/gal18v10/pal14h4-to-gal18v10.jed133
-rw-r--r--regtests/jedutil/jeds/gal18v10/pal14l4-to-gal18v10.jed133
-rw-r--r--regtests/jedutil/jeds/gal18v10/pal16h2-to-gal18v10.jed133
-rw-r--r--regtests/jedutil/jeds/gal18v10/pal16l2-to-gal18v10.jed133
-rw-r--r--regtests/jedutil/jeds/gal18v10/pal16l8-to-gal18v10.jed133
-rw-r--r--regtests/jedutil/jeds/gal18v10/pal16r4-to-gal18v10.jed133
-rw-r--r--regtests/jedutil/jeds/gal18v10/pal16r6-to-gal18v10.jed133
-rw-r--r--regtests/jedutil/jeds/gal18v10/pal16r8-to-gal18v10.jed133
-rw-r--r--regtests/jedutil/jeds/pal10h8/pal10h8.jed36
-rw-r--r--regtests/jedutil/jeds/pal10l8/pal10l8.jed36
-rw-r--r--regtests/jedutil/jeds/pal10p8/pal10p8.jed38
-rw-r--r--regtests/jedutil/jeds/pal12h10/pal12h10.jed42
-rw-r--r--regtests/jedutil/jeds/pal12h6/pal12h6.jed34
-rw-r--r--regtests/jedutil/jeds/pal12l10/pal12l10.jed42
-rw-r--r--regtests/jedutil/jeds/pal12l6/pal12l6.jed34
-rw-r--r--regtests/jedutil/jeds/pal12p6/pal12p6.jed36
-rw-r--r--regtests/jedutil/jeds/pal14h4/pal14h4.jed32
-rw-r--r--regtests/jedutil/jeds/pal14h8/pal14h8.jed40
-rw-r--r--regtests/jedutil/jeds/pal14l4/pal14l4.jed32
-rw-r--r--regtests/jedutil/jeds/pal14l8/pal14l8.jed40
-rw-r--r--regtests/jedutil/jeds/pal14p4/pal14p4.jed34
-rw-r--r--regtests/jedutil/jeds/pal16c1/pal16c1.jed29
-rw-r--r--regtests/jedutil/jeds/pal16h2/pal16h2.jed30
-rw-r--r--regtests/jedutil/jeds/pal16h6/pal16h6.jed38
-rw-r--r--regtests/jedutil/jeds/pal16l2/pal16l2.jed30
-rw-r--r--regtests/jedutil/jeds/pal16l6/pal16l6.jed38
-rw-r--r--regtests/jedutil/jeds/pal16l8/pal16l8.jed85
-rw-r--r--regtests/jedutil/jeds/pal16p2/pal16p2.jed32
-rw-r--r--regtests/jedutil/jeds/pal16p8/pal16p8.jed86
-rw-r--r--regtests/jedutil/jeds/pal16r4/pal16r4.jed84
-rw-r--r--regtests/jedutil/jeds/pal16r6/pal16r6.jed84
-rw-r--r--regtests/jedutil/jeds/pal16r8/pal16r8.jed84
-rw-r--r--regtests/jedutil/jeds/pal16rp4/pal16rp4.jed86
-rw-r--r--regtests/jedutil/jeds/pal16rp6/pal16rp6.jed86
-rw-r--r--regtests/jedutil/jeds/pal16rp8/pal16rp8.jed86
-rw-r--r--regtests/jedutil/jeds/pal18h4/pal18h4.jed36
-rw-r--r--regtests/jedutil/jeds/pal18l4/pal18l4.jed36
-rw-r--r--regtests/jedutil/jeds/pal20c1/pal20c1.jed29
-rw-r--r--regtests/jedutil/jeds/pal20l10/pal20l10.jed62
-rw-r--r--regtests/jedutil/jeds/pal20l2/pal20l2.jed30
-rw-r--r--regtests/jedutil/jeds/pal20l8/pal20l8.jed84
-rw-r--r--regtests/jedutil/jeds/pal20r4/pal20r4.jed84
-rw-r--r--regtests/jedutil/jeds/pal20r6/pal20r6.jed84
-rw-r--r--regtests/jedutil/jeds/pal20r8/pal20r8.jed84
-rw-r--r--regtests/jedutil/jeds/pal20x10/pal20x10.jed62
-rw-r--r--regtests/jedutil/jeds/pal20x4/pal20x4.jed62
-rw-r--r--regtests/jedutil/jeds/pal20x8/pal20x8.jed62
-rw-r--r--regtests/jedutil/jeds/pal6l16/pal6l16.jed33
-rw-r--r--regtests/jedutil/jeds/pal8l14/pal8l14.jed31
-rw-r--r--regtests/jedutil/jeds/palce16v8/pal10h8-as-palce16v8.jed86
-rw-r--r--regtests/jedutil/jeds/palce16v8/pal10l8-as-palce16v8.jed86
-rw-r--r--regtests/jedutil/jeds/palce16v8/pal12h6-as-palce16v8.jed86
-rw-r--r--regtests/jedutil/jeds/palce16v8/pal12l6-as-palce16v8.jed86
-rw-r--r--regtests/jedutil/jeds/palce16v8/pal14h4-as-palce16v8.jed86
-rw-r--r--regtests/jedutil/jeds/palce16v8/pal14l4-as-palce16v8.jed86
-rw-r--r--regtests/jedutil/jeds/palce16v8/pal16h2-as-palce16v8.jed86
-rw-r--r--regtests/jedutil/jeds/palce16v8/pal16l2-as-palce16v8.jed86
-rw-r--r--regtests/jedutil/jeds/palce16v8/pal16l8-as-palce16v8.jed86
-rw-r--r--regtests/jedutil/jeds/palce16v8/pal16r4-as-palce16v8.jed86
-rw-r--r--regtests/jedutil/jeds/palce16v8/pal16r6-as-palce16v8.jed86
-rw-r--r--regtests/jedutil/jeds/palce16v8/pal16r8-as-palce16v8.jed86
-rw-r--r--regtests/jedutil/jeds/pls153/pls153.jed52
-rw-r--r--regtests/jedutil/jedtest.py149
-rw-r--r--regtests/regtests.mak67
354 files changed, 18375 insertions, 0 deletions
diff --git a/regtests/chdman/chdtest.py b/regtests/chdman/chdtest.py
new file mode 100644
index 00000000000..4b13c176cf9
--- /dev/null
+++ b/regtests/chdman/chdtest.py
@@ -0,0 +1,237 @@
+import os
+import subprocess
+import sys
+import hashlib
+import shutil
+
+def runProcess(cmd):
+ #print " ".join(cmd)
+ process = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
+ (stdout, stderr) = process.communicate()
+ if not isinstance(stdout, str): # python 3
+ stdout = stdout.decode('latin-1')
+ if not isinstance(stderr, str): # python 3
+ stderr = stderr.decode('latin-1')
+ #if stderr:
+ # print stderr
+ return process.returncode, stdout, stderr
+
+def compareInfo(info1, info2):
+ lines1 = info1.splitlines()
+ lines2 = info2.splitlines()
+ if not len(lines1) == len(lines2):
+ return False
+
+ mismatch = False
+ for i in range(len(lines1)):
+ if lines1[i].startswith("chdman - ") and lines2[i].startswith("chdman - "):
+ continue
+ if lines1[i].startswith("Input file:") and lines2[i].startswith("Input file:"):
+ continue
+ if not lines1[i] == lines2[i]:
+ mismatch = True
+ print(lines1[i] + " - " + lines2[i])
+
+ return mismatch == False
+
+def sha1sum(path):
+ if not os.path.exists(path):
+ return ""
+ f = open(path, 'rb')
+ try:
+ sha1 = hashlib.sha1()
+ while True:
+ data = f.read(8192)
+ if data:
+ sha1.update(data)
+ else:
+ break
+ finally:
+ f.close()
+ return sha1.hexdigest()
+
+def extractcdAndCompare(type):
+ global failure
+ extractFileDir = os.path.join(tempFilePath, type + "_output")
+ if not os.path.exists(extractFileDir):
+ os.makedirs(extractFileDir)
+ extractFileBase = os.path.join(extractFileDir, "extract")
+ extractFile = extractFileBase + "." + type
+ extractFileBin = extractFileBase + ".bin"
+
+ exitcode, stdout, stderr = runProcess([chdmanBin, "extractcd", "-f", "-i", outFile, "-o", extractFile])
+ if not exitcode == 0:
+ print(d + " - extractcd (" + type + ") failed with " + str(exitcode) + " (" + stderr + ")")
+ failure = True
+
+ sha1_extract = sha1sum(extractFile)
+ sha1_extract_bin = sha1sum(extractFileBin)
+
+ extractFileDir = os.path.join(tempFilePath, type + "_temp")
+ if not os.path.exists(extractFileDir):
+ os.makedirs(extractFileDir)
+ extractFileBase = os.path.join(extractFileDir, "extract")
+ extractFile = extractFileBase + "." + type
+ extractFileBin = extractFileBase + ".bin"
+
+ exitcode, stdout, stderr = runProcess([chdmanBin, "extractcd", "-f", "-i", tempFile, "-o", extractFile])
+ if not exitcode == 0:
+ print(d + " - extractcd (" + type + ") failed with " + str(exitcode) + " (" + stderr + ")")
+ failure = True
+
+ sha1_extract_2 = sha1sum(extractFile)
+ sha1_extract_bin_2 = sha1sum(extractFileBin)
+
+ if not sha1_extract == sha1_extract_2:
+ print("expected: " + sha1_extract + " found: " + sha1_extract_2)
+ print(d + " - SHA1 mismatch (extractcd - " + type + " - toc)")
+ failure = True
+
+ if not sha1_extract_bin == sha1_extract_bin_2:
+ print("expected: " + sha1_extract_bin + " found: " + sha1_extract_bin_2)
+ print(d + " - SHA1 mismatch (extractcd - " + type + " - bin)")
+ failure = True
+
+def extractAndCompare(command, ext):
+ global failure
+ extractFileDir = os.path.join(tempFilePath, ext + "_output")
+ if not os.path.exists(extractFileDir):
+ os.makedirs(extractFileDir)
+ extractFileBase = os.path.join(extractFileDir, "extract")
+ extractFile = extractFileBase + "." + ext
+
+ exitcode, stdout, stderr = runProcess([chdmanBin, command, "-f", "-i", outFile, "-o", extractFile])
+ if not exitcode == 0:
+ print(d + " - " + command + " (" + ext + ") failed with " + str(exitcode) + " (" + stderr + ")")
+ failure = True
+
+ sha1_extract = sha1sum(extractFile)
+
+ extractFileDir = os.path.join(tempFilePath, ext + "_temp")
+ if not os.path.exists(extractFileDir):
+ os.makedirs(extractFileDir)
+ extractFileBase = os.path.join(extractFileDir, "extract")
+ extractFile = extractFileBase + "." + ext
+
+ exitcode, stdout, stderr = runProcess([chdmanBin, command, "-f", "-i", tempFile, "-o", extractFile])
+ if not exitcode == 0:
+ print(d + " - " + command + " (" + ext + ") failed with " + str(exitcode) + " (" + stderr + ")")
+ failure = True
+
+ sha1_extract_2 = sha1sum(extractFile)
+
+ if not sha1_extract == sha1_extract_2:
+ print("expected: " + sha1_extract + " found: " + sha1_extract_2)
+ print(d + " - SHA1 mismatch (" + command + " - " + ext + ")")
+ failure = True
+
+currentDirectory = os.path.dirname(os.path.realpath(__file__))
+inputPath = os.path.join(currentDirectory, 'input')
+outputPath = os.path.join(currentDirectory, "output")
+tempPath = os.path.join(currentDirectory, "temp")
+if os.name == 'nt':
+ chdmanBin = os.path.normpath(os.path.join(currentDirectory, "..", "..", "chdman.exe"))
+else:
+ chdmanBin = os.path.normpath(os.path.join(currentDirectory, "..", "..", "chdman"))
+
+if not os.path.exists(chdmanBin):
+ sys.stderr.write(chdmanBin + " does not exist\n")
+ sys.exit(1)
+
+if not os.path.exists(inputPath):
+ sys.stderr.write(inputPath + " does not exist\n")
+ sys.exit(1)
+
+if not os.path.exists(outputPath):
+ sys.stderr.write(outputPath + " does not exist\n")
+ sys.exit(1)
+
+if os.path.exists(tempPath):
+ shutil.rmtree(tempPath)
+
+failure = False
+
+for root, dirs, files in os.walk(inputPath):
+ for d in dirs:
+ if d.startswith("."):
+ continue
+
+ command = ext = d.split("_", 2)[0]
+ inFile = os.path.join(root, d, "in")
+ # TODO: make this better
+ outFile = os.path.join(root, d, "out.chd").replace("input", "output")
+ tempFilePath = os.path.join(tempPath, d)
+ tempFile = os.path.join(tempFilePath, "out.chd")
+ inParams = inFile + ".params"
+ params = []
+ if os.path.exists(inParams):
+ f = open(inParams, 'r')
+ paramsstr = f.read()
+ f.close()
+ params = paramsstr.split(" ")
+ if not os.path.exists(tempFilePath):
+ os.makedirs(tempFilePath)
+ if command == "createcd":
+ ext = d.split("_", 2)[1]
+ inFile += "." + ext
+ elif command == "createhd":
+ ext = d.split("_", 2)[1]
+ inFile += "." + ext
+ elif command == "createld":
+ ext = d.split("_", 2)[1]
+ inFile += "." + ext
+ elif command == "copy":
+ inFile += ".chd"
+ else:
+ print("unsupported mode '%s'" % command)
+ continue
+ if os.path.exists(inFile):
+ cmd = [chdmanBin, command, "-f", "-i", inFile, "-o", tempFile] + params
+ else:
+ cmd = [chdmanBin, command, "-f", "-o", tempFile] + params
+
+ exitcode, stdout, stderr = runProcess(cmd)
+ if not exitcode == 0:
+ print(d + " - command failed with " + str(exitcode) + " (" + stderr + ")")
+ failure = True
+
+ # verify
+ exitcode, stdout, stderr = runProcess([chdmanBin, "verify", "-i", tempFile])
+ if not exitcode == 0:
+ print(d + " - verify failed with " + str(exitcode) + " (" + stderr + ")")
+ failure = True
+
+ # compare info
+ # TODO: store expected output of reference file as well and compare
+ exitcode, info1, stderr = runProcess([chdmanBin, "info", "-v", "-i", tempFile])
+ if not exitcode == 0:
+ print(d + " - info (temp) failed with " + str(exitcode) + " (" + stderr + ")")
+ failure = True
+ exitcode, info2, stderr = runProcess([chdmanBin, "info", "-v", "-i", outFile])
+ if not exitcode == 0:
+ print(d + " - info (output) failed with " + str(exitcode) + " (" + stderr + ")")
+ failure = True
+ if not compareInfo(info1, info2):
+ print(d + " - info output differs")
+ failure = True
+
+ # extract and compare
+ if command == "createcd":
+ extractcdAndCompare("toc")
+ extractcdAndCompare("cue")
+ elif command == "createhd":
+ extractAndCompare("extracthd", "raw")
+ elif command == "createld":
+ extractAndCompare("extractld", "avi")
+ # TODO: add extraction for "copy" as well
+
+ # compare SHA1 of output files
+ sha1_out = sha1sum(outFile)
+ sha1_temp = sha1sum(tempFile)
+ if not sha1_out == sha1_temp:
+ print("expected: " + sha1_out + " found: " + sha1_temp)
+ print(d + " - SHA1 mismatch (output file)")
+ failure = True
+
+if not failure:
+ print("All tests finished successfully")
diff --git a/regtests/chdman/input/copy_cd_cue_audio_silence_wav_20_tracks_v4/in.chd b/regtests/chdman/input/copy_cd_cue_audio_silence_wav_20_tracks_v4/in.chd
new file mode 100644
index 00000000000..9cede819041
--- /dev/null
+++ b/regtests/chdman/input/copy_cd_cue_audio_silence_wav_20_tracks_v4/in.chd
Binary files differ
diff --git a/regtests/chdman/input/copy_cd_cue_audio_silence_wav_v4/in.chd b/regtests/chdman/input/copy_cd_cue_audio_silence_wav_v4/in.chd
new file mode 100644
index 00000000000..73a5d7621d1
--- /dev/null
+++ b/regtests/chdman/input/copy_cd_cue_audio_silence_wav_v4/in.chd
Binary files differ
diff --git a/regtests/chdman/input/copy_cd_cue_empty_v4/in.chd b/regtests/chdman/input/copy_cd_cue_empty_v4/in.chd
new file mode 100644
index 00000000000..2454149c709
--- /dev/null
+++ b/regtests/chdman/input/copy_cd_cue_empty_v4/in.chd
Binary files differ
diff --git a/regtests/chdman/input/copy_cd_nrg_empty_v4/in.chd b/regtests/chdman/input/copy_cd_nrg_empty_v4/in.chd
new file mode 100644
index 00000000000..06e5c0cc6fb
--- /dev/null
+++ b/regtests/chdman/input/copy_cd_nrg_empty_v4/in.chd
Binary files differ
diff --git a/regtests/chdman/input/copy_cd_toc_empty_v4/in.chd b/regtests/chdman/input/copy_cd_toc_empty_v4/in.chd
new file mode 100644
index 00000000000..94e4b9fe6fd
--- /dev/null
+++ b/regtests/chdman/input/copy_cd_toc_empty_v4/in.chd
Binary files differ
diff --git a/regtests/chdman/input/copy_hd_1/in.chd b/regtests/chdman/input/copy_hd_1/in.chd
new file mode 100644
index 00000000000..fe9f2cb8c8e
--- /dev/null
+++ b/regtests/chdman/input/copy_hd_1/in.chd
Binary files differ
diff --git a/regtests/chdman/input/createcd_cue_audio_silence/in.bin b/regtests/chdman/input/createcd_cue_audio_silence/in.bin
new file mode 100644
index 00000000000..6e43ca05da4
--- /dev/null
+++ b/regtests/chdman/input/createcd_cue_audio_silence/in.bin
Binary files differ
diff --git a/regtests/chdman/input/createcd_cue_audio_silence/in.cue b/regtests/chdman/input/createcd_cue_audio_silence/in.cue
new file mode 100644
index 00000000000..dcd79a50599
--- /dev/null
+++ b/regtests/chdman/input/createcd_cue_audio_silence/in.cue
@@ -0,0 +1,42 @@
+FILE "in.bin" BINARY
+REM SESSION 01
+ TRACK 01 AUDIO
+ INDEX 01 00:00:00
+ TRACK 02 AUDIO
+ INDEX 01 00:04:00
+ TRACK 03 AUDIO
+ INDEX 01 00:08:00
+ TRACK 04 AUDIO
+ INDEX 01 00:12:00
+ TRACK 05 AUDIO
+ INDEX 01 00:16:00
+ TRACK 06 AUDIO
+ INDEX 01 00:20:00
+ TRACK 07 AUDIO
+ INDEX 01 00:24:00
+ TRACK 08 AUDIO
+ INDEX 01 00:28:00
+ TRACK 09 AUDIO
+ INDEX 01 00:32:00
+ TRACK 10 AUDIO
+ INDEX 01 00:36:00
+ TRACK 11 AUDIO
+ INDEX 01 00:40:00
+ TRACK 12 AUDIO
+ INDEX 01 00:44:00
+ TRACK 13 AUDIO
+ INDEX 01 00:48:00
+ TRACK 14 AUDIO
+ INDEX 01 00:52:00
+ TRACK 15 AUDIO
+ INDEX 01 00:56:00
+ TRACK 16 AUDIO
+ INDEX 01 01:00:00
+ TRACK 17 AUDIO
+ INDEX 01 01:04:00
+ TRACK 18 AUDIO
+ INDEX 01 01:08:00
+ TRACK 19 AUDIO
+ INDEX 01 01:12:00
+ TRACK 20 AUDIO
+ INDEX 01 01:16:00
diff --git a/regtests/chdman/input/createcd_cue_audio_silence_wav/in.cue b/regtests/chdman/input/createcd_cue_audio_silence_wav/in.cue
new file mode 100644
index 00000000000..4d8ac1e0798
--- /dev/null
+++ b/regtests/chdman/input/createcd_cue_audio_silence_wav/in.cue
@@ -0,0 +1,15 @@
+FILE "silence.wav" WAVE
+TRACK 01 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 02 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 03 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 04 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 05 AUDIO
+ INDEX 01 00:00:00
diff --git a/regtests/chdman/input/createcd_cue_audio_silence_wav/silence.wav b/regtests/chdman/input/createcd_cue_audio_silence_wav/silence.wav
new file mode 100644
index 00000000000..9b2ecc0eea0
--- /dev/null
+++ b/regtests/chdman/input/createcd_cue_audio_silence_wav/silence.wav
Binary files differ
diff --git a/regtests/chdman/input/createcd_cue_audio_silence_wav_20_tracks/in.cue b/regtests/chdman/input/createcd_cue_audio_silence_wav_20_tracks/in.cue
new file mode 100644
index 00000000000..93f44224774
--- /dev/null
+++ b/regtests/chdman/input/createcd_cue_audio_silence_wav_20_tracks/in.cue
@@ -0,0 +1,60 @@
+FILE "silence.wav" WAVE
+TRACK 01 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 02 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 03 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 04 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 05 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 06 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 07 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 08 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 09 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 10 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 11 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 12 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 13 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 14 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 15 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 16 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 17 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 18 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 19 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 20 AUDIO
+ INDEX 01 00:00:00
diff --git a/regtests/chdman/input/createcd_cue_audio_silence_wav_20_tracks/silence.wav b/regtests/chdman/input/createcd_cue_audio_silence_wav_20_tracks/silence.wav
new file mode 100644
index 00000000000..9b2ecc0eea0
--- /dev/null
+++ b/regtests/chdman/input/createcd_cue_audio_silence_wav_20_tracks/silence.wav
Binary files differ
diff --git a/regtests/chdman/input/createcd_cue_audio_silence_wav_20_tracks_cdfl/in.cue b/regtests/chdman/input/createcd_cue_audio_silence_wav_20_tracks_cdfl/in.cue
new file mode 100644
index 00000000000..93f44224774
--- /dev/null
+++ b/regtests/chdman/input/createcd_cue_audio_silence_wav_20_tracks_cdfl/in.cue
@@ -0,0 +1,60 @@
+FILE "silence.wav" WAVE
+TRACK 01 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 02 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 03 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 04 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 05 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 06 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 07 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 08 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 09 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 10 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 11 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 12 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 13 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 14 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 15 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 16 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 17 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 18 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 19 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 20 AUDIO
+ INDEX 01 00:00:00
diff --git a/regtests/chdman/input/createcd_cue_audio_silence_wav_20_tracks_cdfl/in.params b/regtests/chdman/input/createcd_cue_audio_silence_wav_20_tracks_cdfl/in.params
new file mode 100644
index 00000000000..9f9e0da92ee
--- /dev/null
+++ b/regtests/chdman/input/createcd_cue_audio_silence_wav_20_tracks_cdfl/in.params
@@ -0,0 +1 @@
+-c cdfl \ No newline at end of file
diff --git a/regtests/chdman/input/createcd_cue_audio_silence_wav_20_tracks_cdfl/silence.wav b/regtests/chdman/input/createcd_cue_audio_silence_wav_20_tracks_cdfl/silence.wav
new file mode 100644
index 00000000000..9b2ecc0eea0
--- /dev/null
+++ b/regtests/chdman/input/createcd_cue_audio_silence_wav_20_tracks_cdfl/silence.wav
Binary files differ
diff --git a/regtests/chdman/input/createcd_cue_audio_silence_wav_20_tracks_cdlz/in.cue b/regtests/chdman/input/createcd_cue_audio_silence_wav_20_tracks_cdlz/in.cue
new file mode 100644
index 00000000000..93f44224774
--- /dev/null
+++ b/regtests/chdman/input/createcd_cue_audio_silence_wav_20_tracks_cdlz/in.cue
@@ -0,0 +1,60 @@
+FILE "silence.wav" WAVE
+TRACK 01 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 02 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 03 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 04 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 05 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 06 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 07 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 08 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 09 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 10 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 11 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 12 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 13 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 14 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 15 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 16 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 17 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 18 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 19 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 20 AUDIO
+ INDEX 01 00:00:00
diff --git a/regtests/chdman/input/createcd_cue_audio_silence_wav_20_tracks_cdlz/in.params b/regtests/chdman/input/createcd_cue_audio_silence_wav_20_tracks_cdlz/in.params
new file mode 100644
index 00000000000..93892b23774
--- /dev/null
+++ b/regtests/chdman/input/createcd_cue_audio_silence_wav_20_tracks_cdlz/in.params
@@ -0,0 +1 @@
+-c cdlz \ No newline at end of file
diff --git a/regtests/chdman/input/createcd_cue_audio_silence_wav_20_tracks_cdlz/silence.wav b/regtests/chdman/input/createcd_cue_audio_silence_wav_20_tracks_cdlz/silence.wav
new file mode 100644
index 00000000000..9b2ecc0eea0
--- /dev/null
+++ b/regtests/chdman/input/createcd_cue_audio_silence_wav_20_tracks_cdlz/silence.wav
Binary files differ
diff --git a/regtests/chdman/input/createcd_cue_audio_silence_wav_20_tracks_cdzl/in.cue b/regtests/chdman/input/createcd_cue_audio_silence_wav_20_tracks_cdzl/in.cue
new file mode 100644
index 00000000000..93f44224774
--- /dev/null
+++ b/regtests/chdman/input/createcd_cue_audio_silence_wav_20_tracks_cdzl/in.cue
@@ -0,0 +1,60 @@
+FILE "silence.wav" WAVE
+TRACK 01 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 02 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 03 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 04 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 05 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 06 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 07 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 08 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 09 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 10 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 11 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 12 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 13 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 14 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 15 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 16 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 17 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 18 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 19 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 20 AUDIO
+ INDEX 01 00:00:00
diff --git a/regtests/chdman/input/createcd_cue_audio_silence_wav_20_tracks_cdzl/in.params b/regtests/chdman/input/createcd_cue_audio_silence_wav_20_tracks_cdzl/in.params
new file mode 100644
index 00000000000..d222c0d1c8d
--- /dev/null
+++ b/regtests/chdman/input/createcd_cue_audio_silence_wav_20_tracks_cdzl/in.params
@@ -0,0 +1 @@
+-c cdzl \ No newline at end of file
diff --git a/regtests/chdman/input/createcd_cue_audio_silence_wav_20_tracks_cdzl/silence.wav b/regtests/chdman/input/createcd_cue_audio_silence_wav_20_tracks_cdzl/silence.wav
new file mode 100644
index 00000000000..9b2ecc0eea0
--- /dev/null
+++ b/regtests/chdman/input/createcd_cue_audio_silence_wav_20_tracks_cdzl/silence.wav
Binary files differ
diff --git a/regtests/chdman/input/createcd_cue_audio_silence_wav_20_tracks_none/in.cue b/regtests/chdman/input/createcd_cue_audio_silence_wav_20_tracks_none/in.cue
new file mode 100644
index 00000000000..93f44224774
--- /dev/null
+++ b/regtests/chdman/input/createcd_cue_audio_silence_wav_20_tracks_none/in.cue
@@ -0,0 +1,60 @@
+FILE "silence.wav" WAVE
+TRACK 01 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 02 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 03 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 04 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 05 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 06 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 07 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 08 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 09 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 10 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 11 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 12 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 13 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 14 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 15 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 16 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 17 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 18 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 19 AUDIO
+ INDEX 01 00:00:00
+FILE "silence.wav" WAVE
+TRACK 20 AUDIO
+ INDEX 01 00:00:00
diff --git a/regtests/chdman/input/createcd_cue_audio_silence_wav_20_tracks_none/in.params b/regtests/chdman/input/createcd_cue_audio_silence_wav_20_tracks_none/in.params
new file mode 100644
index 00000000000..27684aad935
--- /dev/null
+++ b/regtests/chdman/input/createcd_cue_audio_silence_wav_20_tracks_none/in.params
@@ -0,0 +1 @@
+-c none \ No newline at end of file
diff --git a/regtests/chdman/input/createcd_cue_audio_silence_wav_20_tracks_none/silence.wav b/regtests/chdman/input/createcd_cue_audio_silence_wav_20_tracks_none/silence.wav
new file mode 100644
index 00000000000..9b2ecc0eea0
--- /dev/null
+++ b/regtests/chdman/input/createcd_cue_audio_silence_wav_20_tracks_none/silence.wav
Binary files differ
diff --git a/regtests/chdman/input/createcd_cue_empty/in.bin b/regtests/chdman/input/createcd_cue_empty/in.bin
new file mode 100644
index 00000000000..3c80d90ff2c
--- /dev/null
+++ b/regtests/chdman/input/createcd_cue_empty/in.bin
Binary files differ
diff --git a/regtests/chdman/input/createcd_cue_empty/in.cue b/regtests/chdman/input/createcd_cue_empty/in.cue
new file mode 100644
index 00000000000..699b6ead101
--- /dev/null
+++ b/regtests/chdman/input/createcd_cue_empty/in.cue
@@ -0,0 +1,4 @@
+FILE "in.bin" BINARY
+ TRACK 01 MODE1/2352
+ INDEX 01 00:00:00
+ REM LEAD-OUT 00:08:08
diff --git a/regtests/chdman/input/createcd_iso_empty/in.iso b/regtests/chdman/input/createcd_iso_empty/in.iso
new file mode 100644
index 00000000000..ec1c5b8dcdc
--- /dev/null
+++ b/regtests/chdman/input/createcd_iso_empty/in.iso
Binary files differ
diff --git a/regtests/chdman/input/createcd_nrg_audio_silence/in.nrg b/regtests/chdman/input/createcd_nrg_audio_silence/in.nrg
new file mode 100644
index 00000000000..fa9d6bcc723
--- /dev/null
+++ b/regtests/chdman/input/createcd_nrg_audio_silence/in.nrg
Binary files differ
diff --git a/regtests/chdman/input/createcd_nrg_empty/in.nrg b/regtests/chdman/input/createcd_nrg_empty/in.nrg
new file mode 100644
index 00000000000..4c2644a2fc7
--- /dev/null
+++ b/regtests/chdman/input/createcd_nrg_empty/in.nrg
Binary files differ
diff --git a/regtests/chdman/input/createcd_toc_empty/data.bin b/regtests/chdman/input/createcd_toc_empty/data.bin
new file mode 100644
index 00000000000..41757946af7
--- /dev/null
+++ b/regtests/chdman/input/createcd_toc_empty/data.bin
Binary files differ
diff --git a/regtests/chdman/input/createcd_toc_empty/in.toc b/regtests/chdman/input/createcd_toc_empty/in.toc
new file mode 100644
index 00000000000..5f5e42da1b7
--- /dev/null
+++ b/regtests/chdman/input/createcd_toc_empty/in.toc
@@ -0,0 +1,8 @@
+CD_ROM
+
+
+// Track 1
+TRACK MODE1_RAW RW_RAW
+NO COPY
+DATAFILE "data.bin" 00:08:08 // length in bytes: 1488384
+
diff --git a/regtests/chdman/input/createhd_1/in.params b/regtests/chdman/input/createhd_1/in.params
new file mode 100644
index 00000000000..31c49301ea1
--- /dev/null
+++ b/regtests/chdman/input/createhd_1/in.params
@@ -0,0 +1 @@
+-chs 407,4,26 -ss 512 \ No newline at end of file
diff --git a/regtests/chdman/input/createhd_2/in.params b/regtests/chdman/input/createhd_2/in.params
new file mode 100644
index 00000000000..7898d91fbaa
--- /dev/null
+++ b/regtests/chdman/input/createhd_2/in.params
@@ -0,0 +1 @@
+-chs 407,4,26 \ No newline at end of file
diff --git a/regtests/chdman/input/createhd_3/in.params b/regtests/chdman/input/createhd_3/in.params
new file mode 100644
index 00000000000..f452941d355
--- /dev/null
+++ b/regtests/chdman/input/createhd_3/in.params
@@ -0,0 +1 @@
+-chs 407,4,26 -ss 1024 \ No newline at end of file
diff --git a/regtests/chdman/input/createhd_4/in.params b/regtests/chdman/input/createhd_4/in.params
new file mode 100644
index 00000000000..51eee8734e1
--- /dev/null
+++ b/regtests/chdman/input/createhd_4/in.params
@@ -0,0 +1 @@
+-s 10485760 \ No newline at end of file
diff --git a/regtests/chdman/input/createhd_5/in.params b/regtests/chdman/input/createhd_5/in.params
new file mode 100644
index 00000000000..27e6fe0e955
--- /dev/null
+++ b/regtests/chdman/input/createhd_5/in.params
@@ -0,0 +1 @@
+-s 10485760 -ss 1024 \ No newline at end of file
diff --git a/regtests/chdman/input/createhd_raw_empty/in.raw b/regtests/chdman/input/createhd_raw_empty/in.raw
new file mode 100644
index 00000000000..098cba05d0c
--- /dev/null
+++ b/regtests/chdman/input/createhd_raw_empty/in.raw
Binary files differ
diff --git a/regtests/chdman/input/createhd_raw_empty_flac/in.params b/regtests/chdman/input/createhd_raw_empty_flac/in.params
new file mode 100644
index 00000000000..20f6ee09778
--- /dev/null
+++ b/regtests/chdman/input/createhd_raw_empty_flac/in.params
@@ -0,0 +1 @@
+-c flac \ No newline at end of file
diff --git a/regtests/chdman/input/createhd_raw_empty_flac/in.raw b/regtests/chdman/input/createhd_raw_empty_flac/in.raw
new file mode 100644
index 00000000000..098cba05d0c
--- /dev/null
+++ b/regtests/chdman/input/createhd_raw_empty_flac/in.raw
Binary files differ
diff --git a/regtests/chdman/input/createhd_raw_empty_huff/in.params b/regtests/chdman/input/createhd_raw_empty_huff/in.params
new file mode 100644
index 00000000000..ae90b88df8e
--- /dev/null
+++ b/regtests/chdman/input/createhd_raw_empty_huff/in.params
@@ -0,0 +1 @@
+-c huff \ No newline at end of file
diff --git a/regtests/chdman/input/createhd_raw_empty_huff/in.raw b/regtests/chdman/input/createhd_raw_empty_huff/in.raw
new file mode 100644
index 00000000000..098cba05d0c
--- /dev/null
+++ b/regtests/chdman/input/createhd_raw_empty_huff/in.raw
Binary files differ
diff --git a/regtests/chdman/input/createhd_raw_empty_lzma/in.params b/regtests/chdman/input/createhd_raw_empty_lzma/in.params
new file mode 100644
index 00000000000..5e92634ab96
--- /dev/null
+++ b/regtests/chdman/input/createhd_raw_empty_lzma/in.params
@@ -0,0 +1 @@
+-c lzma \ No newline at end of file
diff --git a/regtests/chdman/input/createhd_raw_empty_lzma/in.raw b/regtests/chdman/input/createhd_raw_empty_lzma/in.raw
new file mode 100644
index 00000000000..098cba05d0c
--- /dev/null
+++ b/regtests/chdman/input/createhd_raw_empty_lzma/in.raw
Binary files differ
diff --git a/regtests/chdman/input/createhd_raw_empty_none/in.params b/regtests/chdman/input/createhd_raw_empty_none/in.params
new file mode 100644
index 00000000000..27684aad935
--- /dev/null
+++ b/regtests/chdman/input/createhd_raw_empty_none/in.params
@@ -0,0 +1 @@
+-c none \ No newline at end of file
diff --git a/regtests/chdman/input/createhd_raw_empty_none/in.raw b/regtests/chdman/input/createhd_raw_empty_none/in.raw
new file mode 100644
index 00000000000..098cba05d0c
--- /dev/null
+++ b/regtests/chdman/input/createhd_raw_empty_none/in.raw
Binary files differ
diff --git a/regtests/chdman/input/createhd_raw_empty_zlib/in.params b/regtests/chdman/input/createhd_raw_empty_zlib/in.params
new file mode 100644
index 00000000000..3ddf00b4e60
--- /dev/null
+++ b/regtests/chdman/input/createhd_raw_empty_zlib/in.params
@@ -0,0 +1 @@
+-c zlib \ No newline at end of file
diff --git a/regtests/chdman/input/createhd_raw_empty_zlib/in.raw b/regtests/chdman/input/createhd_raw_empty_zlib/in.raw
new file mode 100644
index 00000000000..098cba05d0c
--- /dev/null
+++ b/regtests/chdman/input/createhd_raw_empty_zlib/in.raw
Binary files differ
diff --git a/regtests/chdman/input/createld_avi_uyvy_3_frames_no_audio/in.avi b/regtests/chdman/input/createld_avi_uyvy_3_frames_no_audio/in.avi
new file mode 100644
index 00000000000..21d518d11da
--- /dev/null
+++ b/regtests/chdman/input/createld_avi_uyvy_3_frames_no_audio/in.avi
Binary files differ
diff --git a/regtests/chdman/input/createld_avi_yuv2_3_frames_no_audio/in.avi b/regtests/chdman/input/createld_avi_yuv2_3_frames_no_audio/in.avi
new file mode 100644
index 00000000000..0ef28668558
--- /dev/null
+++ b/regtests/chdman/input/createld_avi_yuv2_3_frames_no_audio/in.avi
Binary files differ
diff --git a/regtests/chdman/output/copy_cd_cue_audio_silence_wav_20_tracks_v4/out.chd b/regtests/chdman/output/copy_cd_cue_audio_silence_wav_20_tracks_v4/out.chd
new file mode 100644
index 00000000000..5029267c6f4
--- /dev/null
+++ b/regtests/chdman/output/copy_cd_cue_audio_silence_wav_20_tracks_v4/out.chd
Binary files differ
diff --git a/regtests/chdman/output/copy_cd_cue_audio_silence_wav_v4/out.chd b/regtests/chdman/output/copy_cd_cue_audio_silence_wav_v4/out.chd
new file mode 100644
index 00000000000..bff1b64c8b9
--- /dev/null
+++ b/regtests/chdman/output/copy_cd_cue_audio_silence_wav_v4/out.chd
Binary files differ
diff --git a/regtests/chdman/output/copy_cd_cue_empty_v4/out.chd b/regtests/chdman/output/copy_cd_cue_empty_v4/out.chd
new file mode 100644
index 00000000000..af63abb92dd
--- /dev/null
+++ b/regtests/chdman/output/copy_cd_cue_empty_v4/out.chd
Binary files differ
diff --git a/regtests/chdman/output/copy_cd_nrg_empty_v4/out.chd b/regtests/chdman/output/copy_cd_nrg_empty_v4/out.chd
new file mode 100644
index 00000000000..f1dd17c8648
--- /dev/null
+++ b/regtests/chdman/output/copy_cd_nrg_empty_v4/out.chd
Binary files differ
diff --git a/regtests/chdman/output/copy_cd_toc_empty_v4/out.chd b/regtests/chdman/output/copy_cd_toc_empty_v4/out.chd
new file mode 100644
index 00000000000..2a4b79ca2be
--- /dev/null
+++ b/regtests/chdman/output/copy_cd_toc_empty_v4/out.chd
Binary files differ
diff --git a/regtests/chdman/output/copy_hd_1/out.chd b/regtests/chdman/output/copy_hd_1/out.chd
new file mode 100644
index 00000000000..a7ca9ae4078
--- /dev/null
+++ b/regtests/chdman/output/copy_hd_1/out.chd
Binary files differ
diff --git a/regtests/chdman/output/createcd_cue_audio_silence/out.chd b/regtests/chdman/output/createcd_cue_audio_silence/out.chd
new file mode 100644
index 00000000000..ea09fe064b7
--- /dev/null
+++ b/regtests/chdman/output/createcd_cue_audio_silence/out.chd
Binary files differ
diff --git a/regtests/chdman/output/createcd_cue_audio_silence_wav/out.chd b/regtests/chdman/output/createcd_cue_audio_silence_wav/out.chd
new file mode 100644
index 00000000000..c6ba0920dd7
--- /dev/null
+++ b/regtests/chdman/output/createcd_cue_audio_silence_wav/out.chd
Binary files differ
diff --git a/regtests/chdman/output/createcd_cue_audio_silence_wav_20_tracks/out.chd b/regtests/chdman/output/createcd_cue_audio_silence_wav_20_tracks/out.chd
new file mode 100644
index 00000000000..6a66b9d2257
--- /dev/null
+++ b/regtests/chdman/output/createcd_cue_audio_silence_wav_20_tracks/out.chd
Binary files differ
diff --git a/regtests/chdman/output/createcd_cue_audio_silence_wav_20_tracks_cdfl/out.chd b/regtests/chdman/output/createcd_cue_audio_silence_wav_20_tracks_cdfl/out.chd
new file mode 100644
index 00000000000..b1f977b82d2
--- /dev/null
+++ b/regtests/chdman/output/createcd_cue_audio_silence_wav_20_tracks_cdfl/out.chd
Binary files differ
diff --git a/regtests/chdman/output/createcd_cue_audio_silence_wav_20_tracks_cdlz/out.chd b/regtests/chdman/output/createcd_cue_audio_silence_wav_20_tracks_cdlz/out.chd
new file mode 100644
index 00000000000..ad65d205db6
--- /dev/null
+++ b/regtests/chdman/output/createcd_cue_audio_silence_wav_20_tracks_cdlz/out.chd
Binary files differ
diff --git a/regtests/chdman/output/createcd_cue_audio_silence_wav_20_tracks_cdzl/out.chd b/regtests/chdman/output/createcd_cue_audio_silence_wav_20_tracks_cdzl/out.chd
new file mode 100644
index 00000000000..6d7ae235898
--- /dev/null
+++ b/regtests/chdman/output/createcd_cue_audio_silence_wav_20_tracks_cdzl/out.chd
Binary files differ
diff --git a/regtests/chdman/output/createcd_cue_audio_silence_wav_20_tracks_none/out.chd b/regtests/chdman/output/createcd_cue_audio_silence_wav_20_tracks_none/out.chd
new file mode 100644
index 00000000000..5a71819d84b
--- /dev/null
+++ b/regtests/chdman/output/createcd_cue_audio_silence_wav_20_tracks_none/out.chd
Binary files differ
diff --git a/regtests/chdman/output/createcd_cue_empty/out.chd b/regtests/chdman/output/createcd_cue_empty/out.chd
new file mode 100644
index 00000000000..f8d3b6cf38d
--- /dev/null
+++ b/regtests/chdman/output/createcd_cue_empty/out.chd
Binary files differ
diff --git a/regtests/chdman/output/createcd_iso_empty/out.chd b/regtests/chdman/output/createcd_iso_empty/out.chd
new file mode 100644
index 00000000000..38ec5d5bb73
--- /dev/null
+++ b/regtests/chdman/output/createcd_iso_empty/out.chd
Binary files differ
diff --git a/regtests/chdman/output/createcd_nrg_audio_silence/out.chd b/regtests/chdman/output/createcd_nrg_audio_silence/out.chd
new file mode 100644
index 00000000000..909eb8a3227
--- /dev/null
+++ b/regtests/chdman/output/createcd_nrg_audio_silence/out.chd
Binary files differ
diff --git a/regtests/chdman/output/createcd_nrg_empty/out.chd b/regtests/chdman/output/createcd_nrg_empty/out.chd
new file mode 100644
index 00000000000..8d107159857
--- /dev/null
+++ b/regtests/chdman/output/createcd_nrg_empty/out.chd
Binary files differ
diff --git a/regtests/chdman/output/createcd_toc_empty/out.chd b/regtests/chdman/output/createcd_toc_empty/out.chd
new file mode 100644
index 00000000000..ada82c7ed8d
--- /dev/null
+++ b/regtests/chdman/output/createcd_toc_empty/out.chd
Binary files differ
diff --git a/regtests/chdman/output/createhd_1/out.chd b/regtests/chdman/output/createhd_1/out.chd
new file mode 100644
index 00000000000..fe9f2cb8c8e
--- /dev/null
+++ b/regtests/chdman/output/createhd_1/out.chd
Binary files differ
diff --git a/regtests/chdman/output/createhd_2/out.chd b/regtests/chdman/output/createhd_2/out.chd
new file mode 100644
index 00000000000..fe9f2cb8c8e
--- /dev/null
+++ b/regtests/chdman/output/createhd_2/out.chd
Binary files differ
diff --git a/regtests/chdman/output/createhd_3/out.chd b/regtests/chdman/output/createhd_3/out.chd
new file mode 100644
index 00000000000..b4d3dfc230d
--- /dev/null
+++ b/regtests/chdman/output/createhd_3/out.chd
Binary files differ
diff --git a/regtests/chdman/output/createhd_4/out.chd b/regtests/chdman/output/createhd_4/out.chd
new file mode 100644
index 00000000000..93d60a121b7
--- /dev/null
+++ b/regtests/chdman/output/createhd_4/out.chd
Binary files differ
diff --git a/regtests/chdman/output/createhd_5/out.chd b/regtests/chdman/output/createhd_5/out.chd
new file mode 100644
index 00000000000..19f90331240
--- /dev/null
+++ b/regtests/chdman/output/createhd_5/out.chd
Binary files differ
diff --git a/regtests/chdman/output/createhd_raw_empty/out.chd b/regtests/chdman/output/createhd_raw_empty/out.chd
new file mode 100644
index 00000000000..326fd46fad1
--- /dev/null
+++ b/regtests/chdman/output/createhd_raw_empty/out.chd
Binary files differ
diff --git a/regtests/chdman/output/createhd_raw_empty_flac/out.chd b/regtests/chdman/output/createhd_raw_empty_flac/out.chd
new file mode 100644
index 00000000000..70172026008
--- /dev/null
+++ b/regtests/chdman/output/createhd_raw_empty_flac/out.chd
Binary files differ
diff --git a/regtests/chdman/output/createhd_raw_empty_huff/out.chd b/regtests/chdman/output/createhd_raw_empty_huff/out.chd
new file mode 100644
index 00000000000..9a3e77cca3a
--- /dev/null
+++ b/regtests/chdman/output/createhd_raw_empty_huff/out.chd
Binary files differ
diff --git a/regtests/chdman/output/createhd_raw_empty_lzma/out.chd b/regtests/chdman/output/createhd_raw_empty_lzma/out.chd
new file mode 100644
index 00000000000..128ee583ae9
--- /dev/null
+++ b/regtests/chdman/output/createhd_raw_empty_lzma/out.chd
Binary files differ
diff --git a/regtests/chdman/output/createhd_raw_empty_none/out.chd b/regtests/chdman/output/createhd_raw_empty_none/out.chd
new file mode 100644
index 00000000000..287ede3435f
--- /dev/null
+++ b/regtests/chdman/output/createhd_raw_empty_none/out.chd
Binary files differ
diff --git a/regtests/chdman/output/createhd_raw_empty_zlib/out.chd b/regtests/chdman/output/createhd_raw_empty_zlib/out.chd
new file mode 100644
index 00000000000..ed6e28496a0
--- /dev/null
+++ b/regtests/chdman/output/createhd_raw_empty_zlib/out.chd
Binary files differ
diff --git a/regtests/chdman/output/createld_avi_uyvy_3_frames_no_audio/out.chd b/regtests/chdman/output/createld_avi_uyvy_3_frames_no_audio/out.chd
new file mode 100644
index 00000000000..36ffbd8b759
--- /dev/null
+++ b/regtests/chdman/output/createld_avi_uyvy_3_frames_no_audio/out.chd
Binary files differ
diff --git a/regtests/chdman/output/createld_avi_yuv2_3_frames_no_audio/out.chd b/regtests/chdman/output/createld_avi_yuv2_3_frames_no_audio/out.chd
new file mode 100644
index 00000000000..36ffbd8b759
--- /dev/null
+++ b/regtests/chdman/output/createld_avi_yuv2_3_frames_no_audio/out.chd
Binary files differ
diff --git a/regtests/jedutil/baseline/18cv8/18cv8_bi-directional_io.txt b/regtests/jedutil/baseline/18cv8/18cv8_bi-directional_io.txt
new file mode 100644
index 00000000000..f74e5816295
--- /dev/null
+++ b/regtests/jedutil/baseline/18cv8/18cv8_bi-directional_io.txt
@@ -0,0 +1,37 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 18, 19
+
+Outputs:
+
+12 (Combinatorial, Output feedback output, Active high)
+14 (Registered, Output feedback output, Active high)
+16 (Registered, Output feedback output, Active low)
+18 (Combinatorial, Output feedback output, Active low)
+
+Equations:
+
+o12 = i1 & /i2 +
+ /i3 & /i4 & /i5 & i6 +
+ /o18 +
+ i13 & /rfo14 & rfo16 +
+ rfo14 & i15 & /rfo16
+o12.oe = o18
+
+rf14 := i11 & /rfo14 +
+ rfo16 & /o18 +
+ o12 & /rfo16 & o18
+rf14.oe = /o12
+
+/rf16 := o12 & rfo14 +
+ /o12 & /rfo14 & /o18 +
+ i13 & rfo16
+rf16.oe = o18
+
+/o18 = /i7 & i8 & o12 +
+ /o12 +
+ /i9 & /i11 & rfo14 +
+ /i15 & rfo16 & i19 +
+ /rfo14 & /rfo16
+o18.oe = vcc
+
diff --git a/regtests/jedutil/baseline/18cv8/18cv8_combinatorial_feedback.txt b/regtests/jedutil/baseline/18cv8/18cv8_combinatorial_feedback.txt
new file mode 100644
index 00000000000..c75377415fc
--- /dev/null
+++ b/regtests/jedutil/baseline/18cv8/18cv8_combinatorial_feedback.txt
@@ -0,0 +1,35 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 18, 19
+
+Outputs:
+
+13 (Registered, Output feedback combinatorial, Active low)
+15 (Registered, Output feedback combinatorial, Active high)
+17 (Combinatorial, Output feedback combinatorial, Active high)
+19 (Combinatorial, Output feedback combinatorial, Active low)
+
+Equations:
+
+/rf13 := /i3 & /i4 & /i5 & i6 +
+ i1 & /i2 & of19 +
+ /of17 & /of19 +
+ i14 & of15 +
+ i12 & /of15
+rf13.oe = of17
+
+rf15 := of17 & of19 +
+ /of19 +
+ i11 & /i12 & of13 & /of17
+rf15.oe = /of13
+
+o17 = /of19 +
+ /of13 & of15 & i16 & of19 +
+ of13 & /of15
+o17.oe = vcc
+
+/o19 = of13 & i16 & /of17 & /i18 +
+ /i9 & /i11 & of15 +
+ /i7 & i8 & /of13 & /of15
+o19.oe = of17
+
diff --git a/regtests/jedutil/baseline/18cv8/18cv8_register_feedback.txt b/regtests/jedutil/baseline/18cv8/18cv8_register_feedback.txt
new file mode 100644
index 00000000000..64346cb15bd
--- /dev/null
+++ b/regtests/jedutil/baseline/18cv8/18cv8_register_feedback.txt
@@ -0,0 +1,35 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 18, 19
+
+Outputs:
+
+13 (Combinatorial, Output feedback registered, Active high)
+15 (Registered, Output feedback registered, Active low)
+17 (Combinatorial, Output feedback registered, Active low)
+19 (Registered, Output feedback registered, Active high)
+
+Equations:
+
+o13 = i3 & rf17 +
+ /i12 & rf15 +
+ /rf15 & /rf17 +
+ i7 & rf19 +
+ /i9 & /rf19
+o13.oe = vcc
+
+/rf15 := /rf17 +
+ /rf13 & rf19 +
+ rf13 & rf17 & /rf19
+rf15.oe = rf17
+
+/o17 = rf13 +
+ i1 & /rf13 & /rf15 & i16 +
+ rf15 & rf19
+o17.oe = /rf19
+
+rf19 := rf13 & /rf17 +
+ i8 & rf15 & rf17 +
+ i1 & i2 & /rf15
+rf19.oe = /rf13
+
diff --git a/regtests/jedutil/baseline/18cv8/pal10h8-to-peel18cv8.txt b/regtests/jedutil/baseline/18cv8/pal10h8-to-peel18cv8.txt
new file mode 100644
index 00000000000..72374ae185e
--- /dev/null
+++ b/regtests/jedutil/baseline/18cv8/pal10h8-to-peel18cv8.txt
@@ -0,0 +1,49 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 18, 19
+
+Outputs:
+
+12 (Combinatorial, Output feedback output, Active high)
+13 (Combinatorial, Output feedback output, Active high)
+14 (Combinatorial, Output feedback output, Active high)
+15 (Combinatorial, Output feedback output, Active high)
+16 (Combinatorial, Output feedback output, Active high)
+17 (Combinatorial, Output feedback output, Active high)
+18 (Combinatorial, Output feedback output, Active high)
+19 (Combinatorial, Output feedback output, Active high)
+
+Equations:
+
+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/regtests/jedutil/baseline/18cv8/pal10l8-to-peel18cv8.txt b/regtests/jedutil/baseline/18cv8/pal10l8-to-peel18cv8.txt
new file mode 100644
index 00000000000..eb0d1bd88c0
--- /dev/null
+++ b/regtests/jedutil/baseline/18cv8/pal10l8-to-peel18cv8.txt
@@ -0,0 +1,49 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 18, 19
+
+Outputs:
+
+12 (Combinatorial, Output feedback output, Active low)
+13 (Combinatorial, Output feedback output, Active low)
+14 (Combinatorial, Output feedback output, Active low)
+15 (Combinatorial, Output feedback output, Active low)
+16 (Combinatorial, Output feedback output, Active low)
+17 (Combinatorial, Output feedback output, Active low)
+18 (Combinatorial, Output feedback output, Active low)
+19 (Combinatorial, Output feedback output, Active low)
+
+Equations:
+
+/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/regtests/jedutil/baseline/18cv8/pal12h6-to-peel18cv8.txt b/regtests/jedutil/baseline/18cv8/pal12h6-to-peel18cv8.txt
new file mode 100644
index 00000000000..2669b8e2e1b
--- /dev/null
+++ b/regtests/jedutil/baseline/18cv8/pal12h6-to-peel18cv8.txt
@@ -0,0 +1,43 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 18, 19
+
+Outputs:
+
+13 (Combinatorial, Output feedback output, Active high)
+14 (Combinatorial, Output feedback output, Active high)
+15 (Combinatorial, Output feedback output, Active high)
+16 (Combinatorial, Output feedback output, Active high)
+17 (Combinatorial, Output feedback output, Active high)
+18 (Combinatorial, Output feedback output, Active high)
+
+Equations:
+
+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/regtests/jedutil/baseline/18cv8/pal12l6-to-peel18cv8.txt b/regtests/jedutil/baseline/18cv8/pal12l6-to-peel18cv8.txt
new file mode 100644
index 00000000000..317521b8dec
--- /dev/null
+++ b/regtests/jedutil/baseline/18cv8/pal12l6-to-peel18cv8.txt
@@ -0,0 +1,43 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 18, 19
+
+Outputs:
+
+13 (Combinatorial, Output feedback output, Active low)
+14 (Combinatorial, Output feedback output, Active low)
+15 (Combinatorial, Output feedback output, Active low)
+16 (Combinatorial, Output feedback output, Active low)
+17 (Combinatorial, Output feedback output, Active low)
+18 (Combinatorial, Output feedback output, Active low)
+
+Equations:
+
+/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/regtests/jedutil/baseline/18cv8/pal14h4-to-peel18cv8.txt b/regtests/jedutil/baseline/18cv8/pal14h4-to-peel18cv8.txt
new file mode 100644
index 00000000000..36c44bf7b5e
--- /dev/null
+++ b/regtests/jedutil/baseline/18cv8/pal14h4-to-peel18cv8.txt
@@ -0,0 +1,37 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 18, 19
+
+Outputs:
+
+14 (Combinatorial, Output feedback output, Active high)
+15 (Combinatorial, Output feedback output, Active high)
+16 (Combinatorial, Output feedback output, Active high)
+17 (Combinatorial, Output feedback output, Active high)
+
+Equations:
+
+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/regtests/jedutil/baseline/18cv8/pal14l4-to-peel18cv8.txt b/regtests/jedutil/baseline/18cv8/pal14l4-to-peel18cv8.txt
new file mode 100644
index 00000000000..ddbae1bd871
--- /dev/null
+++ b/regtests/jedutil/baseline/18cv8/pal14l4-to-peel18cv8.txt
@@ -0,0 +1,37 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 18, 19
+
+Outputs:
+
+14 (Combinatorial, Output feedback output, Active low)
+15 (Combinatorial, Output feedback output, Active low)
+16 (Combinatorial, Output feedback output, Active low)
+17 (Combinatorial, Output feedback output, Active low)
+
+Equations:
+
+/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/regtests/jedutil/baseline/18cv8/pal16h2-to-peel18cv8.txt b/regtests/jedutil/baseline/18cv8/pal16h2-to-peel18cv8.txt
new file mode 100644
index 00000000000..8be12b5d9e7
--- /dev/null
+++ b/regtests/jedutil/baseline/18cv8/pal16h2-to-peel18cv8.txt
@@ -0,0 +1,31 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 18, 19
+
+Outputs:
+
+15 (Combinatorial, Output feedback output, Active high)
+16 (Combinatorial, Output feedback output, Active high)
+
+Equations:
+
+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/regtests/jedutil/baseline/18cv8/pal16l2-to-peel18cv8.txt b/regtests/jedutil/baseline/18cv8/pal16l2-to-peel18cv8.txt
new file mode 100644
index 00000000000..f49e147580e
--- /dev/null
+++ b/regtests/jedutil/baseline/18cv8/pal16l2-to-peel18cv8.txt
@@ -0,0 +1,31 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 18, 19
+
+Outputs:
+
+15 (Combinatorial, Output feedback output, Active low)
+16 (Combinatorial, Output feedback output, Active low)
+
+Equations:
+
+/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/regtests/jedutil/baseline/18cv8/pal16l8-to-peel18cv8.txt b/regtests/jedutil/baseline/18cv8/pal16l8-to-peel18cv8.txt
new file mode 100644
index 00000000000..36a1304f807
--- /dev/null
+++ b/regtests/jedutil/baseline/18cv8/pal16l8-to-peel18cv8.txt
@@ -0,0 +1,89 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 18, 19
+
+Outputs:
+
+12 (Combinatorial, Output feedback output, Active low)
+13 (Combinatorial, Output feedback output, Active low)
+14 (Combinatorial, Output feedback output, Active low)
+15 (Combinatorial, Output feedback output, Active low)
+16 (Combinatorial, Output feedback output, Active low)
+17 (Combinatorial, Output feedback output, Active low)
+18 (Combinatorial, Output feedback output, Active low)
+19 (Combinatorial, Output feedback output, Active low)
+
+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 +
+ /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/regtests/jedutil/baseline/18cv8/pal16r4-to-peel18cv8.txt b/regtests/jedutil/baseline/18cv8/pal16r4-to-peel18cv8.txt
new file mode 100644
index 00000000000..7db8ff85b13
--- /dev/null
+++ b/regtests/jedutil/baseline/18cv8/pal16r4-to-peel18cv8.txt
@@ -0,0 +1,93 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 18, 19
+
+Outputs:
+
+12 (Combinatorial, Output feedback output, Active low)
+13 (Combinatorial, Output feedback output, Active low)
+14 (Registered, Output feedback registered, Active low)
+15 (Registered, Output feedback registered, Active low)
+16 (Registered, Output feedback registered, Active low)
+17 (Registered, Output feedback registered, Active low)
+18 (Combinatorial, Output feedback output, Active low)
+19 (Combinatorial, Output feedback output, Active low)
+
+Equations:
+
+/o12 = /i2 & /i3 +
+ i4 & o13 +
+ i3 +
+ /i6 +
+ i8 +
+ /i9 +
+ i7 & /o13
+o12.oe = rf14
+
+/o13 = /rf14 +
+ /i9 +
+ i8 +
+ /i7 +
+ /i6 & /rf14 +
+ i5 +
+ i4
+o13.oe = i2 & rf14
+
+/rf14 := /rf15 +
+ /i8 +
+ i8 +
+ /i2 & /rf15 +
+ /i2 +
+ i2 & /i8 & rf15 +
+ /i4 +
+ i3
+rf14.oe = /i11
+
+/rf15 := i3 & i6 & i7 +
+ i6 & rf16 +
+ i3 & /rf16 +
+ i7 +
+ /i4 +
+ i6 & i7 +
+ i4 & i7 +
+ /i2 & /i7
+rf15.oe = /i11
+
+/rf16 := /i3 & /rf17 +
+ /i4 +
+ /i3 +
+ /i3 & i4 +
+ /i7 & rf17 +
+ /i7 +
+ i4 +
+ i2 & i3
+rf16.oe = /i11
+
+/rf17 := i2 & i5 & i6 & /i7 +
+ i2 & /o18 +
+ i5 +
+ i6 +
+ /i7 & o18 +
+ i2 & /i7 +
+ i5 & i6 +
+ /i3
+rf17.oe = /i11
+
+/o18 = /i2 & i5 & i6 & /i7 +
+ i3 & i6 & i7 +
+ i3 +
+ /i2 & /i7 +
+ /i3 +
+ i5 & i6 & /i7 +
+ i7
+o18.oe = vcc
+
+/o19 = i5 & i6 & /i7 +
+ i3 & i6 & i7 +
+ i5 +
+ i6 +
+ i7 +
+ /i4 +
+ /i7
+o19.oe = vcc
+
diff --git a/regtests/jedutil/baseline/18cv8/pal16r6-to-peel18cv8.txt b/regtests/jedutil/baseline/18cv8/pal16r6-to-peel18cv8.txt
new file mode 100644
index 00000000000..7c88b6176a1
--- /dev/null
+++ b/regtests/jedutil/baseline/18cv8/pal16r6-to-peel18cv8.txt
@@ -0,0 +1,95 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 18, 19
+
+Outputs:
+
+12 (Combinatorial, Output feedback output, Active low)
+13 (Registered, Output feedback registered, Active low)
+14 (Registered, Output feedback registered, Active low)
+15 (Registered, Output feedback registered, Active low)
+16 (Registered, Output feedback registered, Active low)
+17 (Registered, Output feedback registered, Active low)
+18 (Registered, Output feedback registered, Active low)
+19 (Combinatorial, Output feedback output, Active low)
+
+Equations:
+
+/o12 = /i2 & /i3 +
+ i4 & rf13 +
+ i3 +
+ /i6 +
+ i8 +
+ /i9 +
+ i7 & /rf13
+o12.oe = rf14
+
+/rf13 := /rf14 +
+ /i9 +
+ i8 +
+ /i7 +
+ /i6 & /rf14 +
+ i5 & rf14 +
+ i4 +
+ /i2
+rf13.oe = /i11
+
+/rf14 := /rf15 +
+ /i8 +
+ i8 +
+ /i2 & /rf15 +
+ /i2 +
+ i2 & /i8 & rf15 +
+ /i4 +
+ i3
+rf14.oe = /i11
+
+/rf15 := i3 & i6 & i7 +
+ i6 & rf16 +
+ i3 & /rf16 +
+ i7 +
+ /i4 +
+ i6 & i7 +
+ i4 & i7 +
+ /i2 & /i7
+rf15.oe = /i11
+
+/rf16 := /i3 & /rf17 +
+ /i4 +
+ /i3 +
+ /i3 & i4 +
+ /i7 & rf17 +
+ /i7 +
+ i4 +
+ i2 & i3
+rf16.oe = /i11
+
+/rf17 := i2 & i5 & i6 & /i7 +
+ i2 & /rf18 +
+ i5 +
+ i6 +
+ /i7 & rf18 +
+ i2 & /i7 +
+ i5 & i6 +
+ /i3
+rf17.oe = /i11
+
+/rf18 := /i2 & i5 & i6 & /i7 +
+ i3 & i6 & i7 +
+ i3 +
+ /i2 & /i7 +
+ /i3 +
+ i5 & i6 & /i7 +
+ i7 +
+ i4
+rf18.oe = /i11
+
+/o19 = i5 & i6 & /i7 +
+ i3 & i6 & i7 +
+ i5 +
+ i6 +
+ i7 +
+ /i4 +
+ /i7
+o19.oe = vcc
+
diff --git a/regtests/jedutil/baseline/18cv8/pal16r8-to-peel18cv8.txt b/regtests/jedutil/baseline/18cv8/pal16r8-to-peel18cv8.txt
new file mode 100644
index 00000000000..cd37e419c00
--- /dev/null
+++ b/regtests/jedutil/baseline/18cv8/pal16r8-to-peel18cv8.txt
@@ -0,0 +1,97 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 18, 19
+
+Outputs:
+
+12 (Registered, Output feedback registered, Active low)
+13 (Registered, Output feedback registered, Active low)
+14 (Registered, Output feedback registered, Active low)
+15 (Registered, Output feedback registered, Active low)
+16 (Registered, Output feedback registered, Active low)
+17 (Registered, Output feedback registered, Active low)
+18 (Registered, Output feedback registered, Active low)
+19 (Registered, Output feedback registered, Active low)
+
+Equations:
+
+/rf12 := /i2 & /i3 +
+ i4 & rf13 +
+ i3 +
+ /i6 +
+ i8 +
+ /i9 +
+ i7 & /rf13 +
+ i5
+rf12.oe = /i11
+
+/rf13 := /rf14 +
+ /i9 +
+ i8 +
+ /i7 +
+ /i6 & rf14 +
+ i5 +
+ i4 +
+ /i3
+rf13.oe = /i11
+
+/rf14 := /rf15 +
+ /i8 +
+ i8 +
+ /i2 & /rf15 +
+ /i2 +
+ i2 & /i8 & rf15 +
+ /i4 +
+ i3
+rf14.oe = /i11
+
+/rf15 := i3 & i6 & i7 +
+ i6 & rf16 +
+ i3 & /rf16 +
+ i7 +
+ /i4 +
+ i6 & i7 +
+ i4 & i7 +
+ /i2 & /i7
+rf15.oe = /i11
+
+/rf16 := /i3 & /rf17 +
+ /i4 +
+ /i3 +
+ /i3 & i4 +
+ /i7 & rf17 +
+ /i7 +
+ i4 +
+ i2 & i3
+rf16.oe = /i11
+
+/rf17 := i2 & i5 & i6 & /i7 +
+ i2 & /rf18 +
+ i5 +
+ i6 +
+ /i7 & rf18 +
+ i2 & /i7 +
+ i5 & i6 +
+ /i3
+rf17.oe = /i11
+
+/rf18 := /i2 & i5 & i6 & /i7 +
+ i3 & i6 & i7 +
+ i3 & rf19 +
+ /i2 & /i7 +
+ /i3 & /rf19 +
+ i5 & i6 & /i7 +
+ i7 +
+ /i4
+rf18.oe = /i11
+
+/rf19 := i5 & i6 & /i7 +
+ i3 & i6 & i7 +
+ i5 & rf12 +
+ i6 +
+ i7 +
+ /i4 & /rf12 +
+ /i7 +
+ i2
+rf19.oe = /i11
+
diff --git a/regtests/jedutil/baseline/ck2605/ck2605-test1.txt b/regtests/jedutil/baseline/ck2605/ck2605-test1.txt
new file mode 100644
index 00000000000..775871608d5
--- /dev/null
+++ b/regtests/jedutil/baseline/ck2605/ck2605-test1.txt
@@ -0,0 +1,109 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 18, 19
+
+Outputs:
+
+9 (Combinatorial, Output feedback output, Active low)
+13 (Combinatorial, Output feedback output, Active high)
+14 (Combinatorial, Output feedback output, Active high)
+15 (Combinatorial, Output feedback output, Active low)
+18 (Combinatorial, Output feedback output, Active high)
+19 (Combinatorial, Output feedback output, Active low)
+
+Equations:
+
+/o9 = i1 & i12 +
+ /i2 & /o13 +
+ i2 & o13 +
+ /i3 & /o14 +
+ i3 & o14 +
+ /i4 & /o15 +
+ i4 & i16 +
+ i5 & /i16 +
+ i7 & /i17 +
+ /i8 & i17 +
+ i8 & /o18 +
+ /o9 & o18 +
+ o9 & /o19 +
+ /i11 & o19
+o9.oe = vcc
+
+o13 = i1 & i12 +
+ /i2 & /o13 +
+ i2 & o13 +
+ /i3 & /o14 +
+ i3 & o14 +
+ i4 & i16 +
+ i5 & /i16 +
+ i16 +
+ i7 & /i17 +
+ /i8 & i17 +
+ /o9 & o18 +
+ o9 & /o19 +
+ /i11 & o19
+o13.oe = i1 & i2 & i3 & i4 & i5 & i6 & i7 & i8
+
+o14 = i1 & i12 +
+ /i2 & /o13 +
+ i2 & o13 +
+ /i3 & /o14 +
+ /i4 & /o15 +
+ i4 & i16 +
+ i5 & /i16 +
+ i16 +
+ i7 & /i17 +
+ /i8 & i17 +
+ i8 & /o18 +
+ o9 & /o19 +
+ /i11 & o19
+o14.oe = /i1 & /i2 & /i3 & /i4 & /i5 & /i6 & /i7 & /i8
+
+/o15 = i1 & i12 +
+ /i2 & /o13 +
+ i2 & o13 +
+ i3 & o14 +
+ /i4 & /o15 +
+ i4 & i16 +
+ i5 & /i16 +
+ i16 +
+ i7 & /i17 +
+ /i8 & i17 +
+ i8 & /o18 +
+ /o9 & o18 +
+ /i11 & o19
+o15.oe = /o9 & /i11 & /i12 & /o13 & /o14 & /o15 & /i16 & /i17 & /o18 & /o19
+
+o18 = /i2 & /o13 +
+ i2 & o13 +
+ /i3 & /o14 +
+ i3 & o14 +
+ /i4 & /o15 +
+ i4 & i16 +
+ i5 & /i16 +
+ i16 +
+ i7 & /i17 +
+ /i8 & i17 +
+ i8 & /o18 +
+ /o9 & o18 +
+ o9 & /o19 +
+ /i11 & o19
+o18.oe = i11 & i12 & o13 & o14 & o15 & i16 & i17 & o18 & o19
+
+/o19 = i1 & i12 +
+ /i2 & /o13 +
+ i2 & o13 +
+ /i3 & /o14 +
+ i3 & o14 +
+ /i4 & /o15 +
+ i4 & i16 +
+ i5 & /i16 +
+ i16 +
+ i7 & /i17 +
+ /i8 & i17 +
+ i8 & /o18 +
+ /o9 & o18 +
+ o9 & /o19 +
+ /i11 & o19
+o19.oe = vcc
+
diff --git a/regtests/jedutil/baseline/ck2605/ck2605-test2.txt b/regtests/jedutil/baseline/ck2605/ck2605-test2.txt
new file mode 100644
index 00000000000..d8ee2ed1772
--- /dev/null
+++ b/regtests/jedutil/baseline/ck2605/ck2605-test2.txt
@@ -0,0 +1,109 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 18, 19
+
+Outputs:
+
+9 (Combinatorial, Output feedback output, Active high)
+13 (Combinatorial, Output feedback output, Active low)
+14 (Combinatorial, Output feedback output, Active low)
+15 (Combinatorial, Output feedback output, Active high)
+18 (Combinatorial, Output feedback output, Active low)
+19 (Combinatorial, Output feedback output, Active high)
+
+Equations:
+
+o9 = i1 & i12 +
+ /i2 & /o13 +
+ i2 & o13 +
+ /i3 & /o14 +
+ i3 & o14 +
+ /i4 & /o15 +
+ i4 & i16 +
+ i5 & /i16 +
+ i7 & /i17 +
+ /i8 & i17 +
+ i8 & /o18 +
+ /o9 & o18 +
+ o9 & /o19 +
+ /i11 & o19
+o9.oe = vcc
+
+/o13 = i1 & i12 +
+ /i2 & /o13 +
+ i2 & o13 +
+ /i3 & /o14 +
+ i3 & o14 +
+ i4 & i16 +
+ i5 & /i16 +
+ i16 +
+ i7 & /i17 +
+ /i8 & i17 +
+ /o9 & o18 +
+ o9 & /o19 +
+ /i11 & o19
+o13.oe = i1 & i2 & i3 & i4 & i5 & i6 & i7 & i8
+
+/o14 = i1 & i12 +
+ /i2 & /o13 +
+ i2 & o13 +
+ /i3 & /o14 +
+ /i4 & /o15 +
+ i4 & i16 +
+ i5 & /i16 +
+ i16 +
+ i7 & /i17 +
+ /i8 & i17 +
+ i8 & /o18 +
+ o9 & /o19 +
+ /i11 & o19
+o14.oe = /i1 & /i2 & /i3 & /i4 & /i5 & /i6 & /i7 & /i8
+
+o15 = i1 & i12 +
+ /i2 & /o13 +
+ i2 & o13 +
+ i3 & o14 +
+ /i4 & /o15 +
+ i4 & i16 +
+ i5 & /i16 +
+ i16 +
+ i7 & /i17 +
+ /i8 & i17 +
+ i8 & /o18 +
+ /o9 & o18 +
+ /i11 & o19
+o15.oe = /o9 & /i11 & /i12 & /o13 & /o14 & /o15 & /i16 & /i17 & /o18 & /o19
+
+/o18 = /i2 & /o13 +
+ i2 & o13 +
+ /i3 & /o14 +
+ i3 & o14 +
+ /i4 & /o15 +
+ i4 & i16 +
+ i5 & /i16 +
+ i16 +
+ i7 & /i17 +
+ /i8 & i17 +
+ i8 & /o18 +
+ /o9 & o18 +
+ o9 & /o19 +
+ /i11 & o19
+o18.oe = i11 & i12 & o13 & o14 & o15 & i16 & i17 & o18 & o19
+
+o19 = i1 & i12 +
+ /i2 & /o13 +
+ i2 & o13 +
+ /i3 & /o14 +
+ i3 & o14 +
+ /i4 & /o15 +
+ i4 & i16 +
+ i5 & /i16 +
+ i16 +
+ i7 & /i17 +
+ /i8 & i17 +
+ i8 & /o18 +
+ /o9 & o18 +
+ o9 & /o19 +
+ /i11 & o19
+o19.oe = vcc
+
diff --git a/regtests/jedutil/baseline/gal16v8/pal10h8-to-gal16v8.txt b/regtests/jedutil/baseline/gal16v8/pal10h8-to-gal16v8.txt
new file mode 100644
index 00000000000..7b49c5e8a42
--- /dev/null
+++ b/regtests/jedutil/baseline/gal16v8/pal10h8-to-gal16v8.txt
@@ -0,0 +1,49 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 17, 18, 19
+
+Outputs:
+
+12 (Combinatorial, Output feedback output, Active high)
+13 (Combinatorial, Output feedback output, Active high)
+14 (Combinatorial, Output feedback output, Active high)
+15 (Combinatorial, No output feedback, Active high)
+16 (Combinatorial, No output feedback, Active high)
+17 (Combinatorial, Output feedback output, Active high)
+18 (Combinatorial, Output feedback output, Active high)
+19 (Combinatorial, Output feedback output, Active high)
+
+Equations:
+
+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/regtests/jedutil/baseline/gal16v8/pal10l8-to-gal16v8.txt b/regtests/jedutil/baseline/gal16v8/pal10l8-to-gal16v8.txt
new file mode 100644
index 00000000000..6a014ee5bb1
--- /dev/null
+++ b/regtests/jedutil/baseline/gal16v8/pal10l8-to-gal16v8.txt
@@ -0,0 +1,49 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 17, 18, 19
+
+Outputs:
+
+12 (Combinatorial, Output feedback output, Active low)
+13 (Combinatorial, Output feedback output, Active low)
+14 (Combinatorial, Output feedback output, Active low)
+15 (Combinatorial, No output feedback, Active low)
+16 (Combinatorial, No output feedback, Active low)
+17 (Combinatorial, Output feedback output, Active low)
+18 (Combinatorial, Output feedback output, Active low)
+19 (Combinatorial, Output feedback output, Active low)
+
+Equations:
+
+/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/regtests/jedutil/baseline/gal16v8/pal12h6-to-gal16v8.txt b/regtests/jedutil/baseline/gal16v8/pal12h6-to-gal16v8.txt
new file mode 100644
index 00000000000..beff18b6149
--- /dev/null
+++ b/regtests/jedutil/baseline/gal16v8/pal12h6-to-gal16v8.txt
@@ -0,0 +1,43 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 17, 18, 19
+
+Outputs:
+
+13 (Combinatorial, Output feedback output, Active high)
+14 (Combinatorial, Output feedback output, Active high)
+15 (Combinatorial, No output feedback, Active high)
+16 (Combinatorial, No output feedback, Active high)
+17 (Combinatorial, Output feedback output, Active high)
+18 (Combinatorial, Output feedback output, Active high)
+
+Equations:
+
+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/regtests/jedutil/baseline/gal16v8/pal12l6-to-gal16v8.txt b/regtests/jedutil/baseline/gal16v8/pal12l6-to-gal16v8.txt
new file mode 100644
index 00000000000..2dbd6579d0a
--- /dev/null
+++ b/regtests/jedutil/baseline/gal16v8/pal12l6-to-gal16v8.txt
@@ -0,0 +1,43 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 17, 18, 19
+
+Outputs:
+
+13 (Combinatorial, Output feedback output, Active low)
+14 (Combinatorial, Output feedback output, Active low)
+15 (Combinatorial, No output feedback, Active low)
+16 (Combinatorial, No output feedback, Active low)
+17 (Combinatorial, Output feedback output, Active low)
+18 (Combinatorial, Output feedback output, Active low)
+
+Equations:
+
+/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/regtests/jedutil/baseline/gal16v8/pal14h4-to-gal16v8.txt b/regtests/jedutil/baseline/gal16v8/pal14h4-to-gal16v8.txt
new file mode 100644
index 00000000000..70bea92edd5
--- /dev/null
+++ b/regtests/jedutil/baseline/gal16v8/pal14h4-to-gal16v8.txt
@@ -0,0 +1,37 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 17, 18, 19
+
+Outputs:
+
+14 (Combinatorial, Output feedback output, Active high)
+15 (Combinatorial, No output feedback, Active high)
+16 (Combinatorial, No output feedback, Active high)
+17 (Combinatorial, Output feedback output, Active high)
+
+Equations:
+
+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/regtests/jedutil/baseline/gal16v8/pal14l4-to-gal16v8.txt b/regtests/jedutil/baseline/gal16v8/pal14l4-to-gal16v8.txt
new file mode 100644
index 00000000000..a094121bdbd
--- /dev/null
+++ b/regtests/jedutil/baseline/gal16v8/pal14l4-to-gal16v8.txt
@@ -0,0 +1,37 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 17, 18, 19
+
+Outputs:
+
+14 (Combinatorial, Output feedback output, Active low)
+15 (Combinatorial, No output feedback, Active low)
+16 (Combinatorial, No output feedback, Active low)
+17 (Combinatorial, Output feedback output, Active low)
+
+Equations:
+
+/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/regtests/jedutil/baseline/gal16v8/pal16h2-to-gal16v8.txt b/regtests/jedutil/baseline/gal16v8/pal16h2-to-gal16v8.txt
new file mode 100644
index 00000000000..3ad2680c48f
--- /dev/null
+++ b/regtests/jedutil/baseline/gal16v8/pal16h2-to-gal16v8.txt
@@ -0,0 +1,31 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 17, 18, 19
+
+Outputs:
+
+15 (Combinatorial, No output feedback, Active high)
+16 (Combinatorial, No output feedback, Active high)
+
+Equations:
+
+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/regtests/jedutil/baseline/gal16v8/pal16l2-to-gal16v8.txt b/regtests/jedutil/baseline/gal16v8/pal16l2-to-gal16v8.txt
new file mode 100644
index 00000000000..7d19f691192
--- /dev/null
+++ b/regtests/jedutil/baseline/gal16v8/pal16l2-to-gal16v8.txt
@@ -0,0 +1,31 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 17, 18, 19
+
+Outputs:
+
+15 (Combinatorial, No output feedback, Active low)
+16 (Combinatorial, No output feedback, Active low)
+
+Equations:
+
+/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/regtests/jedutil/baseline/gal16v8/pal16l8-to-gal16v8.txt b/regtests/jedutil/baseline/gal16v8/pal16l8-to-gal16v8.txt
new file mode 100644
index 00000000000..5d7e5a5df94
--- /dev/null
+++ b/regtests/jedutil/baseline/gal16v8/pal16l8-to-gal16v8.txt
@@ -0,0 +1,89 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 13, 14, 15, 16, 17, 18
+
+Outputs:
+
+12 (Combinatorial, No output feedback, Active low)
+13 (Combinatorial, Output feedback output, Active low)
+14 (Combinatorial, Output feedback output, Active low)
+15 (Combinatorial, Output feedback output, Active low)
+16 (Combinatorial, Output feedback output, Active low)
+17 (Combinatorial, Output feedback output, Active low)
+18 (Combinatorial, Output feedback output, Active low)
+19 (Combinatorial, No output feedback, Active low)
+
+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 +
+ /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/regtests/jedutil/baseline/gal16v8/pal16r4-to-gal16v8.txt b/regtests/jedutil/baseline/gal16v8/pal16r4-to-gal16v8.txt
new file mode 100644
index 00000000000..dcc158eb61b
--- /dev/null
+++ b/regtests/jedutil/baseline/gal16v8/pal16r4-to-gal16v8.txt
@@ -0,0 +1,93 @@
+Inputs:
+
+2, 3, 4, 5, 6, 7, 8, 9, 12, 13, 14, 15, 16, 17, 18, 19
+
+Outputs:
+
+12 (Combinatorial, Output feedback output, Active low)
+13 (Combinatorial, Output feedback output, Active low)
+14 (Registered, Output feedback registered, Active low)
+15 (Registered, Output feedback registered, Active low)
+16 (Registered, Output feedback registered, Active low)
+17 (Registered, Output feedback registered, Active low)
+18 (Combinatorial, Output feedback output, Active low)
+19 (Combinatorial, Output feedback output, Active low)
+
+Equations:
+
+/o12 = /i2 & /i3 +
+ i4 & o13 +
+ i3 +
+ /i6 +
+ i8 +
+ /i9 +
+ i7 & /o13
+o12.oe = rf14
+
+/o13 = /rf14 +
+ /i9 +
+ i8 +
+ /i7 +
+ /i6 & /rf14 +
+ i5 +
+ i4
+o13.oe = i2 & rf14
+
+/rf14 := /rf15 +
+ /i8 +
+ i8 +
+ /i2 & /rf15 +
+ /i2 +
+ i2 & /i8 & rf15 +
+ /i4 +
+ i3
+rf14.oe = OE
+
+/rf15 := i3 & i6 & i7 +
+ i6 & rf16 +
+ i3 & /rf16 +
+ i7 +
+ /i4 +
+ i6 & i7 +
+ i4 & i7 +
+ /i2 & /i7
+rf15.oe = OE
+
+/rf16 := /i3 & /rf17 +
+ /i4 +
+ /i3 +
+ /i3 & i4 +
+ /i7 & rf17 +
+ /i7 +
+ i4 +
+ i2 & i3
+rf16.oe = OE
+
+/rf17 := i2 & i5 & i6 & /i7 +
+ i2 & /o18 +
+ i5 +
+ i6 +
+ /i7 & o18 +
+ i2 & /i7 +
+ i5 & i6 +
+ /i3
+rf17.oe = OE
+
+/o18 = /i2 & i5 & i6 & /i7 +
+ i3 & i6 & i7 +
+ i3 +
+ /i2 & /i7 +
+ /i3 +
+ i5 & i6 & /i7 +
+ i7
+o18.oe = vcc
+
+/o19 = i5 & i6 & /i7 +
+ i3 & i6 & i7 +
+ i5 +
+ i6 +
+ i7 +
+ /i4 +
+ /i7
+o19.oe = vcc
+
diff --git a/regtests/jedutil/baseline/gal16v8/pal16r6-to-gal16v8.txt b/regtests/jedutil/baseline/gal16v8/pal16r6-to-gal16v8.txt
new file mode 100644
index 00000000000..ecbb979cdc1
--- /dev/null
+++ b/regtests/jedutil/baseline/gal16v8/pal16r6-to-gal16v8.txt
@@ -0,0 +1,95 @@
+Inputs:
+
+2, 3, 4, 5, 6, 7, 8, 9, 12, 13, 14, 15, 16, 17, 18, 19
+
+Outputs:
+
+12 (Combinatorial, Output feedback output, Active low)
+13 (Registered, Output feedback registered, Active low)
+14 (Registered, Output feedback registered, Active low)
+15 (Registered, Output feedback registered, Active low)
+16 (Registered, Output feedback registered, Active low)
+17 (Registered, Output feedback registered, Active low)
+18 (Registered, Output feedback registered, Active low)
+19 (Combinatorial, Output feedback output, Active low)
+
+Equations:
+
+/o12 = /i2 & /i3 +
+ i4 & rf13 +
+ i3 +
+ /i6 +
+ i8 +
+ /i9 +
+ i7 & /rf13
+o12.oe = rf14
+
+/rf13 := /rf14 +
+ /i9 +
+ i8 +
+ /i7 +
+ /i6 & /rf14 +
+ i5 & rf14 +
+ i4 +
+ /i2
+rf13.oe = OE
+
+/rf14 := /rf15 +
+ /i8 +
+ i8 +
+ /i2 & /rf15 +
+ /i2 +
+ i2 & /i8 & rf15 +
+ /i4 +
+ i3
+rf14.oe = OE
+
+/rf15 := i3 & i6 & i7 +
+ i6 & rf16 +
+ i3 & /rf16 +
+ i7 +
+ /i4 +
+ i6 & i7 +
+ i4 & i7 +
+ /i2 & /i7
+rf15.oe = OE
+
+/rf16 := /i3 & /rf17 +
+ /i4 +
+ /i3 +
+ /i3 & i4 +
+ /i7 & rf17 +
+ /i7 +
+ i4 +
+ i2 & i3
+rf16.oe = OE
+
+/rf17 := i2 & i5 & i6 & /i7 +
+ i2 & /rf18 +
+ i5 +
+ i6 +
+ /i7 & rf18 +
+ i2 & /i7 +
+ i5 & i6 +
+ /i3
+rf17.oe = OE
+
+/rf18 := /i2 & i5 & i6 & /i7 +
+ i3 & i6 & i7 +
+ i3 +
+ /i2 & /i7 +
+ /i3 +
+ i5 & i6 & /i7 +
+ i7 +
+ i4
+rf18.oe = OE
+
+/o19 = i5 & i6 & /i7 +
+ i3 & i6 & i7 +
+ i5 +
+ i6 +
+ i7 +
+ /i4 +
+ /i7
+o19.oe = vcc
+
diff --git a/regtests/jedutil/baseline/gal16v8/pal16r8-to-gal16v8.txt b/regtests/jedutil/baseline/gal16v8/pal16r8-to-gal16v8.txt
new file mode 100644
index 00000000000..99beae32944
--- /dev/null
+++ b/regtests/jedutil/baseline/gal16v8/pal16r8-to-gal16v8.txt
@@ -0,0 +1,97 @@
+Inputs:
+
+2, 3, 4, 5, 6, 7, 8, 9, 12, 13, 14, 15, 16, 17, 18, 19
+
+Outputs:
+
+12 (Registered, Output feedback registered, Active low)
+13 (Registered, Output feedback registered, Active low)
+14 (Registered, Output feedback registered, Active low)
+15 (Registered, Output feedback registered, Active low)
+16 (Registered, Output feedback registered, Active low)
+17 (Registered, Output feedback registered, Active low)
+18 (Registered, Output feedback registered, Active low)
+19 (Registered, Output feedback registered, Active low)
+
+Equations:
+
+/rf12 := /i2 & /i3 +
+ i4 & rf13 +
+ i3 +
+ /i6 +
+ i8 +
+ /i9 +
+ i7 & /rf13 +
+ i5
+rf12.oe = OE
+
+/rf13 := /rf14 +
+ /i9 +
+ i8 +
+ /i7 +
+ /i6 & rf14 +
+ i5 +
+ i4 +
+ /i3
+rf13.oe = OE
+
+/rf14 := /rf15 +
+ /i8 +
+ i8 +
+ /i2 & /rf15 +
+ /i2 +
+ i2 & /i8 & rf15 +
+ /i4 +
+ i3
+rf14.oe = OE
+
+/rf15 := i3 & i6 & i7 +
+ i6 & rf16 +
+ i3 & /rf16 +
+ i7 +
+ /i4 +
+ i6 & i7 +
+ i4 & i7 +
+ /i2 & /i7
+rf15.oe = OE
+
+/rf16 := /i3 & /rf17 +
+ /i4 +
+ /i3 +
+ /i3 & i4 +
+ /i7 & rf17 +
+ /i7 +
+ i4 +
+ i2 & i3
+rf16.oe = OE
+
+/rf17 := i2 & i5 & i6 & /i7 +
+ i2 & /rf18 +
+ i5 +
+ i6 +
+ /i7 & rf18 +
+ i2 & /i7 +
+ i5 & i6 +
+ /i3
+rf17.oe = OE
+
+/rf18 := /i2 & i5 & i6 & /i7 +
+ i3 & i6 & i7 +
+ i3 & rf19 +
+ /i2 & /i7 +
+ /i3 & /rf19 +
+ i5 & i6 & /i7 +
+ i7 +
+ /i4
+rf18.oe = OE
+
+/rf19 := i5 & i6 & /i7 +
+ i3 & i6 & i7 +
+ i5 & rf12 +
+ i6 +
+ i7 +
+ /i4 & /rf12 +
+ /i7 +
+ i2
+rf19.oe = OE
+
diff --git a/regtests/jedutil/baseline/gal18v10/gal18v10-test1.txt b/regtests/jedutil/baseline/gal18v10/gal18v10-test1.txt
new file mode 100644
index 00000000000..70c7d194f36
--- /dev/null
+++ b/regtests/jedutil/baseline/gal18v10/gal18v10-test1.txt
@@ -0,0 +1,123 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 18, 19
+
+Outputs:
+
+9 (Combinatorial, Output feedback output, Active high)
+11 (Combinatorial, Output feedback output, Active low)
+12 (Combinatorial, Output feedback output, Active high)
+13 (Combinatorial, Output feedback output, Active low)
+14 (Combinatorial, Output feedback output, Active high)
+15 (Combinatorial, Output feedback output, Active low)
+16 (Combinatorial, Output feedback output, Active high)
+17 (Combinatorial, Output feedback output, Active low)
+18 (Combinatorial, Output feedback output, Active high)
+19 (Combinatorial, Output feedback output, Active low)
+
+Equations:
+
+o9 = i1 & i2 +
+ /i3 +
+ o19 +
+ /i4 +
+ /i5 +
+ i6 +
+ i7 +
+ /i8 & /o19
+o9.oe = vcc
+
+/o11 = /i1 +
+ /i2 +
+ i5 +
+ /i6 +
+ /i7 +
+ i8 +
+ i4 & o9 +
+ /i3 & /o9
+o11.oe = vcc
+
+o12 = i1 +
+ i2 +
+ i4 +
+ i5 +
+ i6 +
+ /i8 +
+ i7 & o11 +
+ i3 & /o11
+o12.oe = vcc
+
+/o13 = /i1 +
+ i2 +
+ /i3 +
+ /i4 +
+ /i6 +
+ i8 +
+ /i7 & o12 +
+ /i5 & /o12
+o13.oe = vcc
+
+o14 = /i2 & /i3 & /i4 +
+ i4 & i5 +
+ i2 & /i6 +
+ i3 & i7 +
+ i6 & /i7 +
+ i8 +
+ /i2 & i3 & /i5 & i8 +
+ /i1 & /i8 +
+ i2 & /i7 & o13 +
+ i1 & /o13
+o14.oe = vcc
+
+/o15 = /i3 & /i4 +
+ i5 +
+ i1 & i2 & i3 & i4 & i5 +
+ /i2 & i7 +
+ i3 & i8 +
+ /i7 & i8 +
+ i6 & i7 & /i8 +
+ /i4 & o14 +
+ i7 & o14 +
+ i6 & i7 & /i8 & /o14
+o15.oe = vcc
+
+o16 = i3 +
+ /i4 +
+ i5 +
+ /i6 +
+ i7 +
+ /i8 +
+ i1 & o15 +
+ /i2 & /o15
+o16.oe = vcc
+
+/o17 = /i1 +
+ i2 +
+ /i5 +
+ /i3 & i6 +
+ /i6 +
+ i8 +
+ /i7 & o16 +
+ i4 & /o16
+o17.oe = vcc
+
+o18 = /i1 +
+ /i2 +
+ /i3 +
+ i6 +
+ i7 +
+ i8 +
+ /i4 & o17 +
+ i5 & /o17
+o18.oe = vcc
+
+/o19 = i2 +
+ i3 +
+ i4 +
+ /i5 +
+ /i6 +
+ /i7 +
+ i1 & o18 +
+ /i8 & /o18
+o19.oe = vcc
+
diff --git a/regtests/jedutil/baseline/gal18v10/pal10h8-to-gal18v10.txt b/regtests/jedutil/baseline/gal18v10/pal10h8-to-gal18v10.txt
new file mode 100644
index 00000000000..72374ae185e
--- /dev/null
+++ b/regtests/jedutil/baseline/gal18v10/pal10h8-to-gal18v10.txt
@@ -0,0 +1,49 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 18, 19
+
+Outputs:
+
+12 (Combinatorial, Output feedback output, Active high)
+13 (Combinatorial, Output feedback output, Active high)
+14 (Combinatorial, Output feedback output, Active high)
+15 (Combinatorial, Output feedback output, Active high)
+16 (Combinatorial, Output feedback output, Active high)
+17 (Combinatorial, Output feedback output, Active high)
+18 (Combinatorial, Output feedback output, Active high)
+19 (Combinatorial, Output feedback output, Active high)
+
+Equations:
+
+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/regtests/jedutil/baseline/gal18v10/pal10l8-to-gal18v10.txt b/regtests/jedutil/baseline/gal18v10/pal10l8-to-gal18v10.txt
new file mode 100644
index 00000000000..eb0d1bd88c0
--- /dev/null
+++ b/regtests/jedutil/baseline/gal18v10/pal10l8-to-gal18v10.txt
@@ -0,0 +1,49 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 18, 19
+
+Outputs:
+
+12 (Combinatorial, Output feedback output, Active low)
+13 (Combinatorial, Output feedback output, Active low)
+14 (Combinatorial, Output feedback output, Active low)
+15 (Combinatorial, Output feedback output, Active low)
+16 (Combinatorial, Output feedback output, Active low)
+17 (Combinatorial, Output feedback output, Active low)
+18 (Combinatorial, Output feedback output, Active low)
+19 (Combinatorial, Output feedback output, Active low)
+
+Equations:
+
+/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/regtests/jedutil/baseline/gal18v10/pal12h6-to-gal18v10.txt b/regtests/jedutil/baseline/gal18v10/pal12h6-to-gal18v10.txt
new file mode 100644
index 00000000000..2669b8e2e1b
--- /dev/null
+++ b/regtests/jedutil/baseline/gal18v10/pal12h6-to-gal18v10.txt
@@ -0,0 +1,43 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 18, 19
+
+Outputs:
+
+13 (Combinatorial, Output feedback output, Active high)
+14 (Combinatorial, Output feedback output, Active high)
+15 (Combinatorial, Output feedback output, Active high)
+16 (Combinatorial, Output feedback output, Active high)
+17 (Combinatorial, Output feedback output, Active high)
+18 (Combinatorial, Output feedback output, Active high)
+
+Equations:
+
+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/regtests/jedutil/baseline/gal18v10/pal12l6-to-gal18v10.txt b/regtests/jedutil/baseline/gal18v10/pal12l6-to-gal18v10.txt
new file mode 100644
index 00000000000..317521b8dec
--- /dev/null
+++ b/regtests/jedutil/baseline/gal18v10/pal12l6-to-gal18v10.txt
@@ -0,0 +1,43 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 18, 19
+
+Outputs:
+
+13 (Combinatorial, Output feedback output, Active low)
+14 (Combinatorial, Output feedback output, Active low)
+15 (Combinatorial, Output feedback output, Active low)
+16 (Combinatorial, Output feedback output, Active low)
+17 (Combinatorial, Output feedback output, Active low)
+18 (Combinatorial, Output feedback output, Active low)
+
+Equations:
+
+/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/regtests/jedutil/baseline/gal18v10/pal14h4-to-gal18v10.txt b/regtests/jedutil/baseline/gal18v10/pal14h4-to-gal18v10.txt
new file mode 100644
index 00000000000..36c44bf7b5e
--- /dev/null
+++ b/regtests/jedutil/baseline/gal18v10/pal14h4-to-gal18v10.txt
@@ -0,0 +1,37 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 18, 19
+
+Outputs:
+
+14 (Combinatorial, Output feedback output, Active high)
+15 (Combinatorial, Output feedback output, Active high)
+16 (Combinatorial, Output feedback output, Active high)
+17 (Combinatorial, Output feedback output, Active high)
+
+Equations:
+
+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/regtests/jedutil/baseline/gal18v10/pal14l4-to-gal18v10.txt b/regtests/jedutil/baseline/gal18v10/pal14l4-to-gal18v10.txt
new file mode 100644
index 00000000000..ddbae1bd871
--- /dev/null
+++ b/regtests/jedutil/baseline/gal18v10/pal14l4-to-gal18v10.txt
@@ -0,0 +1,37 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 18, 19
+
+Outputs:
+
+14 (Combinatorial, Output feedback output, Active low)
+15 (Combinatorial, Output feedback output, Active low)
+16 (Combinatorial, Output feedback output, Active low)
+17 (Combinatorial, Output feedback output, Active low)
+
+Equations:
+
+/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/regtests/jedutil/baseline/gal18v10/pal16h2-to-gal18v10.txt b/regtests/jedutil/baseline/gal18v10/pal16h2-to-gal18v10.txt
new file mode 100644
index 00000000000..8be12b5d9e7
--- /dev/null
+++ b/regtests/jedutil/baseline/gal18v10/pal16h2-to-gal18v10.txt
@@ -0,0 +1,31 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 18, 19
+
+Outputs:
+
+15 (Combinatorial, Output feedback output, Active high)
+16 (Combinatorial, Output feedback output, Active high)
+
+Equations:
+
+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/regtests/jedutil/baseline/gal18v10/pal16l2-to-gal18v10.txt b/regtests/jedutil/baseline/gal18v10/pal16l2-to-gal18v10.txt
new file mode 100644
index 00000000000..f49e147580e
--- /dev/null
+++ b/regtests/jedutil/baseline/gal18v10/pal16l2-to-gal18v10.txt
@@ -0,0 +1,31 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 18, 19
+
+Outputs:
+
+15 (Combinatorial, Output feedback output, Active low)
+16 (Combinatorial, Output feedback output, Active low)
+
+Equations:
+
+/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/regtests/jedutil/baseline/gal18v10/pal16l8-to-gal18v10.txt b/regtests/jedutil/baseline/gal18v10/pal16l8-to-gal18v10.txt
new file mode 100644
index 00000000000..36a1304f807
--- /dev/null
+++ b/regtests/jedutil/baseline/gal18v10/pal16l8-to-gal18v10.txt
@@ -0,0 +1,89 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 18, 19
+
+Outputs:
+
+12 (Combinatorial, Output feedback output, Active low)
+13 (Combinatorial, Output feedback output, Active low)
+14 (Combinatorial, Output feedback output, Active low)
+15 (Combinatorial, Output feedback output, Active low)
+16 (Combinatorial, Output feedback output, Active low)
+17 (Combinatorial, Output feedback output, Active low)
+18 (Combinatorial, Output feedback output, Active low)
+19 (Combinatorial, Output feedback output, Active low)
+
+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 +
+ /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/regtests/jedutil/baseline/gal18v10/pal16r4-to-gal18v10.txt b/regtests/jedutil/baseline/gal18v10/pal16r4-to-gal18v10.txt
new file mode 100644
index 00000000000..7db8ff85b13
--- /dev/null
+++ b/regtests/jedutil/baseline/gal18v10/pal16r4-to-gal18v10.txt
@@ -0,0 +1,93 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 18, 19
+
+Outputs:
+
+12 (Combinatorial, Output feedback output, Active low)
+13 (Combinatorial, Output feedback output, Active low)
+14 (Registered, Output feedback registered, Active low)
+15 (Registered, Output feedback registered, Active low)
+16 (Registered, Output feedback registered, Active low)
+17 (Registered, Output feedback registered, Active low)
+18 (Combinatorial, Output feedback output, Active low)
+19 (Combinatorial, Output feedback output, Active low)
+
+Equations:
+
+/o12 = /i2 & /i3 +
+ i4 & o13 +
+ i3 +
+ /i6 +
+ i8 +
+ /i9 +
+ i7 & /o13
+o12.oe = rf14
+
+/o13 = /rf14 +
+ /i9 +
+ i8 +
+ /i7 +
+ /i6 & /rf14 +
+ i5 +
+ i4
+o13.oe = i2 & rf14
+
+/rf14 := /rf15 +
+ /i8 +
+ i8 +
+ /i2 & /rf15 +
+ /i2 +
+ i2 & /i8 & rf15 +
+ /i4 +
+ i3
+rf14.oe = /i11
+
+/rf15 := i3 & i6 & i7 +
+ i6 & rf16 +
+ i3 & /rf16 +
+ i7 +
+ /i4 +
+ i6 & i7 +
+ i4 & i7 +
+ /i2 & /i7
+rf15.oe = /i11
+
+/rf16 := /i3 & /rf17 +
+ /i4 +
+ /i3 +
+ /i3 & i4 +
+ /i7 & rf17 +
+ /i7 +
+ i4 +
+ i2 & i3
+rf16.oe = /i11
+
+/rf17 := i2 & i5 & i6 & /i7 +
+ i2 & /o18 +
+ i5 +
+ i6 +
+ /i7 & o18 +
+ i2 & /i7 +
+ i5 & i6 +
+ /i3
+rf17.oe = /i11
+
+/o18 = /i2 & i5 & i6 & /i7 +
+ i3 & i6 & i7 +
+ i3 +
+ /i2 & /i7 +
+ /i3 +
+ i5 & i6 & /i7 +
+ i7
+o18.oe = vcc
+
+/o19 = i5 & i6 & /i7 +
+ i3 & i6 & i7 +
+ i5 +
+ i6 +
+ i7 +
+ /i4 +
+ /i7
+o19.oe = vcc
+
diff --git a/regtests/jedutil/baseline/gal18v10/pal16r6-to-gal18v10.txt b/regtests/jedutil/baseline/gal18v10/pal16r6-to-gal18v10.txt
new file mode 100644
index 00000000000..7c88b6176a1
--- /dev/null
+++ b/regtests/jedutil/baseline/gal18v10/pal16r6-to-gal18v10.txt
@@ -0,0 +1,95 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 18, 19
+
+Outputs:
+
+12 (Combinatorial, Output feedback output, Active low)
+13 (Registered, Output feedback registered, Active low)
+14 (Registered, Output feedback registered, Active low)
+15 (Registered, Output feedback registered, Active low)
+16 (Registered, Output feedback registered, Active low)
+17 (Registered, Output feedback registered, Active low)
+18 (Registered, Output feedback registered, Active low)
+19 (Combinatorial, Output feedback output, Active low)
+
+Equations:
+
+/o12 = /i2 & /i3 +
+ i4 & rf13 +
+ i3 +
+ /i6 +
+ i8 +
+ /i9 +
+ i7 & /rf13
+o12.oe = rf14
+
+/rf13 := /rf14 +
+ /i9 +
+ i8 +
+ /i7 +
+ /i6 & /rf14 +
+ i5 & rf14 +
+ i4 +
+ /i2
+rf13.oe = /i11
+
+/rf14 := /rf15 +
+ /i8 +
+ i8 +
+ /i2 & /rf15 +
+ /i2 +
+ i2 & /i8 & rf15 +
+ /i4 +
+ i3
+rf14.oe = /i11
+
+/rf15 := i3 & i6 & i7 +
+ i6 & rf16 +
+ i3 & /rf16 +
+ i7 +
+ /i4 +
+ i6 & i7 +
+ i4 & i7 +
+ /i2 & /i7
+rf15.oe = /i11
+
+/rf16 := /i3 & /rf17 +
+ /i4 +
+ /i3 +
+ /i3 & i4 +
+ /i7 & rf17 +
+ /i7 +
+ i4 +
+ i2 & i3
+rf16.oe = /i11
+
+/rf17 := i2 & i5 & i6 & /i7 +
+ i2 & /rf18 +
+ i5 +
+ i6 +
+ /i7 & rf18 +
+ i2 & /i7 +
+ i5 & i6 +
+ /i3
+rf17.oe = /i11
+
+/rf18 := /i2 & i5 & i6 & /i7 +
+ i3 & i6 & i7 +
+ i3 +
+ /i2 & /i7 +
+ /i3 +
+ i5 & i6 & /i7 +
+ i7 +
+ i4
+rf18.oe = /i11
+
+/o19 = i5 & i6 & /i7 +
+ i3 & i6 & i7 +
+ i5 +
+ i6 +
+ i7 +
+ /i4 +
+ /i7
+o19.oe = vcc
+
diff --git a/regtests/jedutil/baseline/gal18v10/pal16r8-to-gal18v10.txt b/regtests/jedutil/baseline/gal18v10/pal16r8-to-gal18v10.txt
new file mode 100644
index 00000000000..cd37e419c00
--- /dev/null
+++ b/regtests/jedutil/baseline/gal18v10/pal16r8-to-gal18v10.txt
@@ -0,0 +1,97 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 18, 19
+
+Outputs:
+
+12 (Registered, Output feedback registered, Active low)
+13 (Registered, Output feedback registered, Active low)
+14 (Registered, Output feedback registered, Active low)
+15 (Registered, Output feedback registered, Active low)
+16 (Registered, Output feedback registered, Active low)
+17 (Registered, Output feedback registered, Active low)
+18 (Registered, Output feedback registered, Active low)
+19 (Registered, Output feedback registered, Active low)
+
+Equations:
+
+/rf12 := /i2 & /i3 +
+ i4 & rf13 +
+ i3 +
+ /i6 +
+ i8 +
+ /i9 +
+ i7 & /rf13 +
+ i5
+rf12.oe = /i11
+
+/rf13 := /rf14 +
+ /i9 +
+ i8 +
+ /i7 +
+ /i6 & rf14 +
+ i5 +
+ i4 +
+ /i3
+rf13.oe = /i11
+
+/rf14 := /rf15 +
+ /i8 +
+ i8 +
+ /i2 & /rf15 +
+ /i2 +
+ i2 & /i8 & rf15 +
+ /i4 +
+ i3
+rf14.oe = /i11
+
+/rf15 := i3 & i6 & i7 +
+ i6 & rf16 +
+ i3 & /rf16 +
+ i7 +
+ /i4 +
+ i6 & i7 +
+ i4 & i7 +
+ /i2 & /i7
+rf15.oe = /i11
+
+/rf16 := /i3 & /rf17 +
+ /i4 +
+ /i3 +
+ /i3 & i4 +
+ /i7 & rf17 +
+ /i7 +
+ i4 +
+ i2 & i3
+rf16.oe = /i11
+
+/rf17 := i2 & i5 & i6 & /i7 +
+ i2 & /rf18 +
+ i5 +
+ i6 +
+ /i7 & rf18 +
+ i2 & /i7 +
+ i5 & i6 +
+ /i3
+rf17.oe = /i11
+
+/rf18 := /i2 & i5 & i6 & /i7 +
+ i3 & i6 & i7 +
+ i3 & rf19 +
+ /i2 & /i7 +
+ /i3 & /rf19 +
+ i5 & i6 & /i7 +
+ i7 +
+ /i4
+rf18.oe = /i11
+
+/rf19 := i5 & i6 & /i7 +
+ i3 & i6 & i7 +
+ i5 & rf12 +
+ i6 +
+ i7 +
+ /i4 & /rf12 +
+ /i7 +
+ i2
+rf19.oe = /i11
+
diff --git a/regtests/jedutil/baseline/pal10h8/pal10h8.txt b/regtests/jedutil/baseline/pal10h8/pal10h8.txt
new file mode 100644
index 00000000000..936491ce36e
--- /dev/null
+++ b/regtests/jedutil/baseline/pal10h8/pal10h8.txt
@@ -0,0 +1,49 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11
+
+Outputs:
+
+12 (Combinatorial, No output feedback, Active high)
+13 (Combinatorial, No output feedback, Active high)
+14 (Combinatorial, No output feedback, Active high)
+15 (Combinatorial, No output feedback, Active high)
+16 (Combinatorial, No output feedback, Active high)
+17 (Combinatorial, No output feedback, Active high)
+18 (Combinatorial, No output feedback, Active high)
+19 (Combinatorial, No output feedback, Active high)
+
+Equations:
+
+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/regtests/jedutil/baseline/pal10l8/pal10l8.txt b/regtests/jedutil/baseline/pal10l8/pal10l8.txt
new file mode 100644
index 00000000000..30587b97217
--- /dev/null
+++ b/regtests/jedutil/baseline/pal10l8/pal10l8.txt
@@ -0,0 +1,49 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11
+
+Outputs:
+
+12 (Combinatorial, No output feedback, Active low)
+13 (Combinatorial, No output feedback, Active low)
+14 (Combinatorial, No output feedback, Active low)
+15 (Combinatorial, No output feedback, Active low)
+16 (Combinatorial, No output feedback, Active low)
+17 (Combinatorial, No output feedback, Active low)
+18 (Combinatorial, No output feedback, Active low)
+19 (Combinatorial, No output feedback, Active low)
+
+Equations:
+
+/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/regtests/jedutil/baseline/pal10p8/pal10p8.txt b/regtests/jedutil/baseline/pal10p8/pal10p8.txt
new file mode 100644
index 00000000000..f84b1ed2b7f
--- /dev/null
+++ b/regtests/jedutil/baseline/pal10p8/pal10p8.txt
@@ -0,0 +1,49 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11
+
+Outputs:
+
+12 (Combinatorial, No output feedback, Active high)
+13 (Combinatorial, No output feedback, Active high)
+14 (Combinatorial, No output feedback, Active low)
+15 (Combinatorial, No output feedback, Active low)
+16 (Combinatorial, No output feedback, Active high)
+17 (Combinatorial, No output feedback, Active low)
+18 (Combinatorial, No output feedback, Active low)
+19 (Combinatorial, No output feedback, Active low)
+
+Equations:
+
+o12 = i9 & i11 +
+ /i1 & i2 & i3 & i4 & i5 & i6 & /i7 & i8
+o12.oe = vcc
+
+o13 = i9 & /i11 +
+ i1 & /i2 & i3 & i4 & i5 & /i6 & i7 & i8
+o13.oe = vcc
+
+/o14 = /i9 & /i11 +
+ i1 & i2 & /i3 & i4 & /i5 & i6 & i7 & i8
+o14.oe = vcc
+
+/o15 = /i9 & i11 +
+ i1 & i2 & i3 & /i4 & i5 & i6 & /i7 & i8
+o15.oe = vcc
+
+o16 = i9 & /i11 +
+ i1 & i2 & i3 & i4 & i5 & /i6 & i7 & /i8
+o16.oe = vcc
+
+/o17 = i9 & i11 +
+ /i1 & /i2 & i3 & i4 & i5 & i6 & /i7 & /i8
+o17.oe = vcc
+
+/o18 = /i9 & /i11 +
+ i1 & i2 & i3 & /i4 & /i5 & i6 & i7 & i8
+o18.oe = vcc
+
+/o19 = /i9 & i11 +
+ i1 & /i2 & i3 & /i4 & i5 & /i6 & i7 & /i8
+o19.oe = vcc
+
diff --git a/regtests/jedutil/baseline/pal12h10/pal12h10.txt b/regtests/jedutil/baseline/pal12h10/pal12h10.txt
new file mode 100644
index 00000000000..95051f727fe
--- /dev/null
+++ b/regtests/jedutil/baseline/pal12h10/pal12h10.txt
@@ -0,0 +1,59 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13
+
+Outputs:
+
+14 (Combinatorial, No output feedback, Active high)
+15 (Combinatorial, No output feedback, Active high)
+16 (Combinatorial, No output feedback, Active high)
+17 (Combinatorial, No output feedback, Active high)
+18 (Combinatorial, No output feedback, Active high)
+19 (Combinatorial, No output feedback, Active high)
+20 (Combinatorial, No output feedback, Active high)
+21 (Combinatorial, No output feedback, Active high)
+22 (Combinatorial, No output feedback, Active high)
+23 (Combinatorial, No output feedback, Active high)
+
+Equations:
+
+o14 = /i1 & /i2 & /i3 +
+ /i4 & /i5 & /i6
+o14.oe = vcc
+
+o15 = /i7 +
+ /i8
+o15.oe = vcc
+
+o16 = /i9 & /i10 +
+ /i13
+o16.oe = vcc
+
+o17 = i1 & i2 & i3 +
+ i4 & i5 & i6
+o17.oe = vcc
+
+o18 = i7 +
+ i8
+o18.oe = vcc
+
+o19 = i9 & i10 +
+ i13
+o19.oe = vcc
+
+o20 = /i2 & i5 & i6 & /i7 +
+ i3 & i6 & i7 & i13
+o20.oe = vcc
+
+o21 = i5 & i6 & /i7 & i11 +
+ /i1 & i3 & i6 & i7 & i10
+o21.oe = vcc
+
+o22 = i4 & i13 +
+ i9 & /i10 & /i11
+o22.oe = vcc
+
+o23 = /i4 & i10 & i11 +
+ i1 & /i13
+o23.oe = vcc
+
diff --git a/regtests/jedutil/baseline/pal12h6/pal12h6.txt b/regtests/jedutil/baseline/pal12h6/pal12h6.txt
new file mode 100644
index 00000000000..7e658cd29ec
--- /dev/null
+++ b/regtests/jedutil/baseline/pal12h6/pal12h6.txt
@@ -0,0 +1,43 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 19
+
+Outputs:
+
+13 (Combinatorial, No output feedback, Active high)
+14 (Combinatorial, No output feedback, Active high)
+15 (Combinatorial, No output feedback, Active high)
+16 (Combinatorial, No output feedback, Active high)
+17 (Combinatorial, No output feedback, Active high)
+18 (Combinatorial, No output feedback, Active high)
+
+Equations:
+
+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/regtests/jedutil/baseline/pal12l10/pal12l10.txt b/regtests/jedutil/baseline/pal12l10/pal12l10.txt
new file mode 100644
index 00000000000..258009c6467
--- /dev/null
+++ b/regtests/jedutil/baseline/pal12l10/pal12l10.txt
@@ -0,0 +1,59 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13
+
+Outputs:
+
+14 (Combinatorial, No output feedback, Active low)
+15 (Combinatorial, No output feedback, Active low)
+16 (Combinatorial, No output feedback, Active low)
+17 (Combinatorial, No output feedback, Active low)
+18 (Combinatorial, No output feedback, Active low)
+19 (Combinatorial, No output feedback, Active low)
+20 (Combinatorial, No output feedback, Active low)
+21 (Combinatorial, No output feedback, Active low)
+22 (Combinatorial, No output feedback, Active low)
+23 (Combinatorial, No output feedback, Active low)
+
+Equations:
+
+/o14 = /i1 & /i2 & /i3 +
+ /i4 & /i5 & /i6
+o14.oe = vcc
+
+/o15 = /i7 +
+ /i8
+o15.oe = vcc
+
+/o16 = /i9 & /i10 +
+ /i13
+o16.oe = vcc
+
+/o17 = i1 & i2 & i3 +
+ i4 & i5 & i6
+o17.oe = vcc
+
+/o18 = i7 +
+ i8
+o18.oe = vcc
+
+/o19 = i9 & i10 +
+ i13
+o19.oe = vcc
+
+/o20 = /i2 & i5 & i6 & /i7 +
+ i3 & i6 & i7 & i13
+o20.oe = vcc
+
+/o21 = i5 & i6 & /i7 & i11 +
+ /i1 & i3 & i6 & i7 & i10
+o21.oe = vcc
+
+/o22 = i4 & i13 +
+ i9 & /i10 & /i11
+o22.oe = vcc
+
+/o23 = /i4 & i10 & i11 +
+ i1 & /i13
+o23.oe = vcc
+
diff --git a/regtests/jedutil/baseline/pal12l6/pal12l6.txt b/regtests/jedutil/baseline/pal12l6/pal12l6.txt
new file mode 100644
index 00000000000..16b2aafcf89
--- /dev/null
+++ b/regtests/jedutil/baseline/pal12l6/pal12l6.txt
@@ -0,0 +1,43 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 19
+
+Outputs:
+
+13 (Combinatorial, No output feedback, Active low)
+14 (Combinatorial, No output feedback, Active low)
+15 (Combinatorial, No output feedback, Active low)
+16 (Combinatorial, No output feedback, Active low)
+17 (Combinatorial, No output feedback, Active low)
+18 (Combinatorial, No output feedback, Active low)
+
+Equations:
+
+/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/regtests/jedutil/baseline/pal12p6/pal12p6.txt b/regtests/jedutil/baseline/pal12p6/pal12p6.txt
new file mode 100644
index 00000000000..7398fcd24c4
--- /dev/null
+++ b/regtests/jedutil/baseline/pal12p6/pal12p6.txt
@@ -0,0 +1,43 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 19
+
+Outputs:
+
+13 (Combinatorial, No output feedback, Active high)
+14 (Combinatorial, No output feedback, Active low)
+15 (Combinatorial, No output feedback, Active low)
+16 (Combinatorial, No output feedback, Active high)
+17 (Combinatorial, No output feedback, Active low)
+18 (Combinatorial, No output feedback, Active low)
+
+Equations:
+
+o13 = i9 & /i11 +
+ i1 & /i2 & i3 & i4 & i5 & /i6 & i7 & i8 +
+ i12 +
+ /i19
+o13.oe = vcc
+
+/o14 = /i9 & /i11 +
+ i1 & i2 & /i3 & i4 & /i5 & i6 & i7 & i8
+o14.oe = vcc
+
+/o15 = /i9 & i11 +
+ i1 & i2 & i3 & /i4 & i5 & i6 & /i7 & i8
+o15.oe = vcc
+
+o16 = i9 & /i11 +
+ i1 & i2 & i3 & i4 & i5 & /i6 & i7 & /i8
+o16.oe = vcc
+
+/o17 = i9 & i11 +
+ /i1 & /i2 & i3 & i4 & i5 & i6 & /i7 & /i8
+o17.oe = vcc
+
+/o18 = /i9 & /i11 +
+ i1 & i2 & i3 & /i4 & /i5 & i6 & i7 & i8 +
+ /i12 +
+ i19
+o18.oe = vcc
+
diff --git a/regtests/jedutil/baseline/pal14h4/pal14h4.txt b/regtests/jedutil/baseline/pal14h4/pal14h4.txt
new file mode 100644
index 00000000000..93e7efa3d4f
--- /dev/null
+++ b/regtests/jedutil/baseline/pal14h4/pal14h4.txt
@@ -0,0 +1,37 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 18, 19
+
+Outputs:
+
+14 (Combinatorial, No output feedback, Active high)
+15 (Combinatorial, No output feedback, Active high)
+16 (Combinatorial, No output feedback, Active high)
+17 (Combinatorial, No output feedback, Active high)
+
+Equations:
+
+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/regtests/jedutil/baseline/pal14h8/pal14h8.txt b/regtests/jedutil/baseline/pal14h8/pal14h8.txt
new file mode 100644
index 00000000000..43f47a7b672
--- /dev/null
+++ b/regtests/jedutil/baseline/pal14h8/pal14h8.txt
@@ -0,0 +1,53 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14, 23
+
+Outputs:
+
+15 (Combinatorial, No output feedback, Active high)
+16 (Combinatorial, No output feedback, Active high)
+17 (Combinatorial, No output feedback, Active high)
+18 (Combinatorial, No output feedback, Active high)
+19 (Combinatorial, No output feedback, Active high)
+20 (Combinatorial, No output feedback, Active high)
+21 (Combinatorial, No output feedback, Active high)
+22 (Combinatorial, No output feedback, Active high)
+
+Equations:
+
+o15 = /i1 & /i2 +
+ /i3 +
+ /i4 +
+ /i5 & /i6
+o15.oe = vcc
+
+o16 = /i7 +
+ /i8
+o16.oe = vcc
+
+o17 = /i9 & /i10 +
+ /i13
+o17.oe = vcc
+
+o18 = i1 & i2 & i3 +
+ i4 & i5 & i6 & /i14
+o18.oe = vcc
+
+o19 = i7 +
+ i8
+o19.oe = vcc
+
+o20 = i9 & i10 & i14 +
+ i13
+o20.oe = vcc
+
+o21 = /i2 & i5 & i6 & /i7 +
+ i3 & i6 & i7 & i13 & i23
+o21.oe = vcc
+
+o22 = i5 & i6 +
+ /i7 & i11 +
+ /i23 +
+ /i1 & i3 & i6 & i7 & i10
+o22.oe = vcc
+
diff --git a/regtests/jedutil/baseline/pal14l4/pal14l4.txt b/regtests/jedutil/baseline/pal14l4/pal14l4.txt
new file mode 100644
index 00000000000..faa13e4cbea
--- /dev/null
+++ b/regtests/jedutil/baseline/pal14l4/pal14l4.txt
@@ -0,0 +1,37 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 18, 19
+
+Outputs:
+
+14 (Combinatorial, No output feedback, Active low)
+15 (Combinatorial, No output feedback, Active low)
+16 (Combinatorial, No output feedback, Active low)
+17 (Combinatorial, No output feedback, Active low)
+
+Equations:
+
+/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/regtests/jedutil/baseline/pal14l8/pal14l8.txt b/regtests/jedutil/baseline/pal14l8/pal14l8.txt
new file mode 100644
index 00000000000..cda9a70fb96
--- /dev/null
+++ b/regtests/jedutil/baseline/pal14l8/pal14l8.txt
@@ -0,0 +1,53 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14, 23
+
+Outputs:
+
+15 (Combinatorial, No output feedback, Active low)
+16 (Combinatorial, No output feedback, Active low)
+17 (Combinatorial, No output feedback, Active low)
+18 (Combinatorial, No output feedback, Active low)
+19 (Combinatorial, No output feedback, Active low)
+20 (Combinatorial, No output feedback, Active low)
+21 (Combinatorial, No output feedback, Active low)
+22 (Combinatorial, No output feedback, Active low)
+
+Equations:
+
+/o15 = /i1 & /i2 +
+ /i3 +
+ /i4 +
+ /i5 & /i6
+o15.oe = vcc
+
+/o16 = /i7 +
+ /i8
+o16.oe = vcc
+
+/o17 = /i9 & /i10 +
+ /i13
+o17.oe = vcc
+
+/o18 = i1 & i2 & i3 +
+ i4 & i5 & i6 & /i14
+o18.oe = vcc
+
+/o19 = i7 +
+ i8
+o19.oe = vcc
+
+/o20 = i9 & i10 & i14 +
+ i13
+o20.oe = vcc
+
+/o21 = /i2 & i5 & i6 & /i7 +
+ i3 & i6 & i7 & i13 & i23
+o21.oe = vcc
+
+/o22 = i5 & i6 +
+ /i7 & i11 +
+ /i23 +
+ /i1 & i3 & i6 & i7 & i10
+o22.oe = vcc
+
diff --git a/regtests/jedutil/baseline/pal14p4/pal14p4.txt b/regtests/jedutil/baseline/pal14p4/pal14p4.txt
new file mode 100644
index 00000000000..333f0c9aaf6
--- /dev/null
+++ b/regtests/jedutil/baseline/pal14p4/pal14p4.txt
@@ -0,0 +1,37 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 18, 19
+
+Outputs:
+
+14 (Combinatorial, No output feedback, Active low)
+15 (Combinatorial, No output feedback, Active high)
+16 (Combinatorial, No output feedback, Active high)
+17 (Combinatorial, No output feedback, Active low)
+
+Equations:
+
+/o14 = i9 & i11 +
+ i1 & /i2 & i3 & i4 & i5 & /i6 & i7 & i8 +
+ i12 & i18 +
+ /i13 & /i19
+o14.oe = vcc
+
+o15 = /i9 & i11 +
+ i1 & i2 & i3 & /i4 & i5 & i6 & /i7 & i8 +
+ i12 & /i18 +
+ i13 & /i19
+o15.oe = vcc
+
+o16 = i9 & /i11 +
+ i1 & i2 & i3 & i4 & i5 & /i6 & i7 & /i8 +
+ /i12 & /i18 +
+ /i13 & i19
+o16.oe = vcc
+
+/o17 = /i9 & /i11 +
+ i1 & i2 & i3 & /i4 & /i5 & i6 & i7 & i8 +
+ /i12 & i13 +
+ /i18 & i19
+o17.oe = vcc
+
diff --git a/regtests/jedutil/baseline/pal16c1/pal16c1.txt b/regtests/jedutil/baseline/pal16c1/pal16c1.txt
new file mode 100644
index 00000000000..7a439cb0c72
--- /dev/null
+++ b/regtests/jedutil/baseline/pal16c1/pal16c1.txt
@@ -0,0 +1,47 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 17, 18, 19
+
+Outputs:
+
+15 (Combinatorial, No output feedback, Active low)
+16 (Combinatorial, No output feedback, Active high)
+
+Equations:
+
+/o15 = i1 & i2 +
+ i3 & i4 +
+ i5 & i6 +
+ i7 & i8 +
+ i9 & i11 +
+ i12 & i13 +
+ i14 & i17 +
+ i18 & i19 +
+ /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 +
+ /i1 & /i2 +
+ /i3 & /i4 +
+ /i5 & /i6 +
+ /i7 & /i8 +
+ /i9 & /i11 +
+ /i12 & /i13 +
+ /i14 & /i17 +
+ /i18 & /i19
+o16.oe = vcc
+
diff --git a/regtests/jedutil/baseline/pal16h2/pal16h2.txt b/regtests/jedutil/baseline/pal16h2/pal16h2.txt
new file mode 100644
index 00000000000..3ad2680c48f
--- /dev/null
+++ b/regtests/jedutil/baseline/pal16h2/pal16h2.txt
@@ -0,0 +1,31 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 17, 18, 19
+
+Outputs:
+
+15 (Combinatorial, No output feedback, Active high)
+16 (Combinatorial, No output feedback, Active high)
+
+Equations:
+
+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/regtests/jedutil/baseline/pal16h6/pal16h6.txt b/regtests/jedutil/baseline/pal16h6/pal16h6.txt
new file mode 100644
index 00000000000..3f2d9382690
--- /dev/null
+++ b/regtests/jedutil/baseline/pal16h6/pal16h6.txt
@@ -0,0 +1,47 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14, 15, 22, 23
+
+Outputs:
+
+16 (Combinatorial, No output feedback, Active high)
+17 (Combinatorial, No output feedback, Active high)
+18 (Combinatorial, No output feedback, Active high)
+19 (Combinatorial, No output feedback, Active high)
+20 (Combinatorial, No output feedback, Active high)
+21 (Combinatorial, No output feedback, Active high)
+
+Equations:
+
+o16 = /i1 & /i2 +
+ /i3 & /i7 +
+ /i4 & /i8 +
+ /i5 & /i6
+o16.oe = vcc
+
+o17 = /i9 & /i10 +
+ /i13 & /i15 +
+ i1 & i2 & i3 +
+ i4 & i5 & i6 & /i14
+o17.oe = vcc
+
+o18 = i7 +
+ i8 & i15
+o18.oe = vcc
+
+o19 = i9 & i10 & i14 +
+ i13 & /i22
+o19.oe = vcc
+
+o20 = /i2 & i5 +
+ i6 & /i7 +
+ i3 & i6 +
+ i7 & i13 & i23
+o20.oe = vcc
+
+o21 = i5 & i6 & i22 +
+ /i7 & i11 +
+ /i23 +
+ /i1 & i3 & i6 & i7 & i10
+o21.oe = vcc
+
diff --git a/regtests/jedutil/baseline/pal16l2/pal16l2.txt b/regtests/jedutil/baseline/pal16l2/pal16l2.txt
new file mode 100644
index 00000000000..7d19f691192
--- /dev/null
+++ b/regtests/jedutil/baseline/pal16l2/pal16l2.txt
@@ -0,0 +1,31 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 17, 18, 19
+
+Outputs:
+
+15 (Combinatorial, No output feedback, Active low)
+16 (Combinatorial, No output feedback, Active low)
+
+Equations:
+
+/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/regtests/jedutil/baseline/pal16l6/pal16l6.txt b/regtests/jedutil/baseline/pal16l6/pal16l6.txt
new file mode 100644
index 00000000000..ffe78302caa
--- /dev/null
+++ b/regtests/jedutil/baseline/pal16l6/pal16l6.txt
@@ -0,0 +1,47 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14, 15, 22, 23
+
+Outputs:
+
+16 (Combinatorial, No output feedback, Active low)
+17 (Combinatorial, No output feedback, Active low)
+18 (Combinatorial, No output feedback, Active low)
+19 (Combinatorial, No output feedback, Active low)
+20 (Combinatorial, No output feedback, Active low)
+21 (Combinatorial, No output feedback, Active low)
+
+Equations:
+
+/o16 = /i1 & /i2 +
+ /i3 & /i7 +
+ /i4 & /i8 +
+ /i5 & /i6
+o16.oe = vcc
+
+/o17 = /i9 & /i10 +
+ /i13 & /i15 +
+ i1 & i2 & i3 +
+ i4 & i5 & i6 & /i14
+o17.oe = vcc
+
+/o18 = i7 +
+ i8 & i15
+o18.oe = vcc
+
+/o19 = i9 & i10 & i14 +
+ i13 & /i22
+o19.oe = vcc
+
+/o20 = /i2 & i5 +
+ i6 & /i7 +
+ i3 & i6 +
+ i7 & i13 & i23
+o20.oe = vcc
+
+/o21 = i5 & i6 & i22 +
+ /i7 & i11 +
+ /i23 +
+ /i1 & i3 & i6 & i7 & i10
+o21.oe = vcc
+
diff --git a/regtests/jedutil/baseline/pal16l8/pal16l8.txt b/regtests/jedutil/baseline/pal16l8/pal16l8.txt
new file mode 100644
index 00000000000..9a95fea0e51
--- /dev/null
+++ b/regtests/jedutil/baseline/pal16l8/pal16l8.txt
@@ -0,0 +1,89 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 13, 14, 15, 16, 17, 18
+
+Outputs:
+
+12 (Combinatorial, Output feedback output, Active low)
+13 (Combinatorial, Output feedback output, Active low)
+14 (Combinatorial, Output feedback output, Active low)
+15 (Combinatorial, Output feedback output, Active low)
+16 (Combinatorial, Output feedback output, Active low)
+17 (Combinatorial, Output feedback output, Active low)
+18 (Combinatorial, Output feedback output, Active low)
+19 (Combinatorial, Output feedback output, Active low)
+
+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 +
+ /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/regtests/jedutil/baseline/pal16p2/pal16p2.txt b/regtests/jedutil/baseline/pal16p2/pal16p2.txt
new file mode 100644
index 00000000000..77b856dbf82
--- /dev/null
+++ b/regtests/jedutil/baseline/pal16p2/pal16p2.txt
@@ -0,0 +1,31 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 17, 18, 19
+
+Outputs:
+
+15 (Combinatorial, No output feedback, Active high)
+16 (Combinatorial, No output feedback, Active low)
+
+Equations:
+
+o15 = /i9 & i11 +
+ i1 & i2 & i3 & /i4 & i5 & i6 & /i7 & i8 +
+ i12 & /i18 +
+ i13 & /i19 +
+ i14 +
+ /i18 +
+ /i1 & /i6 +
+ /i2 & /i3
+o15.oe = vcc
+
+/o16 = i9 & /i11 +
+ i1 & i2 & i3 & i4 & i5 & /i6 & i7 & /i8 +
+ /i12 & /i18 +
+ /i13 & i19 +
+ /i14 +
+ i18 +
+ /i4 +
+ i6 & i8
+o16.oe = vcc
+
diff --git a/regtests/jedutil/baseline/pal16p8/pal16p8.txt b/regtests/jedutil/baseline/pal16p8/pal16p8.txt
new file mode 100644
index 00000000000..ddd67aa63d3
--- /dev/null
+++ b/regtests/jedutil/baseline/pal16p8/pal16p8.txt
@@ -0,0 +1,89 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 13, 14, 15, 16, 17, 18
+
+Outputs:
+
+12 (Combinatorial, Output feedback output, Active low)
+13 (Combinatorial, Output feedback output, Active high)
+14 (Combinatorial, Output feedback output, Active high)
+15 (Combinatorial, Output feedback output, Active low)
+16 (Combinatorial, Output feedback output, Active low)
+17 (Combinatorial, Output feedback output, Active low)
+18 (Combinatorial, Output feedback output, Active low)
+19 (Combinatorial, Output feedback output, Active high)
+
+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 +
+ /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/regtests/jedutil/baseline/pal16r4/pal16r4.txt b/regtests/jedutil/baseline/pal16r4/pal16r4.txt
new file mode 100644
index 00000000000..dcc158eb61b
--- /dev/null
+++ b/regtests/jedutil/baseline/pal16r4/pal16r4.txt
@@ -0,0 +1,93 @@
+Inputs:
+
+2, 3, 4, 5, 6, 7, 8, 9, 12, 13, 14, 15, 16, 17, 18, 19
+
+Outputs:
+
+12 (Combinatorial, Output feedback output, Active low)
+13 (Combinatorial, Output feedback output, Active low)
+14 (Registered, Output feedback registered, Active low)
+15 (Registered, Output feedback registered, Active low)
+16 (Registered, Output feedback registered, Active low)
+17 (Registered, Output feedback registered, Active low)
+18 (Combinatorial, Output feedback output, Active low)
+19 (Combinatorial, Output feedback output, Active low)
+
+Equations:
+
+/o12 = /i2 & /i3 +
+ i4 & o13 +
+ i3 +
+ /i6 +
+ i8 +
+ /i9 +
+ i7 & /o13
+o12.oe = rf14
+
+/o13 = /rf14 +
+ /i9 +
+ i8 +
+ /i7 +
+ /i6 & /rf14 +
+ i5 +
+ i4
+o13.oe = i2 & rf14
+
+/rf14 := /rf15 +
+ /i8 +
+ i8 +
+ /i2 & /rf15 +
+ /i2 +
+ i2 & /i8 & rf15 +
+ /i4 +
+ i3
+rf14.oe = OE
+
+/rf15 := i3 & i6 & i7 +
+ i6 & rf16 +
+ i3 & /rf16 +
+ i7 +
+ /i4 +
+ i6 & i7 +
+ i4 & i7 +
+ /i2 & /i7
+rf15.oe = OE
+
+/rf16 := /i3 & /rf17 +
+ /i4 +
+ /i3 +
+ /i3 & i4 +
+ /i7 & rf17 +
+ /i7 +
+ i4 +
+ i2 & i3
+rf16.oe = OE
+
+/rf17 := i2 & i5 & i6 & /i7 +
+ i2 & /o18 +
+ i5 +
+ i6 +
+ /i7 & o18 +
+ i2 & /i7 +
+ i5 & i6 +
+ /i3
+rf17.oe = OE
+
+/o18 = /i2 & i5 & i6 & /i7 +
+ i3 & i6 & i7 +
+ i3 +
+ /i2 & /i7 +
+ /i3 +
+ i5 & i6 & /i7 +
+ i7
+o18.oe = vcc
+
+/o19 = i5 & i6 & /i7 +
+ i3 & i6 & i7 +
+ i5 +
+ i6 +
+ i7 +
+ /i4 +
+ /i7
+o19.oe = vcc
+
diff --git a/regtests/jedutil/baseline/pal16r6/pal16r6.txt b/regtests/jedutil/baseline/pal16r6/pal16r6.txt
new file mode 100644
index 00000000000..ecbb979cdc1
--- /dev/null
+++ b/regtests/jedutil/baseline/pal16r6/pal16r6.txt
@@ -0,0 +1,95 @@
+Inputs:
+
+2, 3, 4, 5, 6, 7, 8, 9, 12, 13, 14, 15, 16, 17, 18, 19
+
+Outputs:
+
+12 (Combinatorial, Output feedback output, Active low)
+13 (Registered, Output feedback registered, Active low)
+14 (Registered, Output feedback registered, Active low)
+15 (Registered, Output feedback registered, Active low)
+16 (Registered, Output feedback registered, Active low)
+17 (Registered, Output feedback registered, Active low)
+18 (Registered, Output feedback registered, Active low)
+19 (Combinatorial, Output feedback output, Active low)
+
+Equations:
+
+/o12 = /i2 & /i3 +
+ i4 & rf13 +
+ i3 +
+ /i6 +
+ i8 +
+ /i9 +
+ i7 & /rf13
+o12.oe = rf14
+
+/rf13 := /rf14 +
+ /i9 +
+ i8 +
+ /i7 +
+ /i6 & /rf14 +
+ i5 & rf14 +
+ i4 +
+ /i2
+rf13.oe = OE
+
+/rf14 := /rf15 +
+ /i8 +
+ i8 +
+ /i2 & /rf15 +
+ /i2 +
+ i2 & /i8 & rf15 +
+ /i4 +
+ i3
+rf14.oe = OE
+
+/rf15 := i3 & i6 & i7 +
+ i6 & rf16 +
+ i3 & /rf16 +
+ i7 +
+ /i4 +
+ i6 & i7 +
+ i4 & i7 +
+ /i2 & /i7
+rf15.oe = OE
+
+/rf16 := /i3 & /rf17 +
+ /i4 +
+ /i3 +
+ /i3 & i4 +
+ /i7 & rf17 +
+ /i7 +
+ i4 +
+ i2 & i3
+rf16.oe = OE
+
+/rf17 := i2 & i5 & i6 & /i7 +
+ i2 & /rf18 +
+ i5 +
+ i6 +
+ /i7 & rf18 +
+ i2 & /i7 +
+ i5 & i6 +
+ /i3
+rf17.oe = OE
+
+/rf18 := /i2 & i5 & i6 & /i7 +
+ i3 & i6 & i7 +
+ i3 +
+ /i2 & /i7 +
+ /i3 +
+ i5 & i6 & /i7 +
+ i7 +
+ i4
+rf18.oe = OE
+
+/o19 = i5 & i6 & /i7 +
+ i3 & i6 & i7 +
+ i5 +
+ i6 +
+ i7 +
+ /i4 +
+ /i7
+o19.oe = vcc
+
diff --git a/regtests/jedutil/baseline/pal16r8/pal16r8.txt b/regtests/jedutil/baseline/pal16r8/pal16r8.txt
new file mode 100644
index 00000000000..99beae32944
--- /dev/null
+++ b/regtests/jedutil/baseline/pal16r8/pal16r8.txt
@@ -0,0 +1,97 @@
+Inputs:
+
+2, 3, 4, 5, 6, 7, 8, 9, 12, 13, 14, 15, 16, 17, 18, 19
+
+Outputs:
+
+12 (Registered, Output feedback registered, Active low)
+13 (Registered, Output feedback registered, Active low)
+14 (Registered, Output feedback registered, Active low)
+15 (Registered, Output feedback registered, Active low)
+16 (Registered, Output feedback registered, Active low)
+17 (Registered, Output feedback registered, Active low)
+18 (Registered, Output feedback registered, Active low)
+19 (Registered, Output feedback registered, Active low)
+
+Equations:
+
+/rf12 := /i2 & /i3 +
+ i4 & rf13 +
+ i3 +
+ /i6 +
+ i8 +
+ /i9 +
+ i7 & /rf13 +
+ i5
+rf12.oe = OE
+
+/rf13 := /rf14 +
+ /i9 +
+ i8 +
+ /i7 +
+ /i6 & rf14 +
+ i5 +
+ i4 +
+ /i3
+rf13.oe = OE
+
+/rf14 := /rf15 +
+ /i8 +
+ i8 +
+ /i2 & /rf15 +
+ /i2 +
+ i2 & /i8 & rf15 +
+ /i4 +
+ i3
+rf14.oe = OE
+
+/rf15 := i3 & i6 & i7 +
+ i6 & rf16 +
+ i3 & /rf16 +
+ i7 +
+ /i4 +
+ i6 & i7 +
+ i4 & i7 +
+ /i2 & /i7
+rf15.oe = OE
+
+/rf16 := /i3 & /rf17 +
+ /i4 +
+ /i3 +
+ /i3 & i4 +
+ /i7 & rf17 +
+ /i7 +
+ i4 +
+ i2 & i3
+rf16.oe = OE
+
+/rf17 := i2 & i5 & i6 & /i7 +
+ i2 & /rf18 +
+ i5 +
+ i6 +
+ /i7 & rf18 +
+ i2 & /i7 +
+ i5 & i6 +
+ /i3
+rf17.oe = OE
+
+/rf18 := /i2 & i5 & i6 & /i7 +
+ i3 & i6 & i7 +
+ i3 & rf19 +
+ /i2 & /i7 +
+ /i3 & /rf19 +
+ i5 & i6 & /i7 +
+ i7 +
+ /i4
+rf18.oe = OE
+
+/rf19 := i5 & i6 & /i7 +
+ i3 & i6 & i7 +
+ i5 & rf12 +
+ i6 +
+ i7 +
+ /i4 & /rf12 +
+ /i7 +
+ i2
+rf19.oe = OE
+
diff --git a/regtests/jedutil/baseline/pal16rp4/pal16rp4.txt b/regtests/jedutil/baseline/pal16rp4/pal16rp4.txt
new file mode 100644
index 00000000000..aeb327a02b3
--- /dev/null
+++ b/regtests/jedutil/baseline/pal16rp4/pal16rp4.txt
@@ -0,0 +1,93 @@
+Inputs:
+
+2, 3, 4, 5, 6, 7, 8, 9, 12, 13, 14, 15, 16, 17, 18, 19
+
+Outputs:
+
+12 (Combinatorial, Output feedback output, Active high)
+13 (Combinatorial, Output feedback output, Active low)
+14 (Registered, Output feedback registered, Active low)
+15 (Registered, Output feedback registered, Active low)
+16 (Registered, Output feedback registered, Active high)
+17 (Registered, Output feedback registered, Active low)
+18 (Combinatorial, Output feedback output, Active high)
+19 (Combinatorial, Output feedback output, Active low)
+
+Equations:
+
+o12 = /i2 & /i3 +
+ i4 & o13 +
+ i3 +
+ /i6 +
+ i8 +
+ /i9 +
+ i7 & /o13
+o12.oe = rf14
+
+/o13 = /rf14 +
+ /i9 +
+ i8 +
+ /i7 +
+ /i6 & /rf14 +
+ i5 +
+ i4
+o13.oe = i2 & rf14
+
+/rf14 := /rf15 +
+ /i8 +
+ i8 +
+ /i2 & /rf15 +
+ /i2 +
+ i2 & /i8 & rf15 +
+ /i4 +
+ i3
+rf14.oe = OE
+
+/rf15 := i3 & i6 & i7 +
+ i6 & rf16 +
+ i3 & /rf16 +
+ i7 +
+ /i4 +
+ i6 & i7 +
+ i4 & i7 +
+ /i2 & /i7
+rf15.oe = OE
+
+rf16 := /i3 & /rf17 +
+ /i4 +
+ /i3 +
+ /i3 & i4 +
+ /i7 & rf17 +
+ /i7 +
+ i4 +
+ i2 & i3
+rf16.oe = OE
+
+/rf17 := i2 & i5 & i6 & /i7 +
+ i2 & /o18 +
+ i5 +
+ i6 +
+ /i7 & o18 +
+ i2 & /i7 +
+ i5 & i6 +
+ /i3
+rf17.oe = OE
+
+o18 = /i2 & i5 & i6 & /i7 +
+ i3 & i6 & i7 +
+ i3 +
+ /i2 & /i7 +
+ /i3 +
+ i5 & i6 & /i7 +
+ i7
+o18.oe = vcc
+
+/o19 = i5 & i6 & /i7 +
+ i3 & i6 & i7 +
+ i5 +
+ i6 +
+ i7 +
+ /i4 +
+ /i7
+o19.oe = vcc
+
diff --git a/regtests/jedutil/baseline/pal16rp6/pal16rp6.txt b/regtests/jedutil/baseline/pal16rp6/pal16rp6.txt
new file mode 100644
index 00000000000..a0ebaf7b165
--- /dev/null
+++ b/regtests/jedutil/baseline/pal16rp6/pal16rp6.txt
@@ -0,0 +1,95 @@
+Inputs:
+
+2, 3, 4, 5, 6, 7, 8, 9, 12, 13, 14, 15, 16, 17, 18, 19
+
+Outputs:
+
+12 (Combinatorial, Output feedback output, Active high)
+13 (Registered, Output feedback registered, Active low)
+14 (Registered, Output feedback registered, Active low)
+15 (Registered, Output feedback registered, Active high)
+16 (Registered, Output feedback registered, Active high)
+17 (Registered, Output feedback registered, Active low)
+18 (Registered, Output feedback registered, Active low)
+19 (Combinatorial, Output feedback output, Active high)
+
+Equations:
+
+o12 = /i2 & /i3 +
+ i4 & rf13 +
+ i3 +
+ /i6 +
+ i8 +
+ /i9 +
+ i7 & /rf13
+o12.oe = rf14
+
+/rf13 := /rf14 +
+ /i9 +
+ i8 +
+ /i7 +
+ /i6 & /rf14 +
+ i5 & rf14 +
+ i4 +
+ /i2
+rf13.oe = OE
+
+/rf14 := /rf15 +
+ /i8 +
+ i8 +
+ /i2 & /rf15 +
+ /i2 +
+ i2 & /i8 & rf15 +
+ /i4 +
+ i3
+rf14.oe = OE
+
+rf15 := i3 & i6 & i7 +
+ i6 & rf16 +
+ i3 & /rf16 +
+ i7 +
+ /i4 +
+ i6 & i7 +
+ i4 & i7 +
+ /i2 & /i7
+rf15.oe = OE
+
+rf16 := /i3 & /rf17 +
+ /i4 +
+ /i3 +
+ /i3 & i4 +
+ /i7 & rf17 +
+ /i7 +
+ i4 +
+ i2 & i3
+rf16.oe = OE
+
+/rf17 := i2 & i5 & i6 & /i7 +
+ i2 & /rf18 +
+ i5 +
+ i6 +
+ /i7 & rf18 +
+ i2 & /i7 +
+ i5 & i6 +
+ /i3
+rf17.oe = OE
+
+/rf18 := /i2 & i5 & i6 & /i7 +
+ i3 & i6 & i7 +
+ i3 +
+ /i2 & /i7 +
+ /i3 +
+ i5 & i6 & /i7 +
+ i7 +
+ i4
+rf18.oe = OE
+
+o19 = i5 & i6 & /i7 +
+ i3 & i6 & i7 +
+ i5 +
+ i6 +
+ i7 +
+ /i4 +
+ /i7
+o19.oe = vcc
+
diff --git a/regtests/jedutil/baseline/pal16rp8/pal16rp8.txt b/regtests/jedutil/baseline/pal16rp8/pal16rp8.txt
new file mode 100644
index 00000000000..5b896966cfc
--- /dev/null
+++ b/regtests/jedutil/baseline/pal16rp8/pal16rp8.txt
@@ -0,0 +1,97 @@
+Inputs:
+
+2, 3, 4, 5, 6, 7, 8, 9, 12, 13, 14, 15, 16, 17, 18, 19
+
+Outputs:
+
+12 (Registered, Output feedback registered, Active low)
+13 (Registered, Output feedback registered, Active low)
+14 (Registered, Output feedback registered, Active high)
+15 (Registered, Output feedback registered, Active low)
+16 (Registered, Output feedback registered, Active low)
+17 (Registered, Output feedback registered, Active low)
+18 (Registered, Output feedback registered, Active high)
+19 (Registered, Output feedback registered, Active low)
+
+Equations:
+
+/rf12 := /i2 & /i3 +
+ i4 & rf13 +
+ i3 +
+ /i6 +
+ i8 +
+ /i9 +
+ i7 & /rf13 +
+ i5
+rf12.oe = OE
+
+/rf13 := /rf14 +
+ /i9 +
+ i8 +
+ /i7 +
+ /i6 & rf14 +
+ i5 +
+ i4 +
+ /i3
+rf13.oe = OE
+
+rf14 := /rf15 +
+ /i8 +
+ i8 +
+ /i2 & /rf15 +
+ /i2 +
+ i2 & /i8 & rf15 +
+ /i4 +
+ i3
+rf14.oe = OE
+
+/rf15 := i3 & i6 & i7 +
+ i6 & rf16 +
+ i3 & /rf16 +
+ i7 +
+ /i4 +
+ i6 & i7 +
+ i4 & i7 +
+ /i2 & /i7
+rf15.oe = OE
+
+/rf16 := /i3 & /rf17 +
+ /i4 +
+ /i3 +
+ /i3 & i4 +
+ /i7 & rf17 +
+ /i7 +
+ i4 +
+ i2 & i3
+rf16.oe = OE
+
+/rf17 := i2 & i5 & i6 & /i7 +
+ i2 & /rf18 +
+ i5 +
+ i6 +
+ /i7 & rf18 +
+ i2 & /i7 +
+ i5 & i6 +
+ /i3
+rf17.oe = OE
+
+rf18 := /i2 & i5 & i6 & /i7 +
+ i3 & i6 & i7 +
+ i3 & rf19 +
+ /i2 & /i7 +
+ /i3 & /rf19 +
+ i5 & i6 & /i7 +
+ i7 +
+ /i4
+rf18.oe = OE
+
+/rf19 := i5 & i6 & /i7 +
+ i3 & i6 & i7 +
+ i5 & rf12 +
+ i6 +
+ i7 +
+ /i4 & /rf12 +
+ /i7 +
+ i2
+rf19.oe = OE
+
diff --git a/regtests/jedutil/baseline/pal18h4/pal18h4.txt b/regtests/jedutil/baseline/pal18h4/pal18h4.txt
new file mode 100644
index 00000000000..df550b42733
--- /dev/null
+++ b/regtests/jedutil/baseline/pal18h4/pal18h4.txt
@@ -0,0 +1,41 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14, 15, 16, 21, 22, 23
+
+Outputs:
+
+17 (Combinatorial, No output feedback, Active high)
+18 (Combinatorial, No output feedback, Active high)
+19 (Combinatorial, No output feedback, Active high)
+20 (Combinatorial, No output feedback, Active high)
+
+Equations:
+
+o17 = /i1 & /i2 +
+ /i3 & /i7 +
+ /i4 & /i8 & i16 +
+ /i5 & /i6 +
+ /i9 & /i10 +
+ /i13 & /i15
+o17.oe = vcc
+
+o18 = i1 & i2 & i3 +
+ i4 & i5 & i6 & /i14 +
+ i7 & /i16 +
+ i8 & i15
+o18.oe = vcc
+
+o19 = i9 & i10 & i14 +
+ i13 & /i22 +
+ /i2 & i5 & /i21 +
+ i6 & /i7
+o19.oe = vcc
+
+o20 = i3 & i6 +
+ i7 & i13 & i23 +
+ i5 & i6 & i22 +
+ /i7 & i11 +
+ i21 & /i23 +
+ /i1 & i3 & i6 & i7 & i10
+o20.oe = vcc
+
diff --git a/regtests/jedutil/baseline/pal18l4/pal18l4.txt b/regtests/jedutil/baseline/pal18l4/pal18l4.txt
new file mode 100644
index 00000000000..d3cd7022911
--- /dev/null
+++ b/regtests/jedutil/baseline/pal18l4/pal18l4.txt
@@ -0,0 +1,41 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14, 15, 16, 21, 22, 23
+
+Outputs:
+
+17 (Combinatorial, No output feedback, Active low)
+18 (Combinatorial, No output feedback, Active low)
+19 (Combinatorial, No output feedback, Active low)
+20 (Combinatorial, No output feedback, Active low)
+
+Equations:
+
+/o17 = /i1 & /i2 +
+ /i3 & /i7 +
+ /i4 & /i8 & i16 +
+ /i5 & /i6 +
+ /i9 & /i10 +
+ /i13 & /i15
+o17.oe = vcc
+
+/o18 = i1 & i2 & i3 +
+ i4 & i5 & i6 & /i14 +
+ i7 & /i16 +
+ i8 & i15
+o18.oe = vcc
+
+/o19 = i9 & i10 & i14 +
+ i13 & /i22 +
+ /i2 & i5 & /i21 +
+ i6 & /i7
+o19.oe = vcc
+
+/o20 = i3 & i6 +
+ i7 & i13 & i23 +
+ i5 & i6 & i22 +
+ /i7 & i11 +
+ i21 & /i23 +
+ /i1 & i3 & i6 & i7 & i10
+o20.oe = vcc
+
diff --git a/regtests/jedutil/baseline/pal20c1/pal20c1.txt b/regtests/jedutil/baseline/pal20c1/pal20c1.txt
new file mode 100644
index 00000000000..344b61da1cc
--- /dev/null
+++ b/regtests/jedutil/baseline/pal20c1/pal20c1.txt
@@ -0,0 +1,31 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14, 15, 16, 17, 20, 21, 22, 23
+
+Outputs:
+
+18 (Combinatorial, No output feedback, Active low)
+19 (Combinatorial, No output feedback, Active high)
+
+Equations:
+
+/o18 = /i1 & /i2 +
+ /i3 & /i7 & /i17 +
+ /i4 & /i8 & i16 +
+ /i5 & /i6 & i17 +
+ /i9 & /i10 +
+ /i13 & /i15 +
+ i1 & i2 & i3 & i7 & /i16 +
+ i4 & i5 & i6 & i8 & /i14 & i15
+o18.oe = vcc
+
+o19 = i9 & i10 & i14 & /i20 +
+ i13 & /i22 +
+ /i2 & i5 & /i21 +
+ i3 & i6 & /i7 +
+ i7 & i13 & i20 & i23 +
+ i5 & i6 & i22 +
+ /i7 & i11 +
+ /i1 & i3 & i6 & i7 & i10 & i21 & /i23
+o19.oe = vcc
+
diff --git a/regtests/jedutil/baseline/pal20l10/pal20l10.txt b/regtests/jedutil/baseline/pal20l10/pal20l10.txt
new file mode 100644
index 00000000000..a5a34c825a0
--- /dev/null
+++ b/regtests/jedutil/baseline/pal20l10/pal20l10.txt
@@ -0,0 +1,69 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 16, 17, 18, 19, 20, 21, 22
+
+Outputs:
+
+14 (Combinatorial, No output feedback, Active low)
+15 (Combinatorial, Output feedback output, Active low)
+16 (Combinatorial, Output feedback output, Active low)
+17 (Combinatorial, Output feedback output, Active low)
+18 (Combinatorial, Output feedback output, Active low)
+19 (Combinatorial, Output feedback output, Active low)
+20 (Combinatorial, Output feedback output, Active low)
+21 (Combinatorial, Output feedback output, Active low)
+22 (Combinatorial, Output feedback output, Active low)
+23 (Combinatorial, No output feedback, Active low)
+
+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/regtests/jedutil/baseline/pal20l2/pal20l2.txt b/regtests/jedutil/baseline/pal20l2/pal20l2.txt
new file mode 100644
index 00000000000..2d6a02a788b
--- /dev/null
+++ b/regtests/jedutil/baseline/pal20l2/pal20l2.txt
@@ -0,0 +1,31 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14, 15, 16, 17, 20, 21, 22, 23
+
+Outputs:
+
+18 (Combinatorial, No output feedback, Active low)
+19 (Combinatorial, No output feedback, Active low)
+
+Equations:
+
+/o18 = /i1 & i2 +
+ /i3 & i4 +
+ /i5 & i6 & /i7 +
+ i8 & /i9 & i10 +
+ /i11 & i13 +
+ /i14 & i15 & /i16 +
+ i17 & /i21 & i22 +
+ /i23
+o18.oe = vcc
+
+/o19 = i1 & /i2 +
+ i3 & /i4 +
+ i5 & /i6 & i7 +
+ /i8 & i9 & /i10 +
+ i11 & /i13 +
+ i14 & /i15 & i16 +
+ /i17 & i21 & /i22 +
+ i23
+o19.oe = vcc
+
diff --git a/regtests/jedutil/baseline/pal20l8/pal20l8.txt b/regtests/jedutil/baseline/pal20l8/pal20l8.txt
new file mode 100644
index 00000000000..3db690d615b
--- /dev/null
+++ b/regtests/jedutil/baseline/pal20l8/pal20l8.txt
@@ -0,0 +1,89 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14, 16, 17, 18, 19, 20, 21, 23
+
+Outputs:
+
+15 (Combinatorial, No output feedback, Active low)
+16 (Combinatorial, Output feedback output, Active low)
+17 (Combinatorial, Output feedback output, Active low)
+18 (Combinatorial, Output feedback output, Active low)
+19 (Combinatorial, Output feedback output, Active low)
+20 (Combinatorial, Output feedback output, Active low)
+21 (Combinatorial, Output feedback output, Active low)
+22 (Combinatorial, No output feedback, Active low)
+
+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 = /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/regtests/jedutil/baseline/pal20r4/pal20r4.txt b/regtests/jedutil/baseline/pal20r4/pal20r4.txt
new file mode 100644
index 00000000000..eaf9bca00c6
--- /dev/null
+++ b/regtests/jedutil/baseline/pal20r4/pal20r4.txt
@@ -0,0 +1,93 @@
+Inputs:
+
+2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23
+
+Outputs:
+
+15 (Combinatorial, Output feedback output, Active low)
+16 (Combinatorial, Output feedback output, Active low)
+17 (Registered, Output feedback registered, Active low)
+18 (Registered, Output feedback registered, Active low)
+19 (Registered, Output feedback registered, Active low)
+20 (Registered, Output feedback registered, Active low)
+21 (Combinatorial, Output feedback output, Active low)
+22 (Combinatorial, Output feedback output, Active low)
+
+Equations:
+
+/o15 = i2 & i6 & i7 +
+ i6 & o16 +
+ i3 & /o16 +
+ i7 +
+ /i4 +
+ i6 & i7 +
+ i4 & i7
+o15.oe = /i23
+
+/o16 = /i3 & /rf17 +
+ /i4 +
+ /i3 +
+ /i3 & i4 +
+ /i7 & rf17 +
+ /i7 +
+ i4
+o16.oe = i23
+
+/rf17 := /i2 +
+ /rf18 +
+ i5 +
+ i6 +
+ rf18 +
+ i4 +
+ /i10 +
+ /i23
+rf17.oe = OE
+
+/rf18 := /i2 & i5 & i6 & /i7 +
+ i3 & i6 & i7 +
+ i3 & rf19 +
+ /i2 & /i7 +
+ /i3 & /rf19 +
+ i5 & i6 & /i7 +
+ i7 +
+ /i11
+rf18.oe = OE
+
+/rf19 := i5 & i6 & /i7 +
+ i3 & i6 & i7 +
+ i5 & rf20 +
+ i6 +
+ i7 +
+ /i4 & /rf20 +
+ /i7 +
+ i10
+rf19.oe = OE
+
+/rf20 := i10 & rf17 +
+ /i11 +
+ i4 & /rf17 +
+ i2 +
+ /i6 & /i7 +
+ i8 +
+ /i9 +
+ o22
+rf20.oe = OE
+
+/o21 = /i8 +
+ /i2 & rf17 +
+ i11 +
+ /i10 +
+ o15 +
+ /i14 +
+ /i3
+o21.oe = i8 & i9 & /o22
+
+/o22 = i14 +
+ /o15 +
+ i3 & /o21 +
+ i7 +
+ /i8 & o21 +
+ i10 +
+ /i9
+o22.oe = i14 & /o15
+
diff --git a/regtests/jedutil/baseline/pal20r6/pal20r6.txt b/regtests/jedutil/baseline/pal20r6/pal20r6.txt
new file mode 100644
index 00000000000..c89257c22cd
--- /dev/null
+++ b/regtests/jedutil/baseline/pal20r6/pal20r6.txt
@@ -0,0 +1,95 @@
+Inputs:
+
+2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23
+
+Outputs:
+
+15 (Combinatorial, Output feedback output, Active low)
+16 (Registered, Output feedback registered, Active low)
+17 (Registered, Output feedback registered, Active low)
+18 (Registered, Output feedback registered, Active low)
+19 (Registered, Output feedback registered, Active low)
+20 (Registered, Output feedback registered, Active low)
+21 (Registered, Output feedback registered, Active low)
+22 (Combinatorial, Output feedback output, Active low)
+
+Equations:
+
+/o15 = i2 & i6 & i7 +
+ i6 & rf16 +
+ i3 & /rf16 +
+ i7 +
+ /i4 +
+ i6 & i7 +
+ i4 & i7
+o15.oe = /i23
+
+/rf16 := /i3 & /rf17 +
+ /i4 & /i23 +
+ /i3 +
+ /i3 & i4 +
+ /i7 & rf17 +
+ /i7 +
+ i4 +
+ i23
+rf16.oe = OE
+
+/rf17 := /i2 +
+ /rf18 +
+ i5 +
+ i6 +
+ rf18 +
+ i4 +
+ /i10 +
+ /i23
+rf17.oe = OE
+
+/rf18 := /i2 & i5 & i6 & /i7 +
+ i3 & i6 & i7 +
+ i3 & rf19 +
+ /i2 & /i7 +
+ /i3 & /rf19 +
+ i5 & i6 & /i7 +
+ i7 +
+ /i11
+rf18.oe = OE
+
+/rf19 := i5 & i6 & /i7 +
+ i3 & i6 & i7 +
+ i5 & rf20 +
+ i6 +
+ i7 +
+ /i4 & /rf20 +
+ /i7 +
+ i10
+rf19.oe = OE
+
+/rf20 := i10 & rf17 +
+ /i11 +
+ i4 & /rf17 +
+ i2 +
+ /i6 & /i7 +
+ i8 +
+ /i9 +
+ o22
+rf20.oe = OE
+
+/rf21 := /i8 +
+ /i2 & rf17 +
+ i11 +
+ /i10 +
+ o15 +
+ /i14 & /o22 +
+ /i3 +
+ /i5
+rf21.oe = OE
+
+/o22 = i14 +
+ /o15 +
+ i3 & /rf21 +
+ i7 +
+ /i8 & rf21 +
+ i10 +
+ /i9
+o22.oe = i14 & /o15
+
diff --git a/regtests/jedutil/baseline/pal20r8/pal20r8.txt b/regtests/jedutil/baseline/pal20r8/pal20r8.txt
new file mode 100644
index 00000000000..a5ed5d22cfe
--- /dev/null
+++ b/regtests/jedutil/baseline/pal20r8/pal20r8.txt
@@ -0,0 +1,97 @@
+Inputs:
+
+2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23
+
+Outputs:
+
+15 (Registered, Output feedback registered, Active low)
+16 (Registered, Output feedback registered, Active low)
+17 (Registered, Output feedback registered, Active low)
+18 (Registered, Output feedback registered, Active low)
+19 (Registered, Output feedback registered, Active low)
+20 (Registered, Output feedback registered, Active low)
+21 (Registered, Output feedback registered, Active low)
+22 (Registered, Output feedback registered, Active low)
+
+Equations:
+
+/rf15 := i2 & i6 & i7 +
+ i6 & rf16 +
+ i3 & /rf16 +
+ i7 +
+ /i4 +
+ i6 & i7 +
+ i4 & i7 +
+ /i23
+rf15.oe = OE
+
+/rf16 := /i3 & /rf17 +
+ /i4 +
+ /i3 +
+ /i3 & i4 +
+ /i7 & rf17 +
+ /i7 +
+ i4 +
+ i23
+rf16.oe = OE
+
+/rf17 := /i2 +
+ /rf18 +
+ i5 +
+ i6 +
+ rf18 +
+ i4 +
+ /i10 +
+ /i23
+rf17.oe = OE
+
+/rf18 := /i2 & i5 & i6 & /i7 +
+ i3 & i6 & i7 +
+ i3 & rf19 +
+ /i2 & /i7 +
+ /i3 & /rf19 +
+ i5 & i6 & /i7 +
+ i7 +
+ /i11
+rf18.oe = OE
+
+/rf19 := i5 & i6 & /i7 +
+ i3 & i6 & i7 +
+ i5 & rf20 +
+ i6 +
+ i7 +
+ /i4 & /rf20 +
+ /i7 +
+ i10
+rf19.oe = OE
+
+/rf20 := i10 & rf17 +
+ /i11 +
+ i4 & /rf17 +
+ i2 +
+ /i6 & /i7 +
+ i8 +
+ /i9 +
+ rf22
+rf20.oe = OE
+
+/rf21 := /i8 +
+ /i2 & rf17 +
+ i11 +
+ /i10 +
+ rf15 +
+ /i14 +
+ /i3 +
+ i8 & i9 & /rf22
+rf21.oe = OE
+
+/rf22 := i14 +
+ /rf15 +
+ i3 & /rf21 +
+ i7 +
+ /i8 & rf21 +
+ i10 +
+ /i9 +
+ i14 & /rf15
+rf22.oe = OE
+
diff --git a/regtests/jedutil/baseline/pal20x10/pal20x10.txt b/regtests/jedutil/baseline/pal20x10/pal20x10.txt
new file mode 100644
index 00000000000..48044e7b97c
--- /dev/null
+++ b/regtests/jedutil/baseline/pal20x10/pal20x10.txt
@@ -0,0 +1,79 @@
+Inputs:
+
+2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23
+
+Outputs:
+
+14 (Registered, Output feedback registered, Active low)
+15 (Registered, Output feedback registered, Active low)
+16 (Registered, Output feedback registered, Active low)
+17 (Registered, Output feedback registered, Active low)
+18 (Registered, Output feedback registered, Active low)
+19 (Registered, Output feedback registered, Active low)
+20 (Registered, Output feedback registered, Active low)
+21 (Registered, Output feedback registered, Active low)
+22 (Registered, Output feedback registered, Active low)
+23 (Registered, Output feedback registered, Active low)
+
+Equations:
+
+/rf14 := /i2 & rf15 +
+ i11 & /rf15 :+:
+ i3 & i4 +
+ /i5 & i10
+rf14.oe = OE
+
+/rf15 := i2 & i6 & i7 +
+ i6 & rf16 :+:
+ i3 & /rf16 +
+ i7
+rf15.oe = OE
+
+/rf16 := /i3 & /rf17 +
+ /i4 :+:
+ /i3 & i4 +
+ /i7 & rf17
+rf16.oe = OE
+
+/rf17 := /i2 +
+ /rf18 :+:
+ i5 & i6 +
+ rf18
+rf17.oe = OE
+
+/rf18 := /i2 & i5 & i6 & /i7 & /i11 +
+ i3 & rf19 :+:
+ /i2 & /i7 +
+ /i3 & /rf19
+rf18.oe = OE
+
+/rf19 := i5 & i6 & /i7 & i10 +
+ i3 & i6 & i7 :+:
+ i5 & rf20 +
+ /i4 & /rf20 & rf23
+rf19.oe = OE
+
+/rf20 := /i10 & rf17 +
+ /i11 :+:
+ i4 & /rf17 +
+ i2 & /rf23
+rf20.oe = OE
+
+/rf21 := /i2 & rf17 +
+ /i10 & i11 :+:
+ /rf14 & rf15 +
+ i8 & i9 & /rf22
+rf21.oe = OE
+
+/rf22 := rf14 & /rf15 +
+ i3 & /rf21 :+:
+ /i8 & rf21 +
+ rf16 & /rf20
+rf22.oe = OE
+
+/rf23 := /rf14 +
+ i6 & rf14 :+:
+ i7 & rf22 +
+ i2 & i4 & i6 & i8 & /rf15
+rf23.oe = OE
+
diff --git a/regtests/jedutil/baseline/pal20x4/pal20x4.txt b/regtests/jedutil/baseline/pal20x4/pal20x4.txt
new file mode 100644
index 00000000000..900f84675c9
--- /dev/null
+++ b/regtests/jedutil/baseline/pal20x4/pal20x4.txt
@@ -0,0 +1,73 @@
+Inputs:
+
+2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23
+
+Outputs:
+
+14 (Combinatorial, Output feedback output, Active low)
+15 (Combinatorial, Output feedback output, Active low)
+16 (Combinatorial, Output feedback output, Active low)
+17 (Registered, Output feedback registered, Active low)
+18 (Registered, Output feedback registered, Active low)
+19 (Registered, Output feedback registered, Active low)
+20 (Registered, Output feedback registered, Active low)
+21 (Combinatorial, Output feedback output, Active low)
+22 (Combinatorial, Output feedback output, Active low)
+23 (Combinatorial, Output feedback output, Active low)
+
+Equations:
+
+/o14 = /i2 & o15 +
+ i11 & /o15 +
+ i3 & i4 & /i5 & i10
+o14.oe = i6
+
+/o15 = i2 & i6 & i7 +
+ i3 & /o16 +
+ i7
+o15.oe = i6 & o16
+
+/o16 = /i3 & /rf17 +
+ /i4 +
+ /i7 & rf17
+o16.oe = /i3 & i4
+
+/rf17 := /i2 +
+ /rf18 :+:
+ i5 & i6 +
+ rf18
+rf17.oe = OE
+
+/rf18 := /i2 & i5 & i6 & /i7 & /i11 +
+ i3 & rf19 :+:
+ /i2 & /i7 +
+ /i3 & /rf19
+rf18.oe = OE
+
+/rf19 := i5 & i6 & /i7 & i10 +
+ i3 & i6 & i7 :+:
+ i5 & rf20 +
+ /i4 & /rf20 & o23
+rf19.oe = OE
+
+/rf20 := /i10 & rf17 +
+ /i11 :+:
+ i4 & /rf17 +
+ i2 & /o23
+rf20.oe = OE
+
+/o21 = /i2 & rf17 +
+ /o14 & o15 +
+ i8 & i9 & /o22
+o21.oe = /i10 & i11
+
+/o22 = o14 & /o15 +
+ i3 & /o21 +
+ /i8 & o21
+o22.oe = o16 & /rf20
+
+/o23 = /o14 +
+ i2 & i4 & i6 & i8 & o14 +
+ i7 & /o15 & o22
+o23.oe = /i3
+
diff --git a/regtests/jedutil/baseline/pal20x8/pal20x8.txt b/regtests/jedutil/baseline/pal20x8/pal20x8.txt
new file mode 100644
index 00000000000..19b3ab325c2
--- /dev/null
+++ b/regtests/jedutil/baseline/pal20x8/pal20x8.txt
@@ -0,0 +1,77 @@
+Inputs:
+
+2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23
+
+Outputs:
+
+14 (Combinatorial, Output feedback output, Active low)
+15 (Registered, Output feedback registered, Active low)
+16 (Registered, Output feedback registered, Active low)
+17 (Registered, Output feedback registered, Active low)
+18 (Registered, Output feedback registered, Active low)
+19 (Registered, Output feedback registered, Active low)
+20 (Registered, Output feedback registered, Active low)
+21 (Registered, Output feedback registered, Active low)
+22 (Registered, Output feedback registered, Active low)
+23 (Combinatorial, Output feedback output, Active low)
+
+Equations:
+
+/o14 = /i2 & rf15 +
+ i11 & /rf15 +
+ i3 & i4 & /i5 & i10
+o14.oe = i6
+
+/rf15 := i2 & i6 & i7 +
+ i6 & rf16 :+:
+ i3 & /rf16 +
+ i7
+rf15.oe = OE
+
+/rf16 := /i3 & /rf17 +
+ /i4 :+:
+ /i3 & i4 +
+ /i7 & rf17
+rf16.oe = OE
+
+/rf17 := /i2 +
+ /rf18 :+:
+ i5 & i6 +
+ rf18
+rf17.oe = OE
+
+/rf18 := /i2 & i5 & i6 & /i7 & /i11 +
+ i3 & rf19 :+:
+ /i2 & /i7 +
+ /i3 & /rf19
+rf18.oe = OE
+
+/rf19 := i5 & i6 & /i7 & i10 +
+ i3 & i6 & i7 :+:
+ i5 & rf20 +
+ /i4 & /rf20 & o23
+rf19.oe = OE
+
+/rf20 := /i10 & rf17 +
+ /i11 :+:
+ i4 & /rf17 +
+ i2 & /o23
+rf20.oe = OE
+
+/rf21 := /i2 & rf17 +
+ /i10 & i11 :+:
+ /o14 & rf15 +
+ i8 & i9 & /rf22
+rf21.oe = OE
+
+/rf22 := o14 & /rf15 +
+ i3 & /rf21 :+:
+ /i8 & rf21 +
+ rf16 & /rf20
+rf22.oe = OE
+
+/o23 = /o14 +
+ i2 & i4 & i6 & i8 & o14 +
+ i7 & /rf15 & rf22
+o23.oe = /i3
+
diff --git a/regtests/jedutil/baseline/pal6l16/pal6l16.txt b/regtests/jedutil/baseline/pal6l16/pal6l16.txt
new file mode 100644
index 00000000000..024ce6a83cb
--- /dev/null
+++ b/regtests/jedutil/baseline/pal6l16/pal6l16.txt
@@ -0,0 +1,73 @@
+Inputs:
+
+4, 5, 6, 7, 8, 9
+
+Outputs:
+
+1 (Combinatorial, No output feedback, Active low)
+2 (Combinatorial, No output feedback, Active low)
+3 (Combinatorial, No output feedback, Active low)
+10 (Combinatorial, No output feedback, Active low)
+11 (Combinatorial, No output feedback, Active low)
+13 (Combinatorial, No output feedback, Active low)
+14 (Combinatorial, No output feedback, Active low)
+15 (Combinatorial, No output feedback, Active low)
+16 (Combinatorial, No output feedback, Active low)
+17 (Combinatorial, No output feedback, Active low)
+18 (Combinatorial, No output feedback, Active low)
+19 (Combinatorial, No output feedback, Active low)
+20 (Combinatorial, No output feedback, Active low)
+21 (Combinatorial, No output feedback, Active low)
+22 (Combinatorial, No output feedback, Active low)
+23 (Combinatorial, No output feedback, Active low)
+
+Equations:
+
+/o1 = i4
+o1.oe = vcc
+
+/o2 = i5
+o2.oe = vcc
+
+/o3 = i6
+o3.oe = vcc
+
+/o10 = i7
+o10.oe = vcc
+
+/o11 = i8
+o11.oe = vcc
+
+/o13 = i9
+o13.oe = vcc
+
+/o14 = i4 & i5
+o14.oe = vcc
+
+/o15 = /i9
+o15.oe = vcc
+
+/o16 = /i8
+o16.oe = vcc
+
+/o17 = /i7
+o17.oe = vcc
+
+/o18 = /i6
+o18.oe = vcc
+
+/o19 = /i5
+o19.oe = vcc
+
+/o20 = /i4
+o20.oe = vcc
+
+/o21 = /i4 & i5 & /i6 & i7 & /i8 & i9
+o21.oe = vcc
+
+/o22 = i4 & /i5 & i6 & /i7 & i8 & /i9
+o22.oe = vcc
+
+/o23 = i6 & i9
+o23.oe = vcc
+
diff --git a/regtests/jedutil/baseline/pal8l14/pal8l14.txt b/regtests/jedutil/baseline/pal8l14/pal8l14.txt
new file mode 100644
index 00000000000..ea59af227c4
--- /dev/null
+++ b/regtests/jedutil/baseline/pal8l14/pal8l14.txt
@@ -0,0 +1,65 @@
+Inputs:
+
+3, 4, 5, 6, 7, 8, 9, 10
+
+Outputs:
+
+1 (Combinatorial, No output feedback, Active low)
+2 (Combinatorial, No output feedback, Active low)
+11 (Combinatorial, No output feedback, Active low)
+13 (Combinatorial, No output feedback, Active low)
+14 (Combinatorial, No output feedback, Active low)
+15 (Combinatorial, No output feedback, Active low)
+16 (Combinatorial, No output feedback, Active low)
+17 (Combinatorial, No output feedback, Active low)
+18 (Combinatorial, No output feedback, Active low)
+19 (Combinatorial, No output feedback, Active low)
+20 (Combinatorial, No output feedback, Active low)
+21 (Combinatorial, No output feedback, Active low)
+22 (Combinatorial, No output feedback, Active low)
+23 (Combinatorial, No output feedback, Active low)
+
+Equations:
+
+/o1 = i3
+o1.oe = vcc
+
+/o2 = i4
+o2.oe = vcc
+
+/o11 = i5
+o11.oe = vcc
+
+/o13 = i6
+o13.oe = vcc
+
+/o14 = i7
+o14.oe = vcc
+
+/o15 = i8
+o15.oe = vcc
+
+/o16 = i9
+o16.oe = vcc
+
+/o17 = i10
+o17.oe = vcc
+
+/o18 = /i3
+o18.oe = vcc
+
+/o19 = /i4 & /i9
+o19.oe = vcc
+
+/o20 = /i5
+o20.oe = vcc
+
+/o21 = /i6 & /i10
+o21.oe = vcc
+
+/o22 = /i7
+o22.oe = vcc
+
+/o23 = /i8
+o23.oe = vcc
+
diff --git a/regtests/jedutil/baseline/palce16v8/pal10h8-as-palce16v8.txt b/regtests/jedutil/baseline/palce16v8/pal10h8-as-palce16v8.txt
new file mode 100644
index 00000000000..8f2217bb42f
--- /dev/null
+++ b/regtests/jedutil/baseline/palce16v8/pal10h8-as-palce16v8.txt
@@ -0,0 +1,97 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11
+
+Outputs:
+
+12 (Combinatorial, No output feedback, Active high)
+13 (Combinatorial, No output feedback, Active high)
+14 (Combinatorial, No output feedback, Active high)
+15 (Combinatorial, No output feedback, Active high)
+16 (Combinatorial, No output feedback, Active high)
+17 (Combinatorial, No output feedback, Active high)
+18 (Combinatorial, No output feedback, Active high)
+19 (Combinatorial, No output feedback, Active high)
+
+Equations:
+
+o12 = i2 +
+ i1 & i3 +
+ i4 & /i11 +
+ i5 +
+ i6 +
+ /i1 & i7 +
+ i8 +
+ i9 & i11
+o12.oe = vcc
+
+o13 = /i2 +
+ /i4 +
+ /i3 & /i6 +
+ /i8 +
+ /i11 +
+ /i9 +
+ /i1 & /i7 +
+ /i5
+o13.oe = vcc
+
+o14 = i4 +
+ /i8 & i11 +
+ /i6 +
+ /i2 +
+ i5 & /i11 +
+ i7 +
+ /i3 & /i9 +
+ /i1
+o14.oe = vcc
+
+o15 = i5 +
+ /i1 +
+ i1 & i7 +
+ /i3 +
+ i1 & /i3 +
+ i2 & i9 +
+ /i8 +
+ i4
+o15.oe = vcc
+
+o16 = i6 +
+ i3 & i11 +
+ i6 & i8 +
+ /i1 +
+ /i8 +
+ /i7 & /i8 +
+ /i2 & /i9 +
+ /i5 & i7 & i8
+o16.oe = vcc
+
+o17 = i7 +
+ i2 & i9 +
+ i3 & i4 +
+ /i5 +
+ /i9 +
+ /i8 +
+ /i1 & /i11 +
+ i6 & i9
+o17.oe = vcc
+
+o18 = /i1 +
+ /i3 +
+ /i5 +
+ /i7 +
+ /i9 +
+ /i11 +
+ i1 & i7 & i11 +
+ i3 & i5 & i9
+o18.oe = vcc
+
+o19 = i3 & i11 +
+ i1 +
+ /i1 & /i9 +
+ /i3 & /i5 & /i7 +
+ i2 +
+ i4 +
+ i6 +
+ i8
+o19.oe = vcc
+
diff --git a/regtests/jedutil/baseline/palce16v8/pal10l8-as-palce16v8.txt b/regtests/jedutil/baseline/palce16v8/pal10l8-as-palce16v8.txt
new file mode 100644
index 00000000000..d32a94e781f
--- /dev/null
+++ b/regtests/jedutil/baseline/palce16v8/pal10l8-as-palce16v8.txt
@@ -0,0 +1,97 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11
+
+Outputs:
+
+12 (Combinatorial, No output feedback, Active low)
+13 (Combinatorial, No output feedback, Active low)
+14 (Combinatorial, No output feedback, Active low)
+15 (Combinatorial, No output feedback, Active low)
+16 (Combinatorial, No output feedback, Active low)
+17 (Combinatorial, No output feedback, Active low)
+18 (Combinatorial, No output feedback, Active low)
+19 (Combinatorial, No output feedback, Active low)
+
+Equations:
+
+/o12 = /i1 & i7 +
+ i8 +
+ i9 & i11 +
+ i2 +
+ i1 & i3 +
+ i5 +
+ i4 & /i11 +
+ i6
+o12.oe = vcc
+
+/o13 = /i8 +
+ /i11 +
+ /i9 +
+ /i3 & /i6 +
+ /i1 & /i7 +
+ /i2 +
+ /i4 +
+ /i5
+o13.oe = vcc
+
+/o14 = /i3 & /i9 +
+ /i6 +
+ /i2 +
+ i4 +
+ /i8 & i11 +
+ i7 +
+ i5 & /i11 +
+ /i1
+o14.oe = vcc
+
+/o15 = i4 +
+ i1 & /i3 +
+ i2 & i9 +
+ i5 +
+ i1 & i7 +
+ /i3 +
+ /i8 +
+ /i1
+o15.oe = vcc
+
+/o16 = i6 +
+ /i2 & /i9 +
+ i3 & i11 +
+ /i8 +
+ i6 & i8 +
+ /i1 +
+ /i5 & i7 & i8 +
+ /i7 & /i8
+o16.oe = vcc
+
+/o17 = i3 & i4 +
+ /i5 +
+ /i9 +
+ /i1 & /i11 +
+ i7 +
+ i2 & i9 +
+ i6 & i9 +
+ /i8
+o17.oe = vcc
+
+/o18 = /i9 +
+ i3 & i5 & i9 +
+ /i7 +
+ /i11 +
+ /i1 +
+ /i3 +
+ /i5 +
+ i1 & i7 & i11
+o18.oe = vcc
+
+/o19 = /i3 & /i5 & /i7 +
+ i2 +
+ i8 +
+ i3 & i11 +
+ i1 +
+ i4 +
+ i6 +
+ /i1 & /i9
+o19.oe = vcc
+
diff --git a/regtests/jedutil/baseline/palce16v8/pal12h6-as-palce16v8.txt b/regtests/jedutil/baseline/palce16v8/pal12h6-as-palce16v8.txt
new file mode 100644
index 00000000000..99812016fc1
--- /dev/null
+++ b/regtests/jedutil/baseline/palce16v8/pal12h6-as-palce16v8.txt
@@ -0,0 +1,75 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 19
+
+Outputs:
+
+13 (Combinatorial, No output feedback, Active high)
+14 (Combinatorial, No output feedback, Active high)
+15 (Combinatorial, No output feedback, Active high)
+16 (Combinatorial, No output feedback, Active high)
+17 (Combinatorial, No output feedback, Active high)
+18 (Combinatorial, No output feedback, Active high)
+
+Equations:
+
+o13 = /i2 +
+ /i4 +
+ /i3 & /i6 +
+ /i8 +
+ /i11 +
+ /i9 +
+ /i1 & /i7 +
+ /i5
+o13.oe = vcc
+
+o14 = i4 +
+ /i8 & i11 +
+ /i6 +
+ /i2 +
+ i5 & /i11 +
+ i7 +
+ /i3 & /i9 +
+ /i1 & /i12
+o14.oe = vcc
+
+o15 = i5 & i19 +
+ /i1 +
+ i1 & i7 +
+ /i3 +
+ i1 & /i3 +
+ i2 & i9 +
+ /i8 +
+ i4
+o15.oe = vcc
+
+o16 = i6 +
+ i3 & i11 +
+ i6 & i8 +
+ /i1 +
+ /i8 +
+ /i7 & /i8 +
+ /i2 & /i9 +
+ /i5 & i7 & i8
+o16.oe = vcc
+
+o17 = i7 & i12 +
+ i2 & i9 +
+ i3 & i4 +
+ /i5 +
+ /i9 +
+ /i8 +
+ /i1 & /i11 +
+ i6 & i9
+o17.oe = vcc
+
+o18 = /i1 +
+ /i3 +
+ /i5 +
+ /i7 +
+ /i9 & /i19 +
+ /i11 +
+ i1 & i7 & i11 +
+ i3 & i5 & i9
+o18.oe = vcc
+
diff --git a/regtests/jedutil/baseline/palce16v8/pal12l6-as-palce16v8.txt b/regtests/jedutil/baseline/palce16v8/pal12l6-as-palce16v8.txt
new file mode 100644
index 00000000000..80176da62b2
--- /dev/null
+++ b/regtests/jedutil/baseline/palce16v8/pal12l6-as-palce16v8.txt
@@ -0,0 +1,75 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 19
+
+Outputs:
+
+13 (Combinatorial, No output feedback, Active low)
+14 (Combinatorial, No output feedback, Active low)
+15 (Combinatorial, No output feedback, Active low)
+16 (Combinatorial, No output feedback, Active low)
+17 (Combinatorial, No output feedback, Active low)
+18 (Combinatorial, No output feedback, Active low)
+
+Equations:
+
+/o13 = /i8 +
+ /i11 +
+ /i9 +
+ /i3 & /i6 +
+ /i1 & /i7 +
+ /i2 +
+ /i4 & /i12 +
+ /i5
+o13.oe = vcc
+
+/o14 = /i3 & /i9 & i19 +
+ /i6 +
+ /i2 +
+ i4 +
+ /i8 & i11 +
+ i7 +
+ i5 & /i11 +
+ /i1
+o14.oe = vcc
+
+/o15 = i4 +
+ i1 & /i3 +
+ i2 & i9 +
+ i5 +
+ i1 & i7 +
+ /i3 +
+ /i8 +
+ /i1
+o15.oe = vcc
+
+/o16 = i6 +
+ /i2 & /i9 +
+ i3 & i11 +
+ /i8 +
+ i6 & i8 +
+ /i1 +
+ /i5 & i7 & i8 +
+ /i7 & /i8 & i12
+o16.oe = vcc
+
+/o17 = i3 & i4 +
+ /i5 +
+ /i9 +
+ /i1 & /i11 +
+ i7 +
+ i2 & i9 & /i19 +
+ i6 & i9 +
+ /i8
+o17.oe = vcc
+
+/o18 = /i9 +
+ i3 & i5 & i9 +
+ /i7 +
+ /i11 +
+ /i1 +
+ /i3 +
+ /i5 +
+ i1 & i7 & i11
+o18.oe = vcc
+
diff --git a/regtests/jedutil/baseline/palce16v8/pal14h4-as-palce16v8.txt b/regtests/jedutil/baseline/palce16v8/pal14h4-as-palce16v8.txt
new file mode 100644
index 00000000000..5bc89e2aace
--- /dev/null
+++ b/regtests/jedutil/baseline/palce16v8/pal14h4-as-palce16v8.txt
@@ -0,0 +1,53 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 18, 19
+
+Outputs:
+
+14 (Combinatorial, No output feedback, Active high)
+15 (Combinatorial, No output feedback, Active high)
+16 (Combinatorial, No output feedback, Active high)
+17 (Combinatorial, No output feedback, Active high)
+
+Equations:
+
+o14 = /i1 +
+ /i3 & /i9 +
+ i7 & i12 +
+ i5 & /i11 +
+ /i2 +
+ /i12 +
+ /i8 & i11 +
+ i4
+o14.oe = vcc
+
+o15 = i4 +
+ /i8 +
+ i2 & i9 +
+ /i3 & i13 +
+ /i3 +
+ i1 & i7 +
+ /i13 +
+ i5
+o15.oe = vcc
+
+o16 = /i5 & i7 & i8 +
+ /i2 & /i9 +
+ /i7 & /i8 +
+ /i18 +
+ /i1 +
+ i6 & i18 +
+ i3 & i11 +
+ i6
+o16.oe = vcc
+
+o17 = i6 & i9 +
+ /i1 & /i11 +
+ /i19 +
+ /i9 +
+ /i5 +
+ i3 & i4 +
+ i2 & i19 +
+ i7
+o17.oe = vcc
+
diff --git a/regtests/jedutil/baseline/palce16v8/pal14l4-as-palce16v8.txt b/regtests/jedutil/baseline/palce16v8/pal14l4-as-palce16v8.txt
new file mode 100644
index 00000000000..2b12c4c155c
--- /dev/null
+++ b/regtests/jedutil/baseline/palce16v8/pal14l4-as-palce16v8.txt
@@ -0,0 +1,53 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 18, 19
+
+Outputs:
+
+14 (Combinatorial, No output feedback, Active low)
+15 (Combinatorial, No output feedback, Active low)
+16 (Combinatorial, No output feedback, Active low)
+17 (Combinatorial, No output feedback, Active low)
+
+Equations:
+
+/o14 = /i2 +
+ /i3 & /i9 +
+ i7 & i12 +
+ i1 +
+ i5 & /i11 +
+ /i12 +
+ i4 +
+ /i8 & i11
+o14.oe = vcc
+
+/o15 = /i3 & i13 +
+ i4 +
+ i2 & i9 +
+ /i3 +
+ /i13 +
+ i5 +
+ /i8 +
+ i1 & i7
+o15.oe = vcc
+
+/o16 = /i7 & /i8 +
+ /i2 & /i9 +
+ /i5 & i7 & i8 +
+ /i1 +
+ i6 & i18 +
+ i6 +
+ i3 & i11 +
+ /i18
+o16.oe = vcc
+
+/o17 = i7 +
+ /i1 & /i11 +
+ /i5 +
+ i6 & i9 +
+ i3 & i4 +
+ /i19 +
+ /i9 +
+ i2 & i19
+o17.oe = vcc
+
diff --git a/regtests/jedutil/baseline/palce16v8/pal16h2-as-palce16v8.txt b/regtests/jedutil/baseline/palce16v8/pal16h2-as-palce16v8.txt
new file mode 100644
index 00000000000..c458533943f
--- /dev/null
+++ b/regtests/jedutil/baseline/palce16v8/pal16h2-as-palce16v8.txt
@@ -0,0 +1,31 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 17, 18, 19
+
+Outputs:
+
+15 (Combinatorial, No output feedback, Active high)
+16 (Combinatorial, No output feedback, Active high)
+
+Equations:
+
+o15 = i4 +
+ /i8 +
+ i2 & i9 +
+ /i3 & i13 +
+ /i3 & i14 +
+ i1 & i7 +
+ /i13 & /i14 +
+ i5
+o15.oe = vcc
+
+o16 = /i5 & i7 & i8 & i17 +
+ /i2 & /i9 +
+ /i7 & /i8 +
+ /i18 +
+ /i1 & /i17 +
+ i6 & i18 +
+ i3 & i11 +
+ i6
+o16.oe = vcc
+
diff --git a/regtests/jedutil/baseline/palce16v8/pal16l2-as-palce16v8.txt b/regtests/jedutil/baseline/palce16v8/pal16l2-as-palce16v8.txt
new file mode 100644
index 00000000000..22ec9b2ce1a
--- /dev/null
+++ b/regtests/jedutil/baseline/palce16v8/pal16l2-as-palce16v8.txt
@@ -0,0 +1,31 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 17, 18, 19
+
+Outputs:
+
+15 (Combinatorial, No output feedback, Active low)
+16 (Combinatorial, No output feedback, Active low)
+
+Equations:
+
+/o15 = i4 & i17 & /i19 +
+ i2 & i9 +
+ /i8 & i18 +
+ i1 & i7 & i12 +
+ /i13 & /i14 +
+ /i3 & i13 +
+ /i3 & i14 +
+ i5 & /i11
+o15.oe = vcc
+
+/o16 = i6 +
+ /i7 & /i8 & /i12 +
+ i13 & /i18 +
+ /i1 & i14 & /i17 +
+ i6 & i18 +
+ /i5 & i7 & i8 & i17 +
+ i3 & i11 & /i18 +
+ /i2 & /i9 & i19
+o16.oe = vcc
+
diff --git a/regtests/jedutil/baseline/palce16v8/pal16l8-as-palce16v8.txt b/regtests/jedutil/baseline/palce16v8/pal16l8-as-palce16v8.txt
new file mode 100644
index 00000000000..7c93dad207e
--- /dev/null
+++ b/regtests/jedutil/baseline/palce16v8/pal16l8-as-palce16v8.txt
@@ -0,0 +1,89 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 13, 14, 15, 16, 17, 18
+
+Outputs:
+
+12 (Combinatorial, Output feedback output, Active high)
+13 (Combinatorial, Output feedback output, Active low)
+14 (Combinatorial, Output feedback output, Active low)
+15 (Combinatorial, Output feedback output, Active low)
+16 (Combinatorial, Output feedback output, Active low)
+17 (Combinatorial, Output feedback output, Active low)
+18 (Combinatorial, Output feedback output, Active high)
+19 (Combinatorial, Output feedback output, Active high)
+
+Equations:
+
+o12 = i1 & /i2 +
+ /i1 & i3 +
+ /i3 & i7 +
+ i4 & o13 +
+ i6 & /o13 +
+ i6 & /i7 +
+ /i6 & /i8 & /i9
+o12.oe = /i5
+
+/o13 = i3 +
+ o14 +
+ /i11 +
+ i2 +
+ /i4 & /o14 +
+ i8 & i9 +
+ i5
+o13.oe = vcc
+
+/o14 = i4 +
+ /i8 & i11 +
+ o15 +
+ /i2 +
+ i5 & /i11 +
+ i7 +
+ /i3 & /i9
+o14.oe = i1
+
+/o15 = i5 +
+ /o16 +
+ i1 & i7 +
+ /i3 +
+ /i3 & o16 +
+ i2 & i9 +
+ /i8
+o15.oe = vcc
+
+/o16 = i6 +
+ i3 & i11 +
+ i6 & o17 +
+ /i1 +
+ /o17 +
+ /i7 & /i8 +
+ /i2 & /i9
+o16.oe = /i11
+
+/o17 = i7 +
+ i2 & o18 +
+ i3 & i4 +
+ /i5 +
+ /i9 +
+ /o18 +
+ /i1 & /i11
+o17.oe = vcc
+
+o18 = i3 +
+ i8 +
+ i9 & i11 +
+ i1 +
+ /i4 +
+ i2 +
+ i5 & /i7
+o18.oe = vcc
+
+o19 = o18 +
+ o17 +
+ o16 +
+ o15 +
+ o14 +
+ o13 +
+ /o13 & /o14 & /o15 & /o16 & /o17 & /o18
+o19.oe = i3
+
diff --git a/regtests/jedutil/baseline/palce16v8/pal16r4-as-palce16v8.txt b/regtests/jedutil/baseline/palce16v8/pal16r4-as-palce16v8.txt
new file mode 100644
index 00000000000..c021b4a70b7
--- /dev/null
+++ b/regtests/jedutil/baseline/palce16v8/pal16r4-as-palce16v8.txt
@@ -0,0 +1,93 @@
+Inputs:
+
+2, 3, 4, 5, 6, 7, 8, 9, 12, 13, 14, 15, 16, 17, 18, 19
+
+Outputs:
+
+12 (Combinatorial, Output feedback output, Active low)
+13 (Combinatorial, Output feedback output, Active low)
+14 (Registered, Output feedback registered, Active low)
+15 (Registered, Output feedback registered, Active low)
+16 (Registered, Output feedback registered, Active low)
+17 (Registered, Output feedback registered, Active low)
+18 (Combinatorial, Output feedback output, Active low)
+19 (Combinatorial, Output feedback output, Active low)
+
+Equations:
+
+/o12 = i3 & /i4 +
+ /o19 +
+ /i2 +
+ /i5 +
+ /i6 +
+ /i7 +
+ i2 & /i8 & o19
+o12.oe = i4 & /i9
+
+/o13 = /rf14 +
+ i3 & i7 +
+ i4 & i5 +
+ i6 +
+ /i6 & /i9 & rf14 +
+ /i2 & /i8 +
+ i8 & /i9
+o13.oe = rf14
+
+/rf14 := i2 & i9 +
+ /i2 & rf15 +
+ i4 & /rf15 +
+ i3 & /i8 +
+ i3 & /i4 +
+ /i5 & /i7 +
+ /i7 & /i9 +
+ /i4 & i5
+rf14.oe = OE
+
+/rf15 := i5 & i9 +
+ i3 & i4 & /i9 +
+ /rf16 +
+ /i2 & /i6 +
+ /i4 & /i9 +
+ /i3 & rf16 +
+ /i8 +
+ /i5 & i8
+rf15.oe = OE
+
+/rf16 := /i8 +
+ /i7 +
+ /i6 +
+ /i5 +
+ /i4 +
+ /i3 & /rf17 +
+ /i2 +
+ i2 & i3 & i4 & i5 & i6 & i7 & i8 & i9 & rf17
+rf16.oe = OE
+
+/rf17 := i9 +
+ i8 & o18 +
+ i7 +
+ i6 +
+ i5 +
+ i4 & /o18 +
+ i3 +
+ /i2
+rf17.oe = OE
+
+/o18 = /i3 & o19 +
+ /i5 +
+ /i7 +
+ /i9 +
+ /i2 +
+ /i4 & /o19 +
+ /i6
+o18.oe = i8
+
+/o19 = i2 +
+ /i5 +
+ i3 & /o12 +
+ i9 +
+ /i2 & /i3 +
+ /i7 & i9 & o12 +
+ i5 & i8
+o19.oe = i4
+
diff --git a/regtests/jedutil/baseline/palce16v8/pal16r6-as-palce16v8.txt b/regtests/jedutil/baseline/palce16v8/pal16r6-as-palce16v8.txt
new file mode 100644
index 00000000000..5e2edac5a08
--- /dev/null
+++ b/regtests/jedutil/baseline/palce16v8/pal16r6-as-palce16v8.txt
@@ -0,0 +1,95 @@
+Inputs:
+
+2, 3, 4, 5, 6, 7, 8, 9, 12, 13, 14, 15, 16, 17, 18, 19
+
+Outputs:
+
+12 (Combinatorial, Output feedback output, Active low)
+13 (Registered, Output feedback registered, Active low)
+14 (Registered, Output feedback registered, Active low)
+15 (Registered, Output feedback registered, Active low)
+16 (Registered, Output feedback registered, Active low)
+17 (Registered, Output feedback registered, Active low)
+18 (Registered, Output feedback registered, Active low)
+19 (Combinatorial, Output feedback output, Active low)
+
+Equations:
+
+/o12 = rf13 & rf14 & rf15 & rf16 & rf17 & rf18 +
+ i2 +
+ i3 +
+ i4 +
+ /o19 +
+ i6 & o19 +
+ i7 & /i8 & i9
+o12.oe = /i5
+
+/rf13 := /i6 & rf13 +
+ o12 & o19 +
+ /i9 & /rf13 +
+ /i2 & /i5 +
+ i2 & /o12 +
+ /i7 & /i9 +
+ /i2 & /i8 +
+ /i3 & i8 & i9
+rf13.oe = OE
+
+/rf14 := i2 +
+ /rf14 +
+ i3 +
+ i7 & /i8 & /rf13 +
+ /i9 & rf14 +
+ i6 & i9 & rf13 +
+ i2 & i4 & /i9 +
+ /i5 & /i8
+rf14.oe = OE
+
+/rf15 := /i3 +
+ i4 +
+ i5 & rf14 & rf16 +
+ /i7 & i9 +
+ i3 & /rf14 +
+ /i4 & /i5 +
+ i6 & /i9 +
+ /i8 & /rf16
+rf15.oe = OE
+
+/rf16 := i8 & rf17 +
+ i3 & i9 +
+ /i4 & /i9 & /rf15 +
+ i7 & i8 +
+ i2 & i3 & i9 & /rf17 +
+ i2 & i5 +
+ i3 & /i4 & /i5 & rf15 +
+ /i6 & /i7 & i9
+rf16.oe = OE
+
+/rf17 := i2 & i9 +
+ /i2 & i3 & /i8 +
+ /i4 & /i8 +
+ /i5 & i6 & /i8 & /rf16 +
+ rf16 & /rf18 +
+ i3 & /i8 +
+ /i4 & /i8 & rf16 +
+ rf18
+rf17.oe = OE
+
+/rf18 := rf18 +
+ i8 & i9 +
+ /i5 & i8 +
+ i3 & i4 & /rf18 +
+ i2 & /i3 +
+ /i5 & /i7 & /o19 +
+ /i2 & i3 & /i7 +
+ /i2 & o19
+rf18.oe = OE
+
+/o19 = i4 & /o12 +
+ i5 & /i6 +
+ /i5 & i6 +
+ i8 & i9 & /rf18 +
+ i2 & /i9 & rf18 +
+ i3 & i9 +
+ /i4 & /i7 & /i8
+o19.oe = o12 & /rf18
+
diff --git a/regtests/jedutil/baseline/palce16v8/pal16r8-as-palce16v8.txt b/regtests/jedutil/baseline/palce16v8/pal16r8-as-palce16v8.txt
new file mode 100644
index 00000000000..7cfaa77832d
--- /dev/null
+++ b/regtests/jedutil/baseline/palce16v8/pal16r8-as-palce16v8.txt
@@ -0,0 +1,97 @@
+Inputs:
+
+2, 3, 4, 5, 6, 7, 8, 9, 12, 13, 14, 15, 16, 17, 18, 19
+
+Outputs:
+
+12 (Registered, Output feedback registered, Active low)
+13 (Registered, Output feedback registered, Active low)
+14 (Registered, Output feedback registered, Active low)
+15 (Registered, Output feedback registered, Active low)
+16 (Registered, Output feedback registered, Active low)
+17 (Registered, Output feedback registered, Active low)
+18 (Registered, Output feedback registered, Active low)
+19 (Registered, Output feedback registered, Active low)
+
+Equations:
+
+/rf12 := i5 & rf19 +
+ /i5 & /rf19 +
+ /i7 & /i9 & rf12 +
+ i7 & i9 & /rf12 +
+ i3 & /i4 & i5 +
+ /i3 & i4 & /i5 +
+ /i2 & i6 +
+ i2 & /i6
+rf12.oe = OE
+
+/rf13 := i8 & i9 & /rf12 +
+ /i7 & i8 +
+ i6 & i7 & /i8 & /rf13 +
+ i5 & /i7 & /i8 +
+ i5 & /i9 +
+ i4 & rf12 & rf13 +
+ /i2 & /i3 & /i9 +
+ /i4 & /i6
+rf13.oe = OE
+
+/rf14 := /i4 & /i8 & rf13 +
+ i2 & /i4 +
+ i3 & /i4 & /rf13 +
+ /i4 & i5 & i6 +
+ /i4 & /i5 & i6 & /rf14 +
+ /i4 & /i5 & /i6 & i7 +
+ i7 & i8 & rf14 +
+ /i8 & /i9
+rf14.oe = OE
+
+/rf15 := /i3 & /i4 +
+ i3 & i5 +
+ i6 & /rf14 +
+ i7 & i8 & rf14 +
+ i9 & /rf15 +
+ /i5 & /i8 +
+ i2 & rf15 +
+ i2 & i9
+rf15.oe = OE
+
+/rf16 := i5 & i9 & /rf16 +
+ /i5 & /i9 & rf16 +
+ /i2 & /i3 +
+ i2 & i3 & i4 +
+ i5 & i6 & i7 & i8 & i9 & rf15 +
+ /i5 & /i6 & /i7 & /i8 & /i9 & /rf15 +
+ i6 & /i7 +
+ i9
+rf16.oe = OE
+
+/rf17 := i9 +
+ i8 & /i9 +
+ /i2 & /rf16 +
+ /i2 & /i3 & /i9 +
+ /i3 & i4 & rf17 +
+ /i3 & i6 & i7 +
+ /i7 & /i9 +
+ i5 & rf16 & /rf17
+rf17.oe = OE
+
+/rf18 := /rf17 +
+ /i2 & /i3 & /i4 & rf17 +
+ /i2 & /rf18 +
+ i7 +
+ i8 +
+ i9 +
+ /i2 & /i3 & /i4 & /i5 +
+ i6 & i7 & /i8 & /i9
+rf18.oe = OE
+
+/rf19 := i2 +
+ /rf19 +
+ i3 +
+ /rf12 & rf19 +
+ /i5 & /i9 +
+ /i2 & i8 +
+ /i4 & i5 & rf12 +
+ i6 & /i8 & /i9
+rf19.oe = OE
+
diff --git a/regtests/jedutil/baseline/pls153/pls153.txt b/regtests/jedutil/baseline/pls153/pls153.txt
new file mode 100644
index 00000000000..4f7cf2741dc
--- /dev/null
+++ b/regtests/jedutil/baseline/pls153/pls153.txt
@@ -0,0 +1,178 @@
+Inputs:
+
+1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 18, 19
+
+Outputs:
+
+9 (Combinatorial, Output feedback output, Active low)
+13 (Combinatorial, Output feedback output, Active high)
+14 (Combinatorial, Output feedback output, Active high)
+15 (Combinatorial, Output feedback output, Active low)
+18 (Combinatorial, Output feedback output, Active high)
+19 (Combinatorial, Output feedback output, Active low)
+
+Equations:
+
+/o9 = i1 & i12 +
+ /i2 & /o13 +
+ i2 & o13 +
+ /i3 & /o14 +
+ i3 & o14 +
+ /i4 & /o15 +
+ i4 & i16 +
+ i5 & /i16 +
+ i7 & /i17 +
+ /i8 & i17 +
+ i8 & /o18 +
+ /o9 & o18 +
+ o9 & /o19 +
+ /i11 & o19 +
+ i11 +
+ i7 & /o13 +
+ i6 & i8 & /i12 & /o14 +
+ /i6 & /o9 & i11 & o14 +
+ i5 & o9 & /i11 & /o15 +
+ /i5 & o15 +
+ i4 & /i16 +
+ i3 & /i17 +
+ /i3 & i17 +
+ i2 & /o18 +
+ /i2 & o18 +
+ /i1 & o19
+o9.oe = vcc
+
+o13 = i1 & i12 +
+ /i2 & /o13 +
+ i2 & o13 +
+ /i3 & /o14 +
+ i3 & o14 +
+ i4 & i16 +
+ i5 & /i16 +
+ i16 +
+ i7 & /i17 +
+ /i8 & i17 +
+ /o9 & o18 +
+ o9 & /o19 +
+ /i11 & o19 +
+ i11 +
+ i7 & /o13 +
+ i6 & i8 & /i12 & /o14 +
+ /i6 & /o9 & i11 & o14 +
+ /i5 & o15 +
+ i4 & /i16 +
+ /i4 & i16 +
+ i3 & /i17 +
+ /i3 & i17 +
+ i2 & /o18 +
+ i1 & /o19
+o13.oe = i1 & i2 & i3 & i4 & i5 & i6 & i7 & i8
+
+o14 = i1 & i12 +
+ /i2 & /o13 +
+ i2 & o13 +
+ /i3 & /o14 +
+ /i4 & /o15 +
+ i4 & i16 +
+ i5 & /i16 +
+ i16 +
+ i7 & /i17 +
+ /i8 & i17 +
+ i8 & /o18 +
+ o9 & /o19 +
+ /i11 & o19 +
+ i11 +
+ i7 & /o13 +
+ i6 & i8 & /i12 & /o14 +
+ i5 & o9 & /i11 & /o15 +
+ /i5 & o15 +
+ i4 & /i16 +
+ /i4 & i16 +
+ i3 & /i17 +
+ /i3 & i17 +
+ i2 & /o18 +
+ /i2 & o18 +
+ /i1 & o19
+o14.oe = /i1 & /i2 & /i3 & /i4 & /i5 & /i6 & /i7 & /i8
+
+/o15 = i1 & i12 +
+ /i2 & /o13 +
+ i2 & o13 +
+ i3 & o14 +
+ /i4 & /o15 +
+ i4 & i16 +
+ i5 & /i16 +
+ i16 +
+ i7 & /i17 +
+ /i8 & i17 +
+ i8 & /o18 +
+ /o9 & o18 +
+ /i11 & o19 +
+ i11 +
+ i7 & /o13 +
+ /i6 & /o9 & i11 & o14 +
+ i5 & o9 & /i11 & /o15 +
+ /i5 & o15 +
+ i4 & /i16 +
+ /i4 & i16 +
+ i3 & /i17 +
+ /i3 & i17 +
+ i2 & /o18 +
+ i1 & /o19
+o15.oe = /o9 & /i11 & /i12 & /o13 & /o14 & /o15 & /i16 & /i17 & /o18 & /o19
+
+o18 = /i2 & /o13 +
+ i2 & o13 +
+ /i3 & /o14 +
+ i3 & o14 +
+ /i4 & /o15 +
+ i4 & i16 +
+ i5 & /i16 +
+ i16 +
+ i7 & /i17 +
+ /i8 & i17 +
+ i8 & /o18 +
+ /o9 & o18 +
+ o9 & /o19 +
+ /i11 & o19 +
+ i11 +
+ i7 & /o13 +
+ i6 & i8 & /i12 & /o14 +
+ /i6 & /o9 & i11 & o14 +
+ i5 & o9 & /i11 & /o15 +
+ /i5 & o15 +
+ i4 & /i16 +
+ /i4 & i16 +
+ i3 & /i17 +
+ /i3 & i17 +
+ /i2 & o18 +
+ i1 & /o19
+o18.oe = i11 & i12 & o13 & o14 & o15 & i16 & i17 & o18 & o19
+
+/o19 = i1 & i12 +
+ /i2 & /o13 +
+ i2 & o13 +
+ /i3 & /o14 +
+ i3 & o14 +
+ /i4 & /o15 +
+ i4 & i16 +
+ i5 & /i16 +
+ i16 +
+ i7 & /i17 +
+ /i8 & i17 +
+ i8 & /o18 +
+ /o9 & o18 +
+ o9 & /o19 +
+ /i11 & o19 +
+ i11 +
+ i6 & i8 & /i12 & /o14 +
+ /i6 & /o9 & i11 & o14 +
+ i5 & o9 & /i11 & /o15 +
+ /i5 & o15 +
+ i4 & /i16 +
+ /i4 & i16 +
+ i3 & /i17 +
+ /i3 & i17 +
+ i2 & /o18 +
+ /i1 & o19
+o19.oe = vcc
+
diff --git a/regtests/jedutil/eqns/ICT_Place/PEEL18CV8/18cv8_bi-directional_io.psf b/regtests/jedutil/eqns/ICT_Place/PEEL18CV8/18cv8_bi-directional_io.psf
new file mode 100644
index 00000000000..6c1ed922165
--- /dev/null
+++ b/regtests/jedutil/eqns/ICT_Place/PEEL18CV8/18cv8_bi-directional_io.psf
@@ -0,0 +1,64 @@
+Title 'PEEL18CV8 Test Data'
+Designer 'MAMEDev'
+Date '10-7-2012'
+
+Description
+ Determine Bi-directional IO fuses.
+End_Desc;
+
+PEEL18CV8
+
+I1 PIN 1
+I2 PIN 2
+I3 PIN 3
+I4 PIN 4
+I5 PIN 5
+I6 PIN 6
+I7 PIN 7
+I8 PIN 8
+I9 PIN 9
+I11 PIN 11
+
+IOC (12 'O12' POS OUTCOM FEED_PIN)
+IOC (13 'I13' POS IN FEED_PIN)
+IOC (14 'RF14' POS REG FEED_PIN)
+IOC (15 'I15' NEG IN FEED_PIN)
+IOC (16 'RF16' NEG REG FEED_PIN)
+IOC (17 'I17' POS IN FEED_PIN)
+IOC (18 'O18' NEG OUTCOM FEED_PIN)
+IOC (19 'I19' POS IN FEED_PIN)
+
+
+AR NODE 21; " Asynchronous reset
+SP NODE 22; " Synchronous reset
+
+Define
+
+EQUATIONS
+
+AR = 0;
+SP = 0;
+
+O12.COM = I1 & /I2 #
+ I13 & /RF14 & RF16 #
+ /I3 & /I4 & /I5 & I6 #
+ I15 & RF14 & /RF16 #
+ /O18;
+O12.OE = O18;
+
+RF14.REG = I11 & /RF14 #
+ O12 & /RF16 & O18 #
+ RF16 & /O18;
+RF14.OE = /O12;
+
+RF16.REG = I13 & RF16 #
+ /O12 & /RF14 & /O18 #
+ O12 & RF14;
+RF16.OE = O18;
+
+O18.COM = /I7 & I8 & O12 #
+ /I9 & /I11 & RF14 #
+ I19 & /I15 & RF16 #
+ /O12 #
+ /RF14 & /RF16;
+O18.OE = 1; " output always enabled
diff --git a/regtests/jedutil/eqns/ICT_Place/PEEL18CV8/18cv8_combinatorial_feedback.psf b/regtests/jedutil/eqns/ICT_Place/PEEL18CV8/18cv8_combinatorial_feedback.psf
new file mode 100644
index 00000000000..f99de383741
--- /dev/null
+++ b/regtests/jedutil/eqns/ICT_Place/PEEL18CV8/18cv8_combinatorial_feedback.psf
@@ -0,0 +1,62 @@
+Title 'PEEL18CV8 Combinatorial Feedback Test Data'
+Designer 'MAMEDev'
+Date '11-11-2012'
+
+Description
+ Determine Combinatorial Feedback fuses.
+End_Desc;
+
+PEEL18CV8
+
+I1 PIN 1
+I2 PIN 2
+I3 PIN 3
+I4 PIN 4
+I5 PIN 5
+I6 PIN 6
+I7 PIN 7
+I8 PIN 8
+I9 PIN 9
+I11 PIN 11
+
+IOC (12 'I12' POS IN FEED_PIN)
+IOC (13 'RF13' NEG REG FEED_OR)
+IOC (14 'I14' POS IN FEED_PIN)
+IOC (15 'RF15' POS REG FEED_OR)
+IOC (16 'I16' NEG IN FEED_PIN)
+IOC (17 'O17' POS COM FEED_OR)
+IOC (18 'I18' NEG IN FEED_PIN)
+IOC (19 'O19' NEG COM FEED_OR)
+
+
+AR NODE 21; " Asynchronous reset
+SP NODE 22; " Synchronous reset
+
+Define
+
+EQUATIONS
+
+AR = 0;
+SP = 0;
+
+RF13.REG = I1 & /I2 & O19 #
+ I12 & /RF15 #
+ /I3 & /I4 & /I5 & I6 #
+ I14 & RF15 #
+ /O17 & /O19;
+RF13.OE = O17;
+
+RF15.REG = I11 & /I12 & RF13 & /O17 #
+ /O19 #
+ O17 & O19;
+RF15.OE = /RF13;
+
+O17.COM = /RF13 & RF15 & I16 & O19 #
+ RF13 & /RF15 #
+ /O19;
+O17.OE = 1;
+
+O19.COM = /I7 & I8 & /RF13 & /RF15 #
+ /I9 & /I11 & RF15 #
+ RF13 & I16 & /O17 & /I18;
+O19.OE = O17; \ No newline at end of file
diff --git a/regtests/jedutil/eqns/ICT_Place/PEEL18CV8/18cv8_register_feedback.psf b/regtests/jedutil/eqns/ICT_Place/PEEL18CV8/18cv8_register_feedback.psf
new file mode 100644
index 00000000000..5b22ee26440
--- /dev/null
+++ b/regtests/jedutil/eqns/ICT_Place/PEEL18CV8/18cv8_register_feedback.psf
@@ -0,0 +1,62 @@
+Title 'PEEL18CV8 Register Feedback Test Data'
+Designer 'MAMEDev'
+Date '11-25-2012'
+
+Description
+ Determine Register Feedback fuses.
+End_Desc;
+
+PEEL18CV8
+
+I1 PIN 1
+I2 PIN 2
+I3 PIN 3
+I4 PIN 4
+I5 PIN 5
+I6 PIN 6
+I7 PIN 7
+I8 PIN 8
+I9 PIN 9
+I11 PIN 11
+
+IOC (12 'I12' POS IN FEED_PIN)
+IOC (13 'O13' POS COM FEED_REG)
+IOC (14 'I14' POS IN FEED_PIN)
+IOC (15 'RF15' NEG REG FEED_REG)
+IOC (16 'I16' NEG IN FEED_PIN)
+IOC (17 'O17' NEG COM FEED_REG)
+IOC (18 'I18' NEG IN FEED_PIN)
+IOC (19 'RF19' POS REG FEED_REG)
+
+
+AR NODE 21; " Asynchronous reset
+SP NODE 22; " Synchronous reset
+
+Define
+
+EQUATIONS
+
+AR = 0;
+SP = 0;
+
+O13.COM = I3 & O17 #
+ /I9 & /RF19 #
+ I7 & RF19 #
+ /I12 & RF15 #
+ /RF15 & /O17;
+O13.OE = 1;
+
+RF15.REG = /O13 & RF19 #
+ /O17 #
+ O13 & O17 & /RF19;
+RF15.OE = O17;
+
+O17.COM = I1 & /O13 & I16 & /RF15 #
+ RF15 & RF19 #
+ O13;
+O17.OE = /RF19;
+
+RF19.REG = I8 & RF15 & O17 #
+ I1 & I2 & /RF15 #
+ O13 & /O17;
+RF19.OE = /O13; \ No newline at end of file
diff --git a/regtests/jedutil/eqns/ICT_Place/readme.txt b/regtests/jedutil/eqns/ICT_Place/readme.txt
new file mode 100644
index 00000000000..a234666e26d
--- /dev/null
+++ b/regtests/jedutil/eqns/ICT_Place/readme.txt
@@ -0,0 +1 @@
+These files are for use with the utilities place and plcom which are included with ICT Place. The place tool was used to configure the pins and the plcom tool was used to create the jed files. (Under Windows 7 64-bit the place tool will not run under the Windows XP VM downloadable for free with Windows 7, but will run under DOSBox.)
diff --git a/regtests/jedutil/eqns/Opal_Jr/pal10h8/pal10h8.eqn b/regtests/jedutil/eqns/Opal_Jr/pal10h8/pal10h8.eqn
new file mode 100644
index 00000000000..690cdcf090a
--- /dev/null
+++ b/regtests/jedutil/eqns/Opal_Jr/pal10h8/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/regtests/jedutil/eqns/Opal_Jr/pal10l8/pal10l8.eqn b/regtests/jedutil/eqns/Opal_Jr/pal10l8/pal10l8.eqn
new file mode 100644
index 00000000000..b316ec32d26
--- /dev/null
+++ b/regtests/jedutil/eqns/Opal_Jr/pal10l8/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/regtests/jedutil/eqns/Opal_Jr/pal10p8/pal10p8.eqn b/regtests/jedutil/eqns/Opal_Jr/pal10p8/pal10p8.eqn
new file mode 100644
index 00000000000..f3d9246c0c5
--- /dev/null
+++ b/regtests/jedutil/eqns/Opal_Jr/pal10p8/pal10p8.eqn
@@ -0,0 +1,30 @@
+CHIP pal10p8 PAL10P8
+
+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 = i9 & i11 +
+ /i1 & i2 & i3 & i4 & i5 & i6 & /i7 & i8
+
+o13 = i9 & /i11 +
+ i1 & /i2 & i3 & i4 & i5 & /i6 & i7 & i8
+
+/o14 = /i9 & /i11 +
+ i1 & i2 & /i3 & i4 & /i5 & i6 & i7 & i8
+
+/o15 = /i9 & i11 +
+ i1 & i2 & i3 & /i4 & i5 & i6 & /i7 & i8
+
+o16 = i9 & /i11 +
+ i1 & i2 & i3 & i4 & i5 & /i6 & i7 & /i8
+
+/o17 = i9 & i11 +
+ /i1 & /i2 & i3 & i4 & i5 & i6 & /i7 & /i8
+
+/o18 = /i9 & /i11 +
+ i1 & i2 & i3 & /i4 & /i5 & i6 & i7 & i8
+
+/o19 = /i9 & i11 +
+ i1 & /i2 & i3 & /i4 & i5 & /i6 & i7 & /i8
diff --git a/regtests/jedutil/eqns/Opal_Jr/pal12h10/pal12h10.eqn b/regtests/jedutil/eqns/Opal_Jr/pal12h10/pal12h10.eqn
new file mode 100644
index 00000000000..9001a39398c
--- /dev/null
+++ b/regtests/jedutil/eqns/Opal_Jr/pal12h10/pal12h10.eqn
@@ -0,0 +1,46 @@
+chip pal12h10 PAL12H10
+
+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 = /i1 & /i2 & /i3 +
+ /i4 & /i5 & /i6
+o14.oe = vcc
+
+o15 = /i7 +
+ /i8
+o15.oe = vcc
+
+o16 = /i9 & /i10 +
+ /i13
+o16.oe = vcc
+
+o17 = i1 & i2 & i3 +
+ i4 & i5 & i6
+o17.oe = vcc
+
+o18 = i7 +
+ i8
+o18.oe = vcc
+
+o19 = i9 & i10 +
+ i13
+o19.oe = vcc
+
+o20 = /i2 & i5 & i6 & /i7 +
+ i3 & i6 & i7 & i13
+o20.oe = vcc
+
+o21 = i5 & i6 & /i7 & i11 +
+ /i1 & i3 & i6 & i7 & i10
+o21.oe = vcc
+
+o22 = i4 & i13 +
+ i9 & /i10 & /i11
+o22.oe = vcc
+
+o23 = /i4 & i10 & i11 +
+ i1 & /i13
+o23.oe = vcc
diff --git a/regtests/jedutil/eqns/Opal_Jr/pal12h6/pal12h6.eqn b/regtests/jedutil/eqns/Opal_Jr/pal12h6/pal12h6.eqn
new file mode 100644
index 00000000000..43b72ca6dc3
--- /dev/null
+++ b/regtests/jedutil/eqns/Opal_Jr/pal12h6/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/regtests/jedutil/eqns/Opal_Jr/pal12l10/pal12l10.eqn b/regtests/jedutil/eqns/Opal_Jr/pal12l10/pal12l10.eqn
new file mode 100644
index 00000000000..8eb50d8bcfe
--- /dev/null
+++ b/regtests/jedutil/eqns/Opal_Jr/pal12l10/pal12l10.eqn
@@ -0,0 +1,46 @@
+chip pal12l10 PAL12L10
+
+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 = /i1 & /i2 & /i3 +
+ /i4 & /i5 & /i6
+o14.oe = vcc
+
+/o15 = /i7 +
+ /i8
+o15.oe = vcc
+
+/o16 = /i9 & /i10 +
+ /i13
+o16.oe = vcc
+
+/o17 = i1 & i2 & i3 +
+ i4 & i5 & i6
+o17.oe = vcc
+
+/o18 = i7 +
+ i8
+o18.oe = vcc
+
+/o19 = i9 & i10 +
+ i13
+o19.oe = vcc
+
+/o20 = /i2 & i5 & i6 & /i7 +
+ i3 & i6 & i7 & i13
+o20.oe = vcc
+
+/o21 = i5 & i6 & /i7 & i11 +
+ /i1 & i3 & i6 & i7 & i10
+o21.oe = vcc
+
+/o22 = i4 & i13 +
+ i9 & /i10 & /i11
+o22.oe = vcc
+
+/o23 = /i4 & i10 & i11 +
+ i1 & /i13
+o23.oe = vcc
diff --git a/regtests/jedutil/eqns/Opal_Jr/pal12l6/pal12l6.eqn b/regtests/jedutil/eqns/Opal_Jr/pal12l6/pal12l6.eqn
new file mode 100644
index 00000000000..a1867dd827a
--- /dev/null
+++ b/regtests/jedutil/eqns/Opal_Jr/pal12l6/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/regtests/jedutil/eqns/Opal_Jr/pal12p6/pal12p6.eqn b/regtests/jedutil/eqns/Opal_Jr/pal12p6/pal12p6.eqn
new file mode 100644
index 00000000000..e57f751943f
--- /dev/null
+++ b/regtests/jedutil/eqns/Opal_Jr/pal12p6/pal12p6.eqn
@@ -0,0 +1,28 @@
+CHIP pal12p6 PAL12P6
+
+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 = i9 & /i11 +
+ i1 & /i2 & i3 & i4 & i5 & /i6 & i7 & i8 +
+ i12 +
+ /i19
+
+/o14 = /i9 & /i11 +
+ i1 & i2 & /i3 & i4 & /i5 & i6 & i7 & i8
+
+/o15 = /i9 & i11 +
+ i1 & i2 & i3 & /i4 & i5 & i6 & /i7 & i8
+
+o16 = i9 & /i11 +
+ i1 & i2 & i3 & i4 & i5 & /i6 & i7 & /i8
+
+/o17 = i9 & i11 +
+ /i1 & /i2 & i3 & i4 & i5 & i6 & /i7 & /i8
+
+/o18 = /i9 & /i11 +
+ i1 & i2 & i3 & /i4 & /i5 & i6 & i7 & i8 +
+ /i12 +
+ i19
diff --git a/regtests/jedutil/eqns/Opal_Jr/pal14h4/pal14h4.eqn b/regtests/jedutil/eqns/Opal_Jr/pal14h4/pal14h4.eqn
new file mode 100644
index 00000000000..7db1b42ee27
--- /dev/null
+++ b/regtests/jedutil/eqns/Opal_Jr/pal14h4/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/regtests/jedutil/eqns/Opal_Jr/pal14h8/pal14h8.eqn b/regtests/jedutil/eqns/Opal_Jr/pal14h8/pal14h8.eqn
new file mode 100644
index 00000000000..dca7cc0eeac
--- /dev/null
+++ b/regtests/jedutil/eqns/Opal_Jr/pal14h8/pal14h8.eqn
@@ -0,0 +1,42 @@
+chip pal14h8 PAL14H8
+
+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 +
+ /i5 & /i6
+o15.oe = vcc
+
+o16 = /i7 +
+ /i8
+o16.oe = vcc
+
+o17 = /i9 & /i10 +
+ /i13
+o17.oe = vcc
+
+o18 = i1 & i2 & i3 +
+ i4 & i5 & i6 & /i14
+o18.oe = vcc
+
+o19 = i7 +
+ i8
+o19.oe = vcc
+
+o20 = i9 & i10 & i14 +
+ i13
+o20.oe = vcc
+
+o21 = /i2 & i5 & i6 & /i7 +
+ i3 & i6 & i7 & i13 & i23
+o21.oe = vcc
+
+o22 = i5 & i6 +
+ /i7 & i11 +
+ /i23 +
+ /i1 & i3 & i6 & i7 & i10
+o22.oe = vcc
diff --git a/regtests/jedutil/eqns/Opal_Jr/pal14l4/pal14l4.eqn b/regtests/jedutil/eqns/Opal_Jr/pal14l4/pal14l4.eqn
new file mode 100644
index 00000000000..0e63b68c612
--- /dev/null
+++ b/regtests/jedutil/eqns/Opal_Jr/pal14l4/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/regtests/jedutil/eqns/Opal_Jr/pal14p4/pal14p4.eqn b/regtests/jedutil/eqns/Opal_Jr/pal14p4/pal14p4.eqn
new file mode 100644
index 00000000000..7a2d65113a4
--- /dev/null
+++ b/regtests/jedutil/eqns/Opal_Jr/pal14p4/pal14p4.eqn
@@ -0,0 +1,26 @@
+CHIP pal14p4 PAL14P4
+
+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 = i9 & i11 +
+ i1 & /i2 & i3 & i4 & i5 & /i6 & i7 & i8 +
+ i12 & i18 +
+ /i13 & /i19
+
+o15 = /i9 & i11 +
+ i1 & i2 & i3 & /i4 & i5 & i6 & /i7 & i8 +
+ i12 & /i18 +
+ i13 & /i19
+
+o16 = i9 & /i11 +
+ i1 & i2 & i3 & i4 & i5 & /i6 & i7 & /i8 +
+ /i12 & /i18 +
+ /i13 & i19
+
+/o17 = /i9 & /i11 +
+ i1 & i2 & i3 & /i4 & /i5 & i6 & i7 & i8 +
+ /i12 & i13 +
+ /i18 & i19
diff --git a/regtests/jedutil/eqns/Opal_Jr/pal16c1/pal16c1.eqn b/regtests/jedutil/eqns/Opal_Jr/pal16c1/pal16c1.eqn
new file mode 100644
index 00000000000..d2566d34cb4
--- /dev/null
+++ b/regtests/jedutil/eqns/Opal_Jr/pal16c1/pal16c1.eqn
@@ -0,0 +1,23 @@
+chip 2000 PAL16C1
+
+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 +
+ /i1 & /i2 +
+ /i3 & /i4 +
+ /i5 & /i6 +
+ /i7 & /i8 +
+ /i9 & /i11 +
+ /i12 & /i13 +
+ /i14 & /i17 +
+ /i18 & /i19
diff --git a/regtests/jedutil/eqns/Opal_Jr/pal16h2/pal16h2.eqn b/regtests/jedutil/eqns/Opal_Jr/pal16h2/pal16h2.eqn
new file mode 100644
index 00000000000..cd597b209c2
--- /dev/null
+++ b/regtests/jedutil/eqns/Opal_Jr/pal16h2/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/regtests/jedutil/eqns/Opal_Jr/pal16h6/pal16h6.eqn b/regtests/jedutil/eqns/Opal_Jr/pal16h6/pal16h6.eqn
new file mode 100644
index 00000000000..0da230f42ad
--- /dev/null
+++ b/regtests/jedutil/eqns/Opal_Jr/pal16h6/pal16h6.eqn
@@ -0,0 +1,38 @@
+chip pal16h6 PAL16H6
+
+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 i15=15 o16=16 o17=17 o18=18 o19=19 o20=20 o21=21 i22=22 i23=23 VCC=24
+
+equations
+
+o16 = /i1 & /i2 +
+ /i3 & /i7 +
+ /i4 & /i8 +
+ /i5 & /i6
+o16.oe = vcc
+
+o17 = /i9 & /i10 +
+ /i13 & /i15 +
+ i1 & i2 & i3 +
+ i4 & i5 & i6 & /i14
+o17.oe = vcc
+
+o18 = i7 +
+ i8 & i15
+o18.oe = vcc
+
+o19 = i9 & i10 & i14 +
+ i13 & /i22
+o19.oe = vcc
+
+o20 = /i2 & i5 +
+ i6 & /i7 +
+ i3 & i6 +
+ i7 & i13 & i23
+o20.oe = vcc
+
+o21 = i5 & i6 & i22 +
+ /i7 & i11 +
+ /i23 +
+ /i1 & i3 & i6 & i7 & i10
+o21.oe = vcc
diff --git a/regtests/jedutil/eqns/Opal_Jr/pal16l2/pal16l2.eqn b/regtests/jedutil/eqns/Opal_Jr/pal16l2/pal16l2.eqn
new file mode 100644
index 00000000000..d68a83e9173
--- /dev/null
+++ b/regtests/jedutil/eqns/Opal_Jr/pal16l2/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/regtests/jedutil/eqns/Opal_Jr/pal16l6/pal16l6.eqn b/regtests/jedutil/eqns/Opal_Jr/pal16l6/pal16l6.eqn
new file mode 100644
index 00000000000..fd5fae6875a
--- /dev/null
+++ b/regtests/jedutil/eqns/Opal_Jr/pal16l6/pal16l6.eqn
@@ -0,0 +1,38 @@
+chip pal16l6 PAL16L6
+
+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 i15=15 o16=16 o17=17 o18=18 o19=19 o20=20 o21=21 i22=22 i23=23 VCC=24
+
+equations
+
+/o16 = /i1 & /i2 +
+ /i3 & /i7 +
+ /i4 & /i8 +
+ /i5 & /i6
+o16.oe = vcc
+
+/o17 = /i9 & /i10 +
+ /i13 & /i15 +
+ i1 & i2 & i3 +
+ i4 & i5 & i6 & /i14
+o17.oe = vcc
+
+/o18 = i7 +
+ i8 & i15
+o18.oe = vcc
+
+/o19 = i9 & i10 & i14 +
+ i13 & /i22
+o19.oe = vcc
+
+/o20 = /i2 & i5 +
+ i6 & /i7 +
+ i3 & i6 +
+ i7 & i13 & i23
+o20.oe = vcc
+
+/o21 = i5 & i6 & i22 +
+ /i7 & i11 +
+ /i23 +
+ /i1 & i3 & i6 & i7 & i10
+o21.oe = vcc
diff --git a/regtests/jedutil/eqns/Opal_Jr/pal16l8/pal16l8.eqn b/regtests/jedutil/eqns/Opal_Jr/pal16l8/pal16l8.eqn
new file mode 100644
index 00000000000..6daddee92dd
--- /dev/null
+++ b/regtests/jedutil/eqns/Opal_Jr/pal16l8/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/regtests/jedutil/eqns/Opal_Jr/pal16p2/pal16p2.eqn b/regtests/jedutil/eqns/Opal_Jr/pal16p2/pal16p2.eqn
new file mode 100644
index 00000000000..5f72eeb1fcb
--- /dev/null
+++ b/regtests/jedutil/eqns/Opal_Jr/pal16p2/pal16p2.eqn
@@ -0,0 +1,24 @@
+CHIP pal16p2 PAL16P2
+
+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 = /i9 & i11 +
+ i1 & i2 & i3 & /i4 & i5 & i6 & /i7 & i8 +
+ i12 & /i18 +
+ i13 & /i19 +
+ i14 +
+ /i18 +
+ /i1 & /i6 +
+ /i2 & /i3
+
+/o16 = i9 & /i11 +
+ i1 & i2 & i3 & i4 & i5 & /i6 & i7 & /i8 +
+ /i12 & /i18 +
+ /i13 & i19 +
+ /i14 +
+ i18 +
+ /i4 +
+ i6 & i8
diff --git a/regtests/jedutil/eqns/Opal_Jr/pal16p8/pal16p8.eqn b/regtests/jedutil/eqns/Opal_Jr/pal16p8/pal16p8.eqn
new file mode 100644
index 00000000000..f69ef09a7cd
--- /dev/null
+++ b/regtests/jedutil/eqns/Opal_Jr/pal16p8/pal16p8.eqn
@@ -0,0 +1,78 @@
+chip pal16p8 PAL16P8
+
+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 +
+ /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/regtests/jedutil/eqns/Opal_Jr/pal16r4/pal16r4.eqn b/regtests/jedutil/eqns/Opal_Jr/pal16r4/pal16r4.eqn
new file mode 100644
index 00000000000..9a62f9ec02a
--- /dev/null
+++ b/regtests/jedutil/eqns/Opal_Jr/pal16r4/pal16r4.eqn
@@ -0,0 +1,82 @@
+chip pal16r4 PAL16R4
+
+CLK=1 i2=2 i3=3 i4=4 i5=5 i6=6 i7=7 i8=8 i9=9 GND=10
+/OE=11 o12=12 o13=13 rf14=14 rf15=15 rf16=16 rf17=17 o18=18 o19=19 VCC=20
+
+equations
+
+/o12 = /i2 & /i3 +
+ i4 & o13 +
+ i3 +
+ /i6 +
+ i8 +
+ /i9 +
+ i7 & /o13
+o12.oe = rf14
+
+/o13 = /rf14 +
+ /i9 +
+ i8 +
+ /i7 +
+ /i6 & /rf14 +
+ i5 +
+ i4
+o13.oe = i2 & rf14
+
+/rf14 := /rf15 +
+ /i8 +
+ i8 +
+ /i2 & /rf15 +
+ /i2 +
+ i2 & /i8 & rf15 +
+ /i4 +
+ i3
+rf14.oe = OE
+
+/rf15 := i3 & i6 & i7 +
+ i6 & rf16 +
+ i3 & /rf16 +
+ i7 +
+ /i4 +
+ i6 & i7 +
+ i4 & i7 +
+ /i2 & /i7
+rf15.oe = OE
+
+/rf16 := /i3 & /rf17 +
+ /i4 +
+ /i3 & /i3 +
+ /i3 & i4 +
+ /i7 & rf17 +
+ /i7 +
+ i4 +
+ i2 & i3
+rf16.oe = OE
+
+/rf17 := i2 & i5 & i6 & /i7 +
+ i2 & /o18 +
+ i5 +
+ i6 +
+ /i7 & o18 +
+ i2 & /i7 +
+ i5 & i6 +
+ /i3
+rf17.oe = OE
+
+/o18 = /i2 & i5 & i6 & /i7 +
+ i3 & i6 & i7 +
+ i3 +
+ /i2 & /i7 +
+ /i3 +
+ i5 & i6 & /i7 +
+ i7
+o18.oe = vcc
+
+/o19 = i5 & i6 & /i7 +
+ i3 & i6 & i7 +
+ i5 +
+ i6 +
+ i7 +
+ /i4 +
+ /i7
+o19.oe = vcc
diff --git a/regtests/jedutil/eqns/Opal_Jr/pal16r6/pal16r6.eqn b/regtests/jedutil/eqns/Opal_Jr/pal16r6/pal16r6.eqn
new file mode 100644
index 00000000000..42f444f5e24
--- /dev/null
+++ b/regtests/jedutil/eqns/Opal_Jr/pal16r6/pal16r6.eqn
@@ -0,0 +1,84 @@
+chip pal16r6 PAL16R6
+
+CLK=1 i2=2 i3=3 i4=4 i5=5 i6=6 i7=7 i8=8 i9=9 GND=10
+/OE=11 o12=12 rf13=13 rf14=14 rf15=15 rf16=16 rf17=17 rf18=18 o19=19 VCC=20
+
+equations
+
+/o12 = /i2 & /i3 +
+ i4 & rf13 +
+ i3 +
+ /i6 +
+ i8 +
+ /i9 +
+ i7 & /rf13
+o12.oe = rf14
+
+/rf13 := /rf14 +
+ /i9 +
+ i8 +
+ /i7 +
+ /i6 & /rf14 +
+ i5 & rf14 +
+ i4 +
+ /i2
+rf13.oe = OE
+
+/rf14 := /rf15 +
+ /i8 +
+ i8 +
+ /i2 & /rf15 +
+ /i2 +
+ i2 & /i8 & rf15 +
+ /i4 +
+ i3
+rf14.oe = OE
+
+/rf15 := i3 & i6 & i7 +
+ i6 & rf16 +
+ i3 & /rf16 +
+ i7 +
+ /i4 +
+ i6 & i7 +
+ i4 & i7 +
+ /i2 & /i7
+rf15.oe = OE
+
+/rf16 := /i3 & /rf17 +
+ /i4 +
+ /i3 +
+ /i3 & i4 +
+ /i7 & rf17 +
+ /i7 +
+ i4 +
+ i2 & i3
+rf16.oe = OE
+
+/rf17 := i2 & i5 & i6 & /i7 +
+ i2 & /rf18 +
+ i5 +
+ i6 +
+ /i7 & rf18 +
+ i2 & /i7 +
+ i5 & i6 +
+ /i3
+rf17.oe = OE
+
+/rf18 := /i2 & i5 & i6 & /i7 +
+ i3 & i6 & i7 +
+ i3 +
+ /i2 & /i7 +
+ /i3 +
+ i5 & i6 & /i7 +
+ i7 +
+ i4
+rf18.oe = OE
+
+/o19 = i5 & i6 & /i7 +
+ i3 & i6 & i7 +
+ i5 +
+ i6 +
+ i7 +
+ /i4 +
+ /i7
+o19.oe = vcc
diff --git a/regtests/jedutil/eqns/Opal_Jr/pal16r8/pal16r8.eqn b/regtests/jedutil/eqns/Opal_Jr/pal16r8/pal16r8.eqn
new file mode 100644
index 00000000000..5987e81c2dc
--- /dev/null
+++ b/regtests/jedutil/eqns/Opal_Jr/pal16r8/pal16r8.eqn
@@ -0,0 +1,86 @@
+chip pal16r8 PAL16R8
+
+CLK=1 i2=2 i3=3 i4=4 i5=5 i6=6 i7=7 i8=8 i9=9 GND=10
+/OE=11 rf12=12 rf13=13 rf14=14 rf15=15 rf16=16 rf17=17 rf18=18 rf19=19 VCC=20
+
+equations
+
+/rf12 := /i2 & /i3 +
+ i4 & rf13 +
+ i3 +
+ /i6 +
+ i8 +
+ /i9 +
+ i7 & /rf13 +
+ i5
+rf12.oe = OE
+
+/rf13 := /rf14 +
+ /i9 +
+ i8 +
+ /i7 +
+ /i6 & rf14 +
+ i5 +
+ i4 +
+ /i3
+rf13.oe = OE
+
+/rf14 := /rf15 +
+ /i8 +
+ i8 +
+ /i2 & /rf15 +
+ /i2 +
+ i2 & /i8 & rf15 +
+ /i4 +
+ i3
+rf14.oe = OE
+
+/rf15 := i3 & i6 & i7 +
+ i6 & rf16 +
+ i3 & /rf16 +
+ i7 +
+ /i4 +
+ i6 & i7 +
+ i4 & i7 +
+ /i2 & /i7
+rf15.oe = OE
+
+/rf16 := /i3 & /rf17 +
+ /i4 +
+ /i3 +
+ /i3 & i4 +
+ /i7 & rf17 +
+ /i7 +
+ i4 +
+ i2 & i3
+rf16.oe = OE
+
+/rf17 := i2 & i5 & i6 & /i7 +
+ i2 & /rf18 +
+ i5 +
+ i6 +
+ /i7 & rf18 +
+ i2 & /i7 +
+ i5 & i6 +
+ /i3
+rf17.oe = OE
+
+/rf18 := /i2 & i5 & i6 & /i7 +
+ i3 & i6 & i7 +
+ i3 & rf19 +
+ /i2 & /i7 +
+ /i3 & /rf19 +
+ i5 & i6 & /i7 +
+ i7 +
+ /i4
+rf18.oe = OE
+
+/rf19 := i5 & i6 & /i7 +
+ i3 & i6 & i7 +
+ i5 & rf12 +
+ i6 +
+ i7 +
+ /i4 & /rf12 +
+ /i7 +
+ i2
+rf19.oe = OE
diff --git a/regtests/jedutil/eqns/Opal_Jr/pal16rp4/pal16rp4.eqn b/regtests/jedutil/eqns/Opal_Jr/pal16rp4/pal16rp4.eqn
new file mode 100644
index 00000000000..a6e6131618f
--- /dev/null
+++ b/regtests/jedutil/eqns/Opal_Jr/pal16rp4/pal16rp4.eqn
@@ -0,0 +1,82 @@
+chip pal16rp4 PAL16RP4
+
+CLK=1 i2=2 i3=3 i4=4 i5=5 i6=6 i7=7 i8=8 i9=9 GND=10
+/OE=11 o12=12 o13=13 rf14=14 rf15=15 rf16=16 rf17=17 o18=18 o19=19 VCC=20
+
+equations
+
+o12 = /i2 & /i3 +
+ i4 & o13 +
+ i3 +
+ /i6 +
+ i8 +
+ /i9 +
+ i7 & /o13
+o12.oe = rf14
+
+/o13 = /rf14 +
+ /i9 +
+ i8 +
+ /i7 +
+ /i6 & /rf14 +
+ i5 +
+ i4
+o13.oe = i2 & rf14
+
+/rf14 := /rf15 +
+ /i8 +
+ i8 +
+ /i2 & /rf15 +
+ /i2 +
+ i2 & /i8 & rf15 +
+ /i4 +
+ i3
+rf14.oe = OE
+
+/rf15 := i3 & i6 & i7 +
+ i6 & rf16 +
+ i3 & /rf16 +
+ i7 +
+ /i4 +
+ i6 & i7 +
+ i4 & i7 +
+ /i2 & /i7
+rf15.oe = OE
+
+rf16 := /i3 & /rf17 +
+ /i4 +
+ /i3 +
+ /i3 & i4 +
+ /i7 & rf17 +
+ /i7 +
+ i4 +
+ i2 & i3
+rf16.oe = OE
+
+/rf17 := i2 & i5 & i6 & /i7 +
+ i2 & /o18 +
+ i5 +
+ i6 +
+ /i7 & o18 +
+ i2 & /i7 +
+ i5 & i6 +
+ /i3
+rf17.oe = OE
+
+o18 = /i2 & i5 & i6 & /i7 +
+ i3 & i6 & i7 +
+ i3 +
+ /i2 & /i7 +
+ /i3 +
+ i5 & i6 & /i7 +
+ i7
+o18.oe = vcc
+
+/o19 = i5 & i6 & /i7 +
+ i3 & i6 & i7 +
+ i5 +
+ i6 +
+ i7 +
+ /i4 +
+ /i7
+o19.oe = vcc
diff --git a/regtests/jedutil/eqns/Opal_Jr/pal16rp6/pal16rp6.eqn b/regtests/jedutil/eqns/Opal_Jr/pal16rp6/pal16rp6.eqn
new file mode 100644
index 00000000000..239365c9a88
--- /dev/null
+++ b/regtests/jedutil/eqns/Opal_Jr/pal16rp6/pal16rp6.eqn
@@ -0,0 +1,84 @@
+chip pal16rp6 PAL16RP6
+
+CLK=1 i2=2 i3=3 i4=4 i5=5 i6=6 i7=7 i8=8 i9=9 GND=10
+/OE=11 o12=12 rf13=13 rf14=14 rf15=15 rf16=16 rf17=17 rf18=18 o19=19 VCC=20
+
+equations
+
+o12 = /i2 & /i3 +
+ i4 & rf13 +
+ i3 +
+ /i6 +
+ i8 +
+ /i9 +
+ i7 & /rf13
+o12.oe = rf14
+
+/rf13 := /rf14 +
+ /i9 +
+ i8 +
+ /i7 +
+ /i6 & /rf14 +
+ i5 & rf14 +
+ i4 +
+ /i2
+rf13.oe = OE
+
+/rf14 := /rf15 +
+ /i8 +
+ i8 +
+ /i2 & /rf15 +
+ /i2 +
+ i2 & /i8 & rf15 +
+ /i4 +
+ i3
+rf14.oe = OE
+
+rf15 := i3 & i6 & i7 +
+ i6 & rf16 +
+ i3 & /rf16 +
+ i7 +
+ /i4 +
+ i6 & i7 +
+ i4 & i7 +
+ /i2 & /i7
+rf15.oe = OE
+
+rf16 := /i3 & /rf17 +
+ /i4 +
+ /i3 +
+ /i3 & i4 +
+ /i7 & rf17 +
+ /i7 +
+ i4 +
+ i2 & i3
+rf16.oe = OE
+
+/rf17 := i2 & i5 & i6 & /i7 +
+ i2 & /rf18 +
+ i5 +
+ i6 +
+ /i7 & rf18 +
+ i2 & /i7 +
+ i5 & i6 +
+ /i3
+rf17.oe = OE
+
+/rf18 := /i2 & i5 & i6 & /i7 +
+ i3 & i6 & i7 +
+ i3 +
+ /i2 & /i7 +
+ /i3 +
+ i5 & i6 & /i7 +
+ i7 +
+ i4
+rf18.oe = OE
+
+o19 = i5 & i6 & /i7 +
+ i3 & i6 & i7 +
+ i5 +
+ i6 +
+ i7 +
+ /i4 +
+ /i7
+o19.oe = vcc
diff --git a/regtests/jedutil/eqns/Opal_Jr/pal16rp8/pal16rp8.eqn b/regtests/jedutil/eqns/Opal_Jr/pal16rp8/pal16rp8.eqn
new file mode 100644
index 00000000000..02ca2ac9462
--- /dev/null
+++ b/regtests/jedutil/eqns/Opal_Jr/pal16rp8/pal16rp8.eqn
@@ -0,0 +1,86 @@
+chip pal16rp8 PAL16RP8
+
+CLK=1 i2=2 i3=3 i4=4 i5=5 i6=6 i7=7 i8=8 i9=9 GND=10
+/OE=11 rf12=12 rf13=13 rf14=14 rf15=15 rf16=16 rf17=17 rf18=18 rf19=19 VCC=20
+
+equations
+
+/rf12 := /i2 & /i3 +
+ i4 & rf13 +
+ i3 +
+ /i6 +
+ i8 +
+ /i9 +
+ i7 & /rf13 +
+ i5
+rf12.oe = OE
+
+/rf13 := /rf14 +
+ /i9 +
+ i8 +
+ /i7 +
+ /i6 & rf14 +
+ i5 +
+ i4 +
+ /i3
+rf13.oe = OE
+
+rf14 := /rf15 +
+ /i8 +
+ i8 +
+ /i2 & /rf15 +
+ /i2 +
+ i2 & /i8 & rf15 +
+ /i4 +
+ i3
+rf14.oe = OE
+
+/rf15 := i3 & i6 & i7 +
+ i6 & rf16 +
+ i3 & /rf16 +
+ i7 +
+ /i4 +
+ i6 & i7 +
+ i4 & i7 +
+ /i2 & /i7
+rf15.oe = OE
+
+/rf16 := /i3 & /rf17 +
+ /i4 +
+ /i3 +
+ /i3 & i4 +
+ /i7 & rf17 +
+ /i7 +
+ i4 +
+ i2 & i3
+rf16.oe = OE
+
+/rf17 := i2 & i5 & i6 & /i7 +
+ i2 & /rf18 +
+ i5 +
+ i6 +
+ /i7 & rf18 +
+ i2 & /i7 +
+ i5 & i6 +
+ /i3
+rf17.oe = OE
+
+rf18 := /i2 & i5 & i6 & /i7 +
+ i3 & i6 & i7 +
+ i3 & rf19 +
+ /i2 & /i7 +
+ /i3 & /rf19 +
+ i5 & i6 & /i7 +
+ i7 +
+ /i4
+rf18.oe = OE
+
+/rf19 := i5 & i6 & /i7 +
+ i3 & i6 & i7 +
+ i5 & rf12 +
+ i6 +
+ i7 +
+ /i4 & /rf12 +
+ /i7 +
+ i2
+rf19.oe = OE
diff --git a/regtests/jedutil/eqns/Opal_Jr/pal18h4/pal18h4.eqn b/regtests/jedutil/eqns/Opal_Jr/pal18h4/pal18h4.eqn
new file mode 100644
index 00000000000..e2d25e34e2c
--- /dev/null
+++ b/regtests/jedutil/eqns/Opal_Jr/pal18h4/pal18h4.eqn
@@ -0,0 +1,34 @@
+chip pal18h4 PAL18H4
+
+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 i15=15 i16=16 o17=17 o18=18 o19=19 o20=20 i21=21 i22=22 i23=23 VCC=24
+
+equations
+
+o17 = /i1 & /i2 +
+ /i3 & /i7 +
+ /i4 & /i8 & i16 +
+ /i5 & /i6 +
+ /i9 & /i10 +
+ /i13 & /i15
+o17.oe = vcc
+
+o18 = i1 & i2 & i3 +
+ i4 & i5 & i6 & /i14 +
+ i7 & /i16 +
+ i8 & i15
+o18.oe = vcc
+
+o19 = i9 & i10 & i14 +
+ i13 & /i22 +
+ /i2 & i5 & /i21 +
+ i6 & /i7
+o19.oe = vcc
+
+o20 = i3 & i6 +
+ i7 & i13 & i23 +
+ i5 & i6 & i22 +
+ /i7 & i11 +
+ i21 & /i23 +
+ /i1 & i3 & i6 & i7 & i10
+o20.oe = vcc
diff --git a/regtests/jedutil/eqns/Opal_Jr/pal18l4/pal18l4.eqn b/regtests/jedutil/eqns/Opal_Jr/pal18l4/pal18l4.eqn
new file mode 100644
index 00000000000..8cee3254656
--- /dev/null
+++ b/regtests/jedutil/eqns/Opal_Jr/pal18l4/pal18l4.eqn
@@ -0,0 +1,34 @@
+chip pal18l4 PAL18L4
+
+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 i15=15 i16=16 o17=17 o18=18 o19=19 o20=20 i21=21 i22=22 i23=23 VCC=24
+
+equations
+
+/o17 = /i1 & /i2 +
+ /i3 & /i7 +
+ /i4 & /i8 & i16 +
+ /i5 & /i6 +
+ /i9 & /i10 +
+ /i13 & /i15
+o17.oe = vcc
+
+/o18 = i1 & i2 & i3 +
+ i4 & i5 & i6 & /i14 +
+ i7 & /i16 +
+ i8 & i15
+o18.oe = vcc
+
+/o19 = i9 & i10 & i14 +
+ i13 & /i22 +
+ /i2 & i5 & /i21 +
+ i6 & /i7
+o19.oe = vcc
+
+/o20 = i3 & i6 +
+ i7 & i13 & i23 +
+ i5 & i6 & i22 +
+ /i7 & i11 +
+ i21 & /i23 +
+ /i1 & i3 & i6 & i7 & i10
+o20.oe = vcc
diff --git a/regtests/jedutil/eqns/Opal_Jr/pal20c1/pal20c1.eqn b/regtests/jedutil/eqns/Opal_Jr/pal20c1/pal20c1.eqn
new file mode 100644
index 00000000000..a49161c39c7
--- /dev/null
+++ b/regtests/jedutil/eqns/Opal_Jr/pal20c1/pal20c1.eqn
@@ -0,0 +1,26 @@
+chip pal20c1 PAL20C1
+
+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 i15=15 i16=16 i17=17 o18=18 o19=19 i20=20 i21=21 i22=22 i23=23 VCC=24
+
+equations
+
+/o18 = /i1 & /i2 +
+ /i3 & /i7 & /i17 +
+ /i4 & /i8 & i16 +
+ /i5 & /i6 & i17 +
+ /i9 & /i10 +
+ /i13 & /i15 +
+ i1 & i2 & i3 & i7 & /i16 +
+ i4 & i5 & i6 & i8 & /i14 & i15
+o18.oe = vcc
+
+o19 = i9 & i10 & i14 & /i20 +
+ i13 & /i22 +
+ /i2 & i5 & /i21 +
+ i3 & i6 & /i7 +
+ i7 & i13 & i20 & i23 +
+ i5 & i6 & i22 +
+ /i7 & i11 +
+ /i1 & i3 & i6 & i7 & i10 & i21 & /i23
+o19.oe = vcc
diff --git a/regtests/jedutil/eqns/Opal_Jr/pal20l10/pal20l10.eqn b/regtests/jedutil/eqns/Opal_Jr/pal20l10/pal20l10.eqn
new file mode 100644
index 00000000000..d6639bdf9f4
--- /dev/null
+++ b/regtests/jedutil/eqns/Opal_Jr/pal20l10/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/regtests/jedutil/eqns/Opal_Jr/pal20l2/pal20l2.eqn b/regtests/jedutil/eqns/Opal_Jr/pal20l2/pal20l2.eqn
new file mode 100644
index 00000000000..c435658647b
--- /dev/null
+++ b/regtests/jedutil/eqns/Opal_Jr/pal20l2/pal20l2.eqn
@@ -0,0 +1,26 @@
+chip pal20l2 PAL20L2
+
+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 i15=15 i16=16 i17=17 o18=18 o19=19 i20=20 i21=21 i22=22 i23=23 VCC=24
+
+equations
+
+/o18 = /i1 & i2 +
+ /i3 & i4 +
+ /i5 & i6 & /i7 +
+ i8 & /i9 & i10 +
+ /i11 & i13 +
+ /i14 & i15 & /i16 +
+ i17 & /i21 & i22 +
+ /i23
+o18.oe = vcc
+
+/o19 = i1 & /i2 +
+ i3 & /i4 +
+ i5 & /i6 & i7 +
+ /i8 & i9 & /i10 +
+ i11 & /i13 +
+ i14 & /i15 & i16 +
+ /i17 & i21 & /i22 +
+ i23
+o19.oe = vcc
diff --git a/regtests/jedutil/eqns/Opal_Jr/pal20l8/pal20l8.eqn b/regtests/jedutil/eqns/Opal_Jr/pal20l8/pal20l8.eqn
new file mode 100644
index 00000000000..f7280b6150f
--- /dev/null
+++ b/regtests/jedutil/eqns/Opal_Jr/pal20l8/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/regtests/jedutil/eqns/Opal_Jr/pal20r4/pal20r4.eqn b/regtests/jedutil/eqns/Opal_Jr/pal20r4/pal20r4.eqn
new file mode 100644
index 00000000000..ace68eae24f
--- /dev/null
+++ b/regtests/jedutil/eqns/Opal_Jr/pal20r4/pal20r4.eqn
@@ -0,0 +1,82 @@
+chip pal20r4 PAL20R4
+
+CLK=1 i2=2 i3=3 i4=4 i5=5 i6=6 i7=7 i8=8 i9=9 i10=10 i11=11 GND=12
+/OE=13 i14=14 o15=15 o16=16 rf17=17 rf18=18 rf19=19 rf20=20 o21=21 o22=22 i23=23 VCC=24
+
+equations
+
+/o15 = i2 & i6 & i7 +
+ i6 & o16 +
+ i3 & /o16 +
+ i7 +
+ /i4 +
+ i6 & i7 +
+ i4 & i7
+o15.oe = /i23
+
+/o16 = /i3 & /rf17 +
+ /i4 +
+ /i3 +
+ /i3 & i4 +
+ /i7 & rf17 +
+ /i7 +
+ i4
+o16.oe = i23
+
+/rf17 := /i2 +
+ /rf18 +
+ i5 +
+ i6 +
+ rf18 +
+ i4 +
+ /i10 +
+ /i23
+rf17.oe = OE
+
+/rf18 := /i2 & i5 & i6 & /i7 +
+ i3 & i6 & i7 +
+ i3 & rf19 +
+ /i2 & /i7 +
+ /i3 & /rf19 +
+ i5 & i6 & /i7 +
+ i7 +
+ /i11
+rf18.oe = OE
+
+/rf19 := i5 & i6 & /i7 +
+ i3 & i6 & i7 +
+ i5 & rf20 +
+ i6 +
+ i7 +
+ /i4 & /rf20 +
+ /i7 +
+ i10
+rf19.oe = OE
+
+/rf20 := i10 & rf17 +
+ /i11 +
+ i4 & /rf17 +
+ i2 +
+ /i6 & /i7 +
+ i8 +
+ /i9 +
+ o22
+rf20.oe = OE
+
+/o21 = /i8 +
+ /i2 & rf17 +
+ i11 +
+ /i10 +
+ o15 +
+ /i14 +
+ /i3
+o21.oe = i8 & i9 & /o22
+
+/o22 = i14 +
+ /o15 +
+ i3 & /o21 +
+ i7 +
+ /i8 & o21 +
+ i10 +
+ /i9
+o22.oe = i14 & /o15 \ No newline at end of file
diff --git a/regtests/jedutil/eqns/Opal_Jr/pal20r6/pal20r6.eqn b/regtests/jedutil/eqns/Opal_Jr/pal20r6/pal20r6.eqn
new file mode 100644
index 00000000000..dca4b545ee4
--- /dev/null
+++ b/regtests/jedutil/eqns/Opal_Jr/pal20r6/pal20r6.eqn
@@ -0,0 +1,84 @@
+chip pal20r6 PAL20R6
+
+CLK=1 i2=2 i3=3 i4=4 i5=5 i6=6 i7=7 i8=8 i9=9 i10=10 i11=11 GND=12
+/OE=13 i14=14 o15=15 rf16=16 rf17=17 rf18=18 rf19=19 rf20=20 rf21=21 o22=22 i23=23 VCC=24
+
+equations
+
+/o15 = i2 & i6 & i7 +
+ i6 & rf16 +
+ i3 & /rf16 +
+ i7 +
+ /i4 +
+ i6 & i7 +
+ i4 & i7
+o15.oe = /i23
+
+/rf16 := /i3 & /rf17 +
+ /i4 & /i23 +
+ /i3 +
+ /i3 & i4 +
+ /i7 & rf17 +
+ /i7 +
+ i4 +
+ i23
+rf16.oe = OE
+
+/rf17 := /i2 +
+ /rf18 +
+ i5 +
+ i6 +
+ rf18 +
+ i4 +
+ /i10 +
+ /i23
+rf17.oe = OE
+
+/rf18 := /i2 & i5 & i6 & /i7 +
+ i3 & i6 & i7 +
+ i3 & rf19 +
+ /i2 & /i7 +
+ /i3 & /rf19 +
+ i5 & i6 & /i7 +
+ i7 +
+ /i11
+rf18.oe = OE
+
+/rf19 := i5 & i6 & /i7 +
+ i3 & i6 & i7 +
+ i5 & rf20 +
+ i6 +
+ i7 +
+ /i4 & /rf20 +
+ /i7 +
+ i10
+rf19.oe = OE
+
+/rf20 := i10 & rf17 +
+ /i11 +
+ i4 & /rf17 +
+ i2 +
+ /i6 & /i7 +
+ i8 +
+ /i9 +
+ o22
+rf20.oe = OE
+
+/rf21 := /i8 +
+ /i2 & rf17 +
+ i11 +
+ /i10 +
+ o15 +
+ /i14 & /o22 +
+ /i3 +
+ /i5
+rf21.oe = OE
+
+/o22 = i14 +
+ /o15 +
+ i3 & /rf21 +
+ i7 +
+ /i8 & rf21 +
+ i10 +
+ /i9
+o22.oe = i14 & /o15 \ No newline at end of file
diff --git a/regtests/jedutil/eqns/Opal_Jr/pal20r8/pal20r8.eqn b/regtests/jedutil/eqns/Opal_Jr/pal20r8/pal20r8.eqn
new file mode 100644
index 00000000000..c777a21d495
--- /dev/null
+++ b/regtests/jedutil/eqns/Opal_Jr/pal20r8/pal20r8.eqn
@@ -0,0 +1,86 @@
+chip pal20r8 PAL20R8
+
+CLK=1 i2=2 i3=3 i4=4 i5=5 i6=6 i7=7 i8=8 i9=9 i10=10 i11=11 GND=12
+/OE=13 i14=14 rf15=15 rf16=16 rf17=17 rf18=18 rf19=19 rf20=20 rf21=21 rf22=22 i23=23 VCC=24
+
+equations
+
+/rf15 := i2 & i6 & i7 +
+ i6 & rf16 +
+ i3 & /rf16 +
+ i7 +
+ /i4 +
+ i6 & i7 +
+ i4 & i7 +
+ /i23
+rf15.oe = OE
+
+/rf16 := /i3 & /rf17 +
+ /i4 +
+ /i3 +
+ /i3 & i4 +
+ /i7 & rf17 +
+ /i7 +
+ i4 +
+ i23
+rf16.oe = OE
+
+/rf17 := /i2 +
+ /rf18 +
+ i5 +
+ i6 +
+ rf18 +
+ i4 +
+ /i10 +
+ /i23
+rf17.oe = OE
+
+/rf18 := /i2 & i5 & i6 & /i7 +
+ i3 & i6 & i7 +
+ i3 & rf19 +
+ /i2 & /i7 +
+ /i3 & /rf19 +
+ i5 & i6 & /i7 +
+ i7 +
+ /i11
+rf18.oe = OE
+
+/rf19 := i5 & i6 & /i7 +
+ i3 & i6 & i7 +
+ i5 & rf20 +
+ i6 +
+ i7 +
+ /i4 & /rf20 +
+ /i7 +
+ i10
+rf19.oe = OE
+
+/rf20 := i10 & rf17 +
+ /i11 +
+ i4 & /rf17 +
+ i2 +
+ /i6 & /i7 +
+ i8 +
+ /i9 +
+ rf22
+rf20.oe = OE
+
+/rf21 := /i8 +
+ /i2 & rf17 +
+ i11 +
+ /i10 +
+ rf15 +
+ /i14 +
+ /i3 +
+ i8 & i9 & /rf22
+rf21.oe = OE
+
+/rf22 := i14 +
+ /rf15 +
+ i3 & /rf21 +
+ i7 +
+ /i8 & rf21 +
+ i10 +
+ /i9 +
+ i14 & /rf15
+rf22.oe = OE \ No newline at end of file
diff --git a/regtests/jedutil/eqns/Opal_Jr/pal20x10/pal20x10.eqn b/regtests/jedutil/eqns/Opal_Jr/pal20x10/pal20x10.eqn
new file mode 100644
index 00000000000..66c24c39f1e
--- /dev/null
+++ b/regtests/jedutil/eqns/Opal_Jr/pal20x10/pal20x10.eqn
@@ -0,0 +1,66 @@
+chip pal20x10 PAL20X10
+
+CLK=1 i2=2 i3=3 i4=4 i5=5 i6=6 i7=7 i8=8 i9=9 i10=10 i11=11 GND=12
+/OE=13 rf14=14 rf15=15 rf16=16 rf17=17 rf18=18 rf19=19 rf20=20 rf21=21 rf22=22 rf23=23 VCC=24
+
+equations
+
+/rf14 := /i2 & rf15 +
+ /rf15 & i11 :+:
+ i3 & i4 +
+ /i5 & i10
+rf14.oe = OE
+
+/rf15 := i2 & i6 & i7 +
+ i6 & rf16 :+:
+ i3 & /rf16 +
+ i7
+rf15.oe = OE
+
+/rf16 := /i3 & /rf17 +
+ /i4 :+:
+ /i3 & i4 +
+ /i7 & rf17
+rf16.oe = OE
+
+/rf17 := /i2 +
+ /rf18 :+:
+ i5 & i6 +
+ rf18
+rf17.oe = OE
+
+/rf18 := /i2 & i5 & i6 & /i7 & /i11 +
+ i3 & rf19 :+:
+ /i2 & /i7 +
+ /i3 & /rf19
+rf18.oe = OE
+
+/rf19 := i5 & i6 & /i7 & i10 +
+ i3 & i6 & i7 :+:
+ i5 & rf20 +
+ /i4 & /rf20 & rf23
+rf19.oe = OE
+
+/rf20 := /i10 & rf17 +
+ /i11 :+:
+ i4 & /rf17 +
+ i2 & /rf23
+rf20.oe = OE
+
+/rf21 := /i2 & rf17 +
+ i11 & /i10 :+:
+ /rf14 & rf15 +
+ i8 & i9 & /rf22
+rf21.oe = OE
+
+/rf22 := rf14 & /rf15 +
+ i3 & /rf21 :+:
+ /i8 & rf21 +
+ rf16 & /rf20
+rf22.oe = OE
+
+/rf23 := /rf14 +
+ i6 & rf14 :+:
+ i7 & rf22 +
+ i2 & i4 & i6 & i8 & /rf15
+rf23.oe = OE
diff --git a/regtests/jedutil/eqns/Opal_Jr/pal20x4/pal20x4.eqn b/regtests/jedutil/eqns/Opal_Jr/pal20x4/pal20x4.eqn
new file mode 100644
index 00000000000..ad8a2af07ee
--- /dev/null
+++ b/regtests/jedutil/eqns/Opal_Jr/pal20x4/pal20x4.eqn
@@ -0,0 +1,60 @@
+chip pal20x4 PAL20X4
+
+CLK=1 i2=2 i3=3 i4=4 i5=5 i6=6 i7=7 i8=8 i9=9 i10=10 i11=11 GND=12
+/OE=13 o14=14 o15=15 o16=16 rf17=17 rf18=18 rf19=19 rf20=20 o21=21 o22=22 o23=23 VCC=24
+
+equations
+
+/o14 = /i2 & o15 +
+ /o15 & i11 +
+ i3 & i4 & /i5 & i10
+o14.oe = i6
+
+/o15 = i2 & i6 & i7 +
+ i3 & /o16 +
+ i7
+o15.oe = i6 & o16
+
+/o16 = /i3 & /rf17 +
+ /i4 +
+ /i7 & rf17
+o16.oe = /i3 & i4
+
+/rf17 := /i2 +
+ /rf18 :+:
+ i5 & i6 +
+ rf18
+rf17.oe = OE
+
+/rf18 := /i2 & i5 & i6 & /i7 & /i11 +
+ i3 & rf19 :+:
+ /i2 & /i7 +
+ /i3 & /rf19
+rf18.oe = OE
+
+/rf19 := i5 & i6 & /i7 & i10 +
+ i3 & i6 & i7 :+:
+ i5 & rf20 +
+ /i4 & /rf20 & o23
+rf19.oe = OE
+
+/rf20 := /i10 & rf17 +
+ /i11 :+:
+ i4 & /rf17 +
+ i2 & /o23
+rf20.oe = OE
+
+/o21 = /i2 & rf17 +
+ /o14 & o15 +
+ i8 & i9 & /o22
+o21.oe = i11 & /i10
+
+/o22 = o14 & /o15 +
+ i3 & /o21 +
+ /i8 & o21
+o22.oe = o16 & /rf20
+
+/o23 = /o14 +
+ i2 & i4 & i6 & i8 & o14 +
+ i7 & /o15 & o22
+o23.oe = /i3
diff --git a/regtests/jedutil/eqns/Opal_Jr/pal20x8/pal20x8.eqn b/regtests/jedutil/eqns/Opal_Jr/pal20x8/pal20x8.eqn
new file mode 100644
index 00000000000..2da276a0fc2
--- /dev/null
+++ b/regtests/jedutil/eqns/Opal_Jr/pal20x8/pal20x8.eqn
@@ -0,0 +1,64 @@
+chip pal20x8 PAL20X8
+
+CLK=1 i2=2 i3=3 i4=4 i5=5 i6=6 i7=7 i8=8 i9=9 i10=10 i11=11 GND=12
+/OE=13 o14=14 rf15=15 rf16=16 rf17=17 rf18=18 rf19=19 rf20=20 rf21=21 rf22=22 o23=23 VCC=24
+
+equations
+
+/o14 = /i2 & rf15 +
+ /rf15 & i11 +
+ i3 & i4 & /i5 & i10
+o14.oe = i6
+
+/rf15 := i2 & i6 & i7 +
+ i6 & rf16 :+:
+ i3 & /rf16 +
+ i7
+rf15.oe = OE
+
+/rf16 := /i3 & /rf17 +
+ /i4 :+:
+ /i3 & i4 +
+ /i7 & rf17
+rf16.oe = OE
+
+/rf17 := /i2 +
+ /rf18 :+:
+ i5 & i6 +
+ rf18
+rf17.oe = OE
+
+/rf18 := /i2 & i5 & i6 & /i7 & /i11 +
+ i3 & rf19 :+:
+ /i2 & /i7 +
+ /i3 & /rf19
+rf18.oe = OE
+
+/rf19 := i5 & i6 & /i7 & i10 +
+ i3 & i6 & i7 :+:
+ i5 & rf20 +
+ /i4 & /rf20 & o23
+rf19.oe = OE
+
+/rf20 := /i10 & rf17 +
+ /i11 :+:
+ i4 & /rf17 +
+ i2 & /o23
+rf20.oe = OE
+
+/rf21 := /i2 & rf17 +
+ i11 & /i10 :+:
+ /o14 & rf15 +
+ i8 & i9 & /rf22
+rf21.oe = OE
+
+/rf22 := o14 & /rf15 +
+ i3 & /rf21 :+:
+ /i8 & rf21 +
+ rf16 & /rf20
+rf22.oe = OE
+
+/o23 = /o14 +
+ i2 & i4 & i6 & i8 & o14 +
+ i7 & /rf15 & rf22
+o23.oe = /i3
diff --git a/regtests/jedutil/eqns/Opal_Jr/readme.txt b/regtests/jedutil/eqns/Opal_Jr/readme.txt
new file mode 100644
index 00000000000..94dcdf6ab46
--- /dev/null
+++ b/regtests/jedutil/eqns/Opal_Jr/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/regtests/jedutil/eqns/PALASM/pal6l16/pal6l16.pds b/regtests/jedutil/eqns/PALASM/pal6l16/pal6l16.pds
new file mode 100644
index 00000000000..a688643f4e1
--- /dev/null
+++ b/regtests/jedutil/eqns/PALASM/pal6l16/pal6l16.pds
@@ -0,0 +1,53 @@
+TITLE PAL6L16 Test 1
+PATTERN A
+REVISION 1.0
+AUTHOR MAMEDev
+COMPANY MAMEDev
+DATE 11/11/2013
+
+CHIP PAL6L16Test1 PAL6L16
+
+;---------------------------------- PIN Declarations ---------------
+PIN 1 O1 COMBINATORIAL ;
+PIN 2 O2 COMBINATORIAL ;
+PIN 3 O3 COMBINATORIAL ;
+PIN 4 I4 COMBINATORIAL ;
+PIN 5 I5 COMBINATORIAL ;
+PIN 6 I6 COMBINATORIAL ;
+PIN 7 I7 COMBINATORIAL ;
+PIN 8 I8 COMBINATORIAL ;
+PIN 9 I9 COMBINATORIAL ;
+PIN 10 O10 COMBINATORIAL ;
+PIN 11 O11 COMBINATORIAL ;
+PIN 12 GND ;
+PIN 13 O13 COMBINATORIAL ;
+PIN 14 O14 COMBINATORIAL ;
+PIN 15 O15 COMBINATORIAL ;
+PIN 16 O16 COMBINATORIAL ;
+PIN 17 O17 COMBINATORIAL ;
+PIN 18 O18 COMBINATORIAL ;
+PIN 19 O19 COMBINATORIAL ;
+PIN 20 O20 COMBINATORIAL ;
+PIN 21 O21 COMBINATORIAL ;
+PIN 22 O22 COMBINATORIAL ;
+PIN 23 O23 COMBINATORIAL ;
+PIN 24 VCC ;
+
+EQUATIONS
+
+/O1 = I4
+/O2 = I5
+/O3 = I6
+/O10 = I7
+/O11 = I8
+/O13 = I9
+/O14 = I4 * I5
+/O15 = /I9
+/O16 = /I8
+/O17 = /I7
+/O18 = /I6
+/O19 = /I5
+/O20 = /I4
+/O21 = /I4 * I5 * /I6 * I7 * /I8 * I9
+/O22 = I4 * /I5 * I6 * /I7 * I8 * /I9
+/O23 = I6 * I9
diff --git a/regtests/jedutil/eqns/PALASM/pal8l14/pal8l14.pds b/regtests/jedutil/eqns/PALASM/pal8l14/pal8l14.pds
new file mode 100644
index 00000000000..c1c822f6352
--- /dev/null
+++ b/regtests/jedutil/eqns/PALASM/pal8l14/pal8l14.pds
@@ -0,0 +1,51 @@
+TITLE PAL8L14 Test 1
+PATTERN A
+REVISION 1.0
+AUTHOR MAMEDev
+COMPANY MAMEDev
+DATE 11/11/2013
+
+CHIP PAL8L14Test1 PAL8L14
+
+;---------------------------------- PIN Declarations ---------------
+PIN 1 O1 COMBINATORIAL ;
+PIN 2 O2 COMBINATORIAL ;
+PIN 3 I3 COMBINATORIAL ;
+PIN 4 I4 COMBINATORIAL ;
+PIN 5 I5 COMBINATORIAL ;
+PIN 6 I6 COMBINATORIAL ;
+PIN 7 I7 COMBINATORIAL ;
+PIN 8 I8 COMBINATORIAL ;
+PIN 9 I9 COMBINATORIAL ;
+PIN 10 I10 COMBINATORIAL ;
+PIN 11 O11 COMBINATORIAL ;
+PIN 12 GND ;
+PIN 13 O13 COMBINATORIAL ;
+PIN 14 O14 COMBINATORIAL ;
+PIN 15 O15 COMBINATORIAL ;
+PIN 16 O16 COMBINATORIAL ;
+PIN 17 O17 COMBINATORIAL ;
+PIN 18 O18 COMBINATORIAL ;
+PIN 19 O19 COMBINATORIAL ;
+PIN 20 O20 COMBINATORIAL ;
+PIN 21 O21 COMBINATORIAL ;
+PIN 22 O22 COMBINATORIAL ;
+PIN 23 O23 COMBINATORIAL ;
+PIN 24 VCC ;
+
+EQUATIONS
+
+/O1 = I3
+/O2 = I4
+/O11 = I5
+/O13 = I6
+/O14 = I7
+/O15 = I8
+/O16 = I9
+/O17 = I10
+/O18 = /I3
+/O19 = /I4 * /I9
+/O20 = /I5
+/O21 = /I6 * /I10
+/O22 = /I7
+/O23 = /I8
diff --git a/regtests/jedutil/eqns/PALASM/palce16v8/pal10h8-as-palce16v8.pds b/regtests/jedutil/eqns/PALASM/palce16v8/pal10h8-as-palce16v8.pds
new file mode 100644
index 00000000000..83a32dc6fd7
--- /dev/null
+++ b/regtests/jedutil/eqns/PALASM/palce16v8/pal10h8-as-palce16v8.pds
@@ -0,0 +1,119 @@
+;PALASM Design Description
+
+;---------------------------------- Declaration Segment ------------
+TITLE PAL10H8 Test
+PATTERN A
+REVISION 1.0
+AUTHOR MAMEDev
+COMPANY MAMEDev
+DATE 08/25/13
+
+CHIP PAL10H8Test PALCE16V8
+
+SIGNATURE #b0010011001100110011001100110011001100110011001100110011001100100
+
+;---------------------------------- PIN Declarations ---------------
+PIN 1 I1 COMBINATORIAL ;
+PIN 2 I2 COMBINATORIAL ;
+PIN 3 I3 COMBINATORIAL ;
+PIN 4 I4 COMBINATORIAL ;
+PIN 5 I5 COMBINATORIAL ;
+PIN 6 I6 COMBINATORIAL ;
+PIN 7 I7 COMBINATORIAL ;
+PIN 8 I8 COMBINATORIAL ;
+PIN 9 I9 COMBINATORIAL ;
+PIN 10 GND ;
+PIN 11 I11 COMBINATORIAL ;
+PIN 12 O12 COMBINATORIAL ;
+PIN 13 O13 COMBINATORIAL ;
+PIN 14 O14 COMBINATORIAL ;
+PIN 15 O15 COMBINATORIAL ;
+PIN 16 O16 COMBINATORIAL ;
+PIN 17 O17 COMBINATORIAL ;
+PIN 18 O18 COMBINATORIAL ;
+PIN 19 O19 COMBINATORIAL ;
+PIN 20 VCC ;
+
+;----------------------------------- Boolean Equation Segment ------
+EQUATIONS
+
+MINIMIZE_OFF
+
+O12 = I2 +
+ I1 * I3 +
+ I4 * /I11 +
+ I5 +
+ I6 +
+ /I1 * I7 +
+ I8 +
+ I9 * I11
+
+O13 = /I2 +
+ /I4 +
+ /I3 * /I6 +
+ /I8 +
+ /I11 +
+ /I9 +
+ /I1 * /I7 +
+ /I5
+
+O14 = I4 +
+ /I8 * I11 +
+ /I6 +
+ /I2 +
+ I5 * /I11 +
+ I7 +
+ /I3 * /I9 +
+ /I1
+
+O15 = I5 +
+ /I1 +
+ I1 * I7 +
+ /I3 +
+ I1 * /I3 +
+ I2 * I9 +
+ /I8 +
+ I4
+
+O16 = I6 +
+ I3 * I11 +
+ I6 * I8 +
+ /I1 +
+ /I8 +
+ /I7 * /I8 +
+ /I2 * /I9 +
+ /i5 * I7 * I8
+
+O17 = I7 +
+ I2 * I9 +
+ I3 * I4 +
+ /I5 +
+ /I9 +
+ /I8 +
+ /I1 * /I11 +
+ I6 * I9
+
+O18 = /I1 +
+ /I3 +
+ /I5 +
+ /I7 +
+ /I9 +
+ /I11 +
+ I1 * I7 * I11 +
+ I3 * I5 * I9
+
+O19 = I3 * I11 +
+ I1 +
+ /I1 * /I9 +
+ /I3 * /I5 * /I7 +
+ I2 +
+ I4 +
+ I6 +
+ I8
+
+MINIMIZE_ON
+
+;----------------------------------- Simulation Segment ------------
+SIMULATION
+
+;-------------------------------------------------------------------
diff --git a/regtests/jedutil/eqns/PALASM/palce16v8/pal10l8-as-palce16v8.pds b/regtests/jedutil/eqns/PALASM/palce16v8/pal10l8-as-palce16v8.pds
new file mode 100644
index 00000000000..d39fa0d5436
--- /dev/null
+++ b/regtests/jedutil/eqns/PALASM/palce16v8/pal10l8-as-palce16v8.pds
@@ -0,0 +1,119 @@
+;PALASM Design Description
+
+;---------------------------------- Declaration Segment ------------
+TITLE PAL10L8 Test
+PATTERN A
+REVISION 1.0
+AUTHOR MAMEDev
+COMPANY MAMEDev
+DATE 08/25/13
+
+CHIP PAL10L8Test PALCE16V8
+
+SIGNATURE #b0010011001100110011001100110011001100110011001100110011001100100
+
+;---------------------------------- PIN Declarations ---------------
+PIN 1 I1 COMBINATORIAL ;
+PIN 2 I2 COMBINATORIAL ;
+PIN 3 I3 COMBINATORIAL ;
+PIN 4 I4 COMBINATORIAL ;
+PIN 5 I5 COMBINATORIAL ;
+PIN 6 I6 COMBINATORIAL ;
+PIN 7 I7 COMBINATORIAL ;
+PIN 8 I8 COMBINATORIAL ;
+PIN 9 I9 COMBINATORIAL ;
+PIN 10 GND ;
+PIN 11 I11 COMBINATORIAL ;
+PIN 12 O12 COMBINATORIAL ;
+PIN 13 O13 COMBINATORIAL ;
+PIN 14 O14 COMBINATORIAL ;
+PIN 15 O15 COMBINATORIAL ;
+PIN 16 O16 COMBINATORIAL ;
+PIN 17 O17 COMBINATORIAL ;
+PIN 18 O18 COMBINATORIAL ;
+PIN 19 O19 COMBINATORIAL ;
+PIN 20 VCC ;
+
+;----------------------------------- Boolean Equation Segment ------
+EQUATIONS
+
+MINIMIZE_OFF
+
+/O12 = /I1 * I7 +
+ I8 +
+ I9 * I11 +
+ I2 +
+ I1 * I3 +
+ I5 +
+ I4 * /I11 +
+ I6
+
+/O13 = /I8 +
+ /I11 +
+ /I9 +
+ /I3 * /I6 +
+ /I1 * /I7 +
+ /I2 +
+ /I4 +
+ /I5
+
+/O14 = /I3 * /I9 +
+ /I6 +
+ /I2 +
+ I4 +
+ /I8 * I11 +
+ I7 +
+ I5 * /I11 +
+ /I1
+
+/O15 = I4 +
+ I1 * /I3 +
+ I2 * I9 +
+ I5 +
+ I1 * I7 +
+ /I3 +
+ /I8 +
+ /I1
+
+/O16 = I6 +
+ /I2 * /I9 +
+ I3 * I11 +
+ /I8 +
+ I6 * I8 +
+ /I1 +
+ /i5 * I7 * I8 +
+ /I7 * /I8
+
+/O17 = I3 * I4 +
+ /I5 +
+ /I9 +
+ /I1 * /I11 +
+ I7 +
+ I2 * I9 +
+ I6 * I9 +
+ /I8
+
+/O18 = /I9 +
+ I3 * I5 * I9 +
+ /I7 +
+ /I11 +
+ /I1 +
+ /I3 +
+ /I5 +
+ I1 * I7 * I11
+
+/O19 = /I3 * /I5 * /I7 +
+ I2 +
+ I8 +
+ I3 * I11 +
+ I1 +
+ I4 +
+ I6 +
+ /I1 * /I9
+
+MINIMIZE_ON
+
+;----------------------------------- Simulation Segment ------------
+SIMULATION
+
+;-------------------------------------------------------------------
diff --git a/regtests/jedutil/eqns/PALASM/palce16v8/pal12h6-as-palce16v8.pds b/regtests/jedutil/eqns/PALASM/palce16v8/pal12h6-as-palce16v8.pds
new file mode 100644
index 00000000000..fbb6cfeb85e
--- /dev/null
+++ b/regtests/jedutil/eqns/PALASM/palce16v8/pal12h6-as-palce16v8.pds
@@ -0,0 +1,101 @@
+;PALASM Design Description
+
+;---------------------------------- Declaration Segment ------------
+TITLE PAL12H6 Test
+PATTERN A
+REVISION 1.0
+AUTHOR MAMEDev
+COMPANY MAMEDev
+DATE 08/25/13
+
+CHIP PAL12H6Test PALCE16V8
+
+SIGNATURE #b0010011001100110011001100110011001100110011001100110011001100100
+
+;---------------------------------- PIN Declarations ---------------
+PIN 1 I1 COMBINATORIAL ;
+PIN 2 I2 COMBINATORIAL ;
+PIN 3 I3 COMBINATORIAL ;
+PIN 4 I4 COMBINATORIAL ;
+PIN 5 I5 COMBINATORIAL ;
+PIN 6 I6 COMBINATORIAL ;
+PIN 7 I7 COMBINATORIAL ;
+PIN 8 I8 COMBINATORIAL ;
+PIN 9 I9 COMBINATORIAL ;
+PIN 10 GND ;
+PIN 11 I11 COMBINATORIAL ;
+PIN 12 I12 COMBINATORIAL ;
+PIN 13 O13 COMBINATORIAL ;
+PIN 14 O14 COMBINATORIAL ;
+PIN 15 O15 COMBINATORIAL ;
+PIN 16 O16 COMBINATORIAL ;
+PIN 17 O17 COMBINATORIAL ;
+PIN 18 O18 COMBINATORIAL ;
+PIN 19 I19 COMBINATORIAL ;
+PIN 20 VCC ;
+
+;----------------------------------- Boolean Equation Segment ------
+EQUATIONS
+
+MINIMIZE_OFF
+
+O13 = /I2 +
+ /I4 +
+ /I3 * /I6 +
+ /I8 +
+ /I11 +
+ /I9 +
+ /I1 * /I7 +
+ /I5
+
+O14 = I4 +
+ /I8 * I11 +
+ /I6 +
+ /I2 +
+ I5 * /I11 +
+ I7 +
+ /I3 * /I9 +
+ /I1 * /I12
+
+O15 = I5 * I19 +
+ /I1 +
+ I1 * I7 +
+ /I3 +
+ I1 * /I3 +
+ I2 * I9 +
+ /I8 +
+ I4
+
+O16 = I6 +
+ I3 * I11 +
+ I6 * I8 +
+ /I1 +
+ /I8 +
+ /I7 * /I8 +
+ /I2 * /I9 +
+ /i5 * I7 * I8
+
+O17 = I7 * I12 +
+ I2 * I9 +
+ I3 * I4 +
+ /I5 +
+ /I9 +
+ /I8 +
+ /I1 * /I11 +
+ I6 * I9
+
+O18 = /I1 +
+ /I3 +
+ /I5 +
+ /I7 +
+ /I9 * /I19 +
+ /I11 +
+ I1 * I7 * I11 +
+ I3 * I5 * I9
+
+MINIMIZE_ON
+
+;----------------------------------- Simulation Segment ------------
+SIMULATION
+
+;-------------------------------------------------------------------
diff --git a/regtests/jedutil/eqns/PALASM/palce16v8/pal12l6-as-palce16v8.pds b/regtests/jedutil/eqns/PALASM/palce16v8/pal12l6-as-palce16v8.pds
new file mode 100644
index 00000000000..38f7f44a61e
--- /dev/null
+++ b/regtests/jedutil/eqns/PALASM/palce16v8/pal12l6-as-palce16v8.pds
@@ -0,0 +1,101 @@
+;PALASM Design Description
+
+;---------------------------------- Declaration Segment ------------
+TITLE PAL12L6 Test
+PATTERN A
+REVISION 1.0
+AUTHOR MAMEDev
+COMPANY MAMEDev
+DATE 08/25/13
+
+CHIP PAL12L6Test PALCE16V8
+
+SIGNATURE #b0010011001100110011001100110011001100110011001100110011001100100
+
+;---------------------------------- PIN Declarations ---------------
+PIN 1 I1 COMBINATORIAL ;
+PIN 2 I2 COMBINATORIAL ;
+PIN 3 I3 COMBINATORIAL ;
+PIN 4 I4 COMBINATORIAL ;
+PIN 5 I5 COMBINATORIAL ;
+PIN 6 I6 COMBINATORIAL ;
+PIN 7 I7 COMBINATORIAL ;
+PIN 8 I8 COMBINATORIAL ;
+PIN 9 I9 COMBINATORIAL ;
+PIN 10 GND ;
+PIN 11 I11 COMBINATORIAL ;
+PIN 12 I12 COMBINATORIAL ;
+PIN 13 O13 COMBINATORIAL ;
+PIN 14 O14 COMBINATORIAL ;
+PIN 15 O15 COMBINATORIAL ;
+PIN 16 O16 COMBINATORIAL ;
+PIN 17 O17 COMBINATORIAL ;
+PIN 18 O18 COMBINATORIAL ;
+PIN 19 I19 COMBINATORIAL ;
+PIN 20 VCC ;
+
+;----------------------------------- Boolean Equation Segment ------
+EQUATIONS
+
+MINIMIZE_OFF
+
+/O13 = /I8 +
+ /I11 +
+ /I9 +
+ /I3 * /I6 +
+ /I1 * /I7 +
+ /I2 +
+ /I4 * /I12 +
+ /I5
+
+/O14 = /I3 * /I9 * I19 +
+ /I6 +
+ /I2 +
+ I4 +
+ /I8 * I11 +
+ I7 +
+ I5 * /I11 +
+ /I1
+
+/O15 = I4 +
+ I1 * /I3 +
+ I2 * I9 +
+ I5 +
+ I1 * I7 +
+ /I3 +
+ /I8 +
+ /I1
+
+/O16 = I6 +
+ /I2 * /I9 +
+ I3 * I11 +
+ /I8 +
+ I6 * I8 +
+ /I1 +
+ /i5 * I7 * I8 +
+ /I7 * /I8 * I12
+
+/O17 = I3 * I4 +
+ /I5 +
+ /I9 +
+ /I1 * /I11 +
+ I7 +
+ I2 * I9 * /I19 +
+ I6 * I9 +
+ /I8
+
+/O18 = /I9 +
+ I3 * I5 * I9 +
+ /I7 +
+ /I11 +
+ /I1 +
+ /I3 +
+ /I5 +
+ I1 * I7 * I11
+
+MINIMIZE_ON
+
+;----------------------------------- Simulation Segment ------------
+SIMULATION
+
+;-------------------------------------------------------------------
diff --git a/regtests/jedutil/eqns/PALASM/palce16v8/pal14h4-as-palce16v8.pds b/regtests/jedutil/eqns/PALASM/palce16v8/pal14h4-as-palce16v8.pds
new file mode 100644
index 00000000000..38d9f968c70
--- /dev/null
+++ b/regtests/jedutil/eqns/PALASM/palce16v8/pal14h4-as-palce16v8.pds
@@ -0,0 +1,83 @@
+;PALASM Design Description
+
+;---------------------------------- Declaration Segment ------------
+TITLE PAL14H4 Test
+PATTERN A
+REVISION 1.0
+AUTHOR MAMEDev
+COMPANY MAMEDev
+DATE 08/25/13
+
+CHIP PAL14H4Test PALCE16V8
+
+SIGNATURE #b0010011001100110011001100110011001100110011001100110011001100100
+
+;---------------------------------- PIN Declarations ---------------
+PIN 1 I1 COMBINATORIAL ;
+PIN 2 I2 COMBINATORIAL ;
+PIN 3 I3 COMBINATORIAL ;
+PIN 4 I4 COMBINATORIAL ;
+PIN 5 I5 COMBINATORIAL ;
+PIN 6 I6 COMBINATORIAL ;
+PIN 7 I7 COMBINATORIAL ;
+PIN 8 I8 COMBINATORIAL ;
+PIN 9 I9 COMBINATORIAL ;
+PIN 10 GND ;
+PIN 11 I11 COMBINATORIAL ;
+PIN 12 I12 COMBINATORIAL ;
+PIN 13 I13 COMBINATORIAL ;
+PIN 14 O14 COMBINATORIAL ;
+PIN 15 O15 COMBINATORIAL ;
+PIN 16 O16 COMBINATORIAL ;
+PIN 17 O17 COMBINATORIAL ;
+PIN 18 I18 COMBINATORIAL ;
+PIN 19 I19 COMBINATORIAL ;
+PIN 20 VCC ;
+
+;----------------------------------- Boolean Equation Segment ------
+EQUATIONS
+
+MINIMIZE_OFF
+
+O14 = I4 +
+ /I8 * I11 +
+ /I12 +
+ /I2 +
+ I5 * /I11 +
+ I7 * I12 +
+ /I3 * /I9 +
+ /I1
+
+O15 = I5 +
+ /I13 +
+ I1 * I7 +
+ /I3 +
+ /I3 * I13 +
+ I2 * I9 +
+ /I8 +
+ I4
+
+O16 = I6 +
+ I3 * I11 +
+ I6 * I18 +
+ /I1 +
+ /I18 +
+ /I7 * /I8 +
+ /I2 * /I9 +
+ /i5 * I7 * I8
+
+O17 = I7 +
+ I2 * I19 +
+ I3 * I4 +
+ /I5 +
+ /I9 +
+ /I19 +
+ /I1 * /I11 +
+ I6 * I9
+
+MINIMIZE_ON
+
+;----------------------------------- Simulation Segment ------------
+SIMULATION
+
+;-------------------------------------------------------------------
diff --git a/regtests/jedutil/eqns/PALASM/palce16v8/pal14l4-as-palce16v8.pds b/regtests/jedutil/eqns/PALASM/palce16v8/pal14l4-as-palce16v8.pds
new file mode 100644
index 00000000000..228ab69d47c
--- /dev/null
+++ b/regtests/jedutil/eqns/PALASM/palce16v8/pal14l4-as-palce16v8.pds
@@ -0,0 +1,83 @@
+;PALASM Design Description
+
+;---------------------------------- Declaration Segment ------------
+TITLE PAL14L4 Test
+PATTERN A
+REVISION 1.0
+AUTHOR MAMEDev
+COMPANY MAMEDev
+DATE 08/25/13
+
+CHIP PAL14L4Test PALCE16V8
+
+SIGNATURE #b0010011001100110011001100110011001100110011001100110011001100100
+
+;---------------------------------- PIN Declarations ---------------
+PIN 1 I1 COMBINATORIAL ;
+PIN 2 I2 COMBINATORIAL ;
+PIN 3 I3 COMBINATORIAL ;
+PIN 4 I4 COMBINATORIAL ;
+PIN 5 I5 COMBINATORIAL ;
+PIN 6 I6 COMBINATORIAL ;
+PIN 7 I7 COMBINATORIAL ;
+PIN 8 I8 COMBINATORIAL ;
+PIN 9 I9 COMBINATORIAL ;
+PIN 10 GND ;
+PIN 11 I11 COMBINATORIAL ;
+PIN 12 I12 COMBINATORIAL ;
+PIN 13 I13 COMBINATORIAL ;
+PIN 14 O14 COMBINATORIAL ;
+PIN 15 O15 COMBINATORIAL ;
+PIN 16 O16 COMBINATORIAL ;
+PIN 17 O17 COMBINATORIAL ;
+PIN 18 I18 COMBINATORIAL ;
+PIN 19 I19 COMBINATORIAL ;
+PIN 20 VCC ;
+
+;----------------------------------- Boolean Equation Segment ------
+EQUATIONS
+
+MINIMIZE_OFF
+
+/O14 = /I8 * I11 +
+ I4 +
+ /I12 +
+ I5 * /I11 +
+ I1 +
+ I7 * I12 +
+ /I3 * /I9 +
+ /I2
+
+/O15 = I1 * I7 +
+ /I8 +
+ I5 +
+ /I13 +
+ /I3 +
+ I2 * I9 +
+ I4 +
+ /I3 * I13
+
+/O16 = /I18 +
+ I3 * I11 +
+ I6 +
+ I6 * I18 +
+ /I1 +
+ /i5 * I7 * I8 +
+ /I2 * /I9 +
+ /I7 * /I8
+
+/O17 = I2 * I19 +
+ /I9 +
+ /I19 +
+ I3 * I4 +
+ I6 * I9 +
+ /I5 +
+ /I1 * /I11 +
+ I7
+
+MINIMIZE_ON
+
+;----------------------------------- Simulation Segment ------------
+SIMULATION
+
+;-------------------------------------------------------------------
diff --git a/regtests/jedutil/eqns/PALASM/palce16v8/pal16h2-as-palce16v8.pds b/regtests/jedutil/eqns/PALASM/palce16v8/pal16h2-as-palce16v8.pds
new file mode 100644
index 00000000000..6bb6a10a367
--- /dev/null
+++ b/regtests/jedutil/eqns/PALASM/palce16v8/pal16h2-as-palce16v8.pds
@@ -0,0 +1,65 @@
+;PALASM Design Description
+
+;---------------------------------- Declaration Segment ------------
+TITLE PAL16H2 Test
+PATTERN A
+REVISION 1.0
+AUTHOR MAMEDev
+COMPANY MAMEDev
+DATE 08/25/13
+
+CHIP PAL16H2Test PALCE16V8
+
+SIGNATURE #b0010011001100110011001100110011001100110011001100110011001100100
+
+;---------------------------------- PIN Declarations ---------------
+PIN 1 I1 COMBINATORIAL ;
+PIN 2 I2 COMBINATORIAL ;
+PIN 3 I3 COMBINATORIAL ;
+PIN 4 I4 COMBINATORIAL ;
+PIN 5 I5 COMBINATORIAL ;
+PIN 6 I6 COMBINATORIAL ;
+PIN 7 I7 COMBINATORIAL ;
+PIN 8 I8 COMBINATORIAL ;
+PIN 9 I9 COMBINATORIAL ;
+PIN 10 GND ;
+PIN 11 I11 COMBINATORIAL ;
+PIN 12 I12 COMBINATORIAL ;
+PIN 13 I13 COMBINATORIAL ;
+PIN 14 I14 COMBINATORIAL ;
+PIN 15 O15 COMBINATORIAL ;
+PIN 16 O16 COMBINATORIAL ;
+PIN 17 I17 COMBINATORIAL ;
+PIN 18 I18 COMBINATORIAL ;
+PIN 19 I19 COMBINATORIAL ;
+PIN 20 VCC ;
+
+;----------------------------------- Boolean Equation Segment ------
+EQUATIONS
+
+MINIMIZE_OFF
+
+O15 = I5 +
+ /I13 * /I14 +
+ I1 * I7 +
+ /I3 * I14 +
+ /I3 * I13 +
+ I2 * I9 +
+ /I8 +
+ I4
+
+O16 = I6 +
+ I3 * I11 +
+ I6 * I18 +
+ /I1 * /I17 +
+ /I18 +
+ /I7 * /I8 +
+ /I2 * /I9 +
+ /i5 * I7 * I8 * I17
+
+MINIMIZE_ON
+
+;----------------------------------- Simulation Segment ------------
+SIMULATION
+
+;-------------------------------------------------------------------
diff --git a/regtests/jedutil/eqns/PALASM/palce16v8/pal16l2-as-palce16v8.pds b/regtests/jedutil/eqns/PALASM/palce16v8/pal16l2-as-palce16v8.pds
new file mode 100644
index 00000000000..ce363e1dc6b
--- /dev/null
+++ b/regtests/jedutil/eqns/PALASM/palce16v8/pal16l2-as-palce16v8.pds
@@ -0,0 +1,65 @@
+;PALASM Design Description
+
+;---------------------------------- Declaration Segment ------------
+TITLE PAL16L2 Test
+PATTERN A
+REVISION 1.0
+AUTHOR MAMEDev
+COMPANY MAMEDev
+DATE 08/25/13
+
+CHIP PAL16L2Test PALCE16V8
+
+SIGNATURE #b0010011001100110011001100110011001100110011001100110011001100100
+
+;---------------------------------- PIN Declarations ---------------
+PIN 1 I1 COMBINATORIAL ;
+PIN 2 I2 COMBINATORIAL ;
+PIN 3 I3 COMBINATORIAL ;
+PIN 4 I4 COMBINATORIAL ;
+PIN 5 I5 COMBINATORIAL ;
+PIN 6 I6 COMBINATORIAL ;
+PIN 7 I7 COMBINATORIAL ;
+PIN 8 I8 COMBINATORIAL ;
+PIN 9 I9 COMBINATORIAL ;
+PIN 10 GND ;
+PIN 11 I11 COMBINATORIAL ;
+PIN 12 I12 COMBINATORIAL ;
+PIN 13 I13 COMBINATORIAL ;
+PIN 14 I14 COMBINATORIAL ;
+PIN 15 O15 COMBINATORIAL ;
+PIN 16 O16 COMBINATORIAL ;
+PIN 17 I17 COMBINATORIAL ;
+PIN 18 I18 COMBINATORIAL ;
+PIN 19 I19 COMBINATORIAL ;
+PIN 20 VCC ;
+
+;----------------------------------- Boolean Equation Segment ------
+EQUATIONS
+
+MINIMIZE_OFF
+
+/O15 = I5 * /I11 +
+ /I3 * I14 +
+ /I3 * I13 +
+ /I13 * /I14 +
+ I1 * I7 * I12 +
+ /I8 * I18 +
+ I2 * I9 +
+ I4 * I17 * /I19
+
+/O16 = /I2 * /I9 * I19 +
+ I3 * I11 * /I18 +
+ /i5 * I7 * I8 * I17 +
+ I6 * I18 +
+ /I1 * I14 * /I17 +
+ I13 * /I18 +
+ /I7 * /I8 * /I12 +
+ I6
+
+MINIMIZE_ON
+
+;----------------------------------- Simulation Segment ------------
+SIMULATION
+
+;-------------------------------------------------------------------
diff --git a/regtests/jedutil/eqns/PALASM/palce16v8/pal16l8-as-palce16v8.pds b/regtests/jedutil/eqns/PALASM/palce16v8/pal16l8-as-palce16v8.pds
new file mode 100644
index 00000000000..74d858e67f4
--- /dev/null
+++ b/regtests/jedutil/eqns/PALASM/palce16v8/pal16l8-as-palce16v8.pds
@@ -0,0 +1,119 @@
+;PALASM Design Description
+
+;---------------------------------- Declaration Segment ------------
+TITLE PAL16L8 Test 1
+PATTERN A
+REVISION 1.0
+AUTHOR MAMEDev
+COMPANY MAMEDev
+DATE 08/25/13
+
+CHIP PAL16L8 PALCE16V8
+
+SIGNATURE #b1110011001100110011001100110011001100110011001100110011001100110
+
+;---------------------------------- PIN Declarations ---------------
+PIN 1 I1 COMBINATORIAL ;
+PIN 2 I2 COMBINATORIAL ;
+PIN 3 I3 COMBINATORIAL ;
+PIN 4 I4 COMBINATORIAL ;
+PIN 5 I5 COMBINATORIAL ;
+PIN 6 I6 COMBINATORIAL ;
+PIN 7 I7 COMBINATORIAL ;
+PIN 8 I8 COMBINATORIAL ;
+PIN 9 I9 COMBINATORIAL ;
+PIN 10 GND ;
+PIN 11 I11 COMBINATORIAL ;
+PIN 12 O12 COMBINATORIAL ;
+PIN 13 O13 COMBINATORIAL ;
+PIN 14 O14 COMBINATORIAL ;
+PIN 15 O15 COMBINATORIAL ;
+PIN 16 O16 COMBINATORIAL ;
+PIN 17 O17 COMBINATORIAL ;
+PIN 18 O18 COMBINATORIAL ;
+PIN 19 O19 COMBINATORIAL ;
+PIN 20 VCC ;
+
+;----------------------------------- Boolean Equation Segment ------
+EQUATIONS
+
+MINIMIZE_OFF
+
+O12 = I1 * /I2 +
+ /I1 * I3 +
+ /I3 * I7 +
+ I4 * O13 +
+ I6 * /O13 +
+ I6 * /I7 +
+ /I6 * /I8 * /I9
+O12.TRST = /I5
+
+/O13 = I3 +
+ O14 +
+ /I11 +
+ I2 +
+ /I4 * /O14 +
+ I8 * I9 +
+ I5
+O13.TRST = VCC
+
+/O14 = I4 +
+ /I8 * I11 +
+ O15 +
+ /I2 +
+ I5 * /I11 +
+ I7 +
+ /I3 * /I9
+O14.TRST = I1
+
+/O15 = I5 +
+ /O16 +
+ I1 * I7 +
+ /I3 +
+ /I3 * O16 +
+ I2 * I9 +
+ /I8
+O15.TRST = VCC
+
+/O16 = I6 +
+ I3 * I11 +
+ I6 * O17 +
+ /I1 +
+ /O17 +
+ /I7 * /I8 +
+ /I2 * /I9
+O16.TRST = /I11
+
+/O17 = I7 +
+ I2 * O18 +
+ I3 * I4 +
+ /I5 +
+ /I9 +
+ /O18 +
+ /I1 * /I11
+O17.TRST = VCC
+
+O18 = I3 +
+ I8 +
+ I9 * I11 +
+ I1 +
+ /I4 +
+ I2 +
+ I5 * /I7
+O18.TRST = VCC
+
+O19 = O18 +
+ O17 +
+ O16 +
+ O15 +
+ O14 +
+ O13 +
+ /O13 * /O14 * /O15 * /O16 * /O17 * /O18
+O19.TRST = I3
+
+MINIMIZE_ON
+
+;----------------------------------- Simulation Segment ------------
+SIMULATION
+
+;-------------------------------------------------------------------
diff --git a/regtests/jedutil/eqns/PALASM/palce16v8/pal16r4-as-palce16v8.pds b/regtests/jedutil/eqns/PALASM/palce16v8/pal16r4-as-palce16v8.pds
new file mode 100644
index 00000000000..6c30783032f
--- /dev/null
+++ b/regtests/jedutil/eqns/PALASM/palce16v8/pal16r4-as-palce16v8.pds
@@ -0,0 +1,119 @@
+;PALASM Design Description
+
+;---------------------------------- Declaration Segment ------------
+TITLE PAL16R4 Test 1
+PATTERN A
+REVISION 1.0
+AUTHOR MAMEDev
+COMPANY MAMEDev
+DATE 08/25/13
+
+CHIP PAL16R4Test1 PALCE16V8
+
+SIGNATURE #b0000000000000000000000000000000000000000000000000000000000000000
+
+;---------------------------------- PIN Declarations ---------------
+PIN 1 I1 COMBINATORIAL ;
+PIN 2 I2 COMBINATORIAL ;
+PIN 3 I3 COMBINATORIAL ;
+PIN 4 I4 COMBINATORIAL ;
+PIN 5 I5 COMBINATORIAL ;
+PIN 6 I6 COMBINATORIAL ;
+PIN 7 I7 COMBINATORIAL ;
+PIN 8 I8 COMBINATORIAL ;
+PIN 9 I9 COMBINATORIAL ;
+PIN 10 GND ;
+PIN 11 I11 COMBINATORIAL ;
+PIN 12 O12 COMBINATORIAL ;
+PIN 13 O13 COMBINATORIAL ;
+PIN 14 RF14 REGISTERED ;
+PIN 15 RF15 REGISTERED ;
+PIN 16 RF16 REGISTERED ;
+PIN 17 RF17 REGISTERED ;
+PIN 18 O18 COMBINATORIAL ;
+PIN 19 O19 COMBINATORIAL ;
+PIN 20 VCC ;
+
+;----------------------------------- Boolean Equation Segment ------
+EQUATIONS
+
+MINIMIZE_OFF
+
+/O12 = I3 * /I4 +
+ /O19 +
+ /I2 +
+ /I5 +
+ /I6 +
+ /I7 +
+ I2 * /I8 * O19
+O12.TRST = I4 * /I9
+
+/O13 = /RF14 +
+ I3 * I7 +
+ I4 * I5 +
+ I6 +
+ /I6 * /I9 * RF14 +
+ /I2 * /I8 +
+ I8 * /I9
+O13.TRST = RF14
+
+/RF14 := I2 * I9 +
+ /I2 * RF15 +
+ I4 * /RF15 +
+ I3 * /I8 +
+ I3 * /I4 +
+ /I5 * /I7 +
+ /I7 * /I9 +
+ /I4 * I5
+
+/RF15 := I5 * I9 +
+ I3 * I4 * /I9 +
+ /RF16 +
+ /I2 * /I6 +
+ /I4 * /I9 +
+ /I3 * RF16 +
+ /I8 +
+ /I5 * I8
+
+/RF16 := /I8 +
+ /I7 +
+ /I6 +
+ /I5 +
+ /I4 +
+ /I3 * /RF17 +
+ /I2 +
+ I2 * I3 * I4 * I5 * I6 * I7 * I8 * I9 * RF17
+
+/RF17 := I9 +
+ I8 * O18 +
+ I7 +
+ I6 +
+ I5 +
+ I4 * /O18 +
+ I3 +
+ /I2
+
+/O18 = /I3 * O19 +
+ /I5 +
+ /I7 +
+ /I9 +
+ /I2 +
+ /I4 * /O19 +
+ /I6
+O18.TRST = I8
+
+/O19 = I2 +
+ /I5 +
+ I3 * /O12 +
+ I9 +
+ /I2 * /I3 +
+ /I7 * I9 * O12 +
+ I5 * I8
+O19.TRST = I4
+
+MINIMIZE_ON
+
+;----------------------------------- Simulation Segment ------------
+SIMULATION
+
+;-------------------------------------------------------------------
diff --git a/regtests/jedutil/eqns/PALASM/palce16v8/pal16r6-as-palce16v8.pds b/regtests/jedutil/eqns/PALASM/palce16v8/pal16r6-as-palce16v8.pds
new file mode 100644
index 00000000000..0454eba3e30
--- /dev/null
+++ b/regtests/jedutil/eqns/PALASM/palce16v8/pal16r6-as-palce16v8.pds
@@ -0,0 +1,119 @@
+;PALASM Design Description
+
+;---------------------------------- Declaration Segment ------------
+TITLE PAL16R6 Test 1
+PATTERN A
+REVISION 1.0
+AUTHOR MAMEDev
+COMPANY MAMEDev
+DATE 08/25/13
+
+CHIP PAL16R6Test1 PALCE16V8
+
+SIGNATURE #b0000000000000000000000000000000000000000000000000000000000000000
+
+;---------------------------------- PIN Declarations ---------------
+PIN 1 I1 COMBINATORIAL ;
+PIN 2 I2 COMBINATORIAL ;
+PIN 3 I3 COMBINATORIAL ;
+PIN 4 I4 COMBINATORIAL ;
+PIN 5 I5 COMBINATORIAL ;
+PIN 6 I6 COMBINATORIAL ;
+PIN 7 I7 COMBINATORIAL ;
+PIN 8 I8 COMBINATORIAL ;
+PIN 9 I9 COMBINATORIAL ;
+PIN 10 GND ;
+PIN 11 I11 COMBINATORIAL ;
+PIN 12 O12 COMBINATORIAL ;
+PIN 13 RF13 REGISTERED ;
+PIN 14 RF14 REGISTERED ;
+PIN 15 RF15 REGISTERED ;
+PIN 16 RF16 REGISTERED ;
+PIN 17 RF17 REGISTERED ;
+PIN 18 RF18 REGISTERED ;
+PIN 19 O19 COMBINATORIAL ;
+PIN 20 VCC ;
+
+;----------------------------------- Boolean Equation Segment ------
+EQUATIONS
+
+MINIMIZE_OFF
+
+/O12 = RF13 * RF14 * RF15 * RF16 * RF17 * RF18 +
+ I2 +
+ I3 +
+ I4 +
+ /O19 +
+ I6 * O19 +
+ I7 * /I8 * I9
+O12.TRST = /I5
+
+/RF13 = /I6 * RF13 +
+ O12 * O19 +
+ /I9 * /RF13 +
+ /I2 * /I5 +
+ I2 * /O12 +
+ /I7 * /I9 +
+ /I2 * /I8 +
+ /I3 * I8 * I9
+
+/RF14 := I2 +
+ /RF14 +
+ I3 +
+ I7 * /I8 * /RF13 +
+ /I9 * RF14 +
+ I6 * I9 * RF13 +
+ I2 * I4 * /I9 +
+ /I5 * /I8
+
+/RF15 := /I3 +
+ I4 +
+ I5 * RF14 * RF16 +
+ /I7 * I9 +
+ I3 * /RF14 +
+ /I4 * /I5 +
+ I6 * /I9 +
+ /I8 * /RF16
+
+/RF16 := I8 * RF17 +
+ I3 * I9 +
+ /I4 * /I9 * /RF15 +
+ I7 * I8 +
+ I2 * I3 * I9 * /RF17 +
+ I2 * I5 +
+ I3 * /I4 * /I5 * RF15 +
+ /I6 * /I7 * I9
+
+/RF17 := I2 * I9 +
+ /I2 * I3 * /I8 +
+ /I4 * /I8 +
+ /I5 * I6 * /I8 * /RF16 +
+ RF16 * /RF18 +
+ I3 * /I8 +
+ /I4 * /I8 * RF16 +
+ RF18
+
+/RF18 := RF18 +
+ I8 * I9 +
+ /I5 * I8 +
+ I3 * I4 * /RF18 +
+ I2 * /I3 +
+ /I5 * /I7 * /O19 +
+ /I2 * I3 * /I7 +
+ /I2 * O19
+
+/O19 = I4 * /O12 +
+ I5 * /I6 +
+ /I5 * I6 +
+ I8 * I9 * /RF18 +
+ I2 * /I9 * RF18 +
+ I3 * I9 +
+ /I4 * /I7 * /I8
+O19.TRST = O12 * /RF18
+
+MINIMIZE_ON
+
+;----------------------------------- Simulation Segment ------------
+SIMULATION
+
+;-------------------------------------------------------------------
diff --git a/regtests/jedutil/eqns/PALASM/palce16v8/pal16r8-as-palce16v8.pds b/regtests/jedutil/eqns/PALASM/palce16v8/pal16r8-as-palce16v8.pds
new file mode 100644
index 00000000000..68dc7770b19
--- /dev/null
+++ b/regtests/jedutil/eqns/PALASM/palce16v8/pal16r8-as-palce16v8.pds
@@ -0,0 +1,119 @@
+;PALASM Design Description
+
+;---------------------------------- Declaration Segment ------------
+TITLE PAL16R8 Test 1
+PATTERN A
+REVISION 1.0
+AUTHOR MAMEDev
+COMPANY MAMEDev
+DATE 08/25/13
+
+CHIP PAL16R8Test1 PALCE16V8
+
+SIGNATURE #b0000000000000000000000000000000000000000000000000000000000000000
+
+;---------------------------------- PIN Declarations ---------------
+PIN 1 I1 COMBINATORIAL ;
+PIN 2 I2 COMBINATORIAL ;
+PIN 3 I3 COMBINATORIAL ;
+PIN 4 I4 COMBINATORIAL ;
+PIN 5 I5 COMBINATORIAL ;
+PIN 6 I6 COMBINATORIAL ;
+PIN 7 I7 COMBINATORIAL ;
+PIN 8 I8 COMBINATORIAL ;
+PIN 9 I9 COMBINATORIAL ;
+PIN 10 GND ;
+PIN 11 I11 COMBINATORIAL ;
+PIN 12 RF12 REGISTERED ;
+PIN 13 RF13 REGISTERED ;
+PIN 14 RF14 REGISTERED ;
+PIN 15 RF15 REGISTERED ;
+PIN 16 RF16 REGISTERED ;
+PIN 17 RF17 REGISTERED ;
+PIN 18 RF18 REGISTERED ;
+PIN 19 RF19 REGISTERED ;
+PIN 20 VCC ;
+
+;----------------------------------- Boolean Equation Segment ------
+EQUATIONS
+
+MINIMIZE_OFF
+
+/RF12 := I5 * RF19 +
+ /I5 * /RF19 +
+ /I7 * /I9 * RF12 +
+ I7 * I9 * /RF12 +
+ I3 * /I4 * I5 +
+ /I3 * I4 * /I5 +
+ /I2 * I6 +
+ I2 * /I6
+
+/RF13 := I8 * I9 * /RF12 +
+ /I7 * I8 +
+ I6 * I7 * /I8 * /RF13 +
+ I5 * /I7 * /I8 +
+ I5 * /I9 +
+ I4 * RF12 * RF13 +
+ /I2 * /I3 * /I9 +
+ /I4 * /I6
+
+/RF14 := /I4 * /I8 * RF13 +
+ I2 * /I4 +
+ I3 * /I4 * /RF13 +
+ /I4 * I5 * I6 +
+ /I4 * /I5 * I6 * /RF14 +
+ /I4 * /I5 * /I6 * I7 +
+ I7 * I8 * RF14 +
+ /I8 * /I9
+
+/RF15 := /I3 * /I4 +
+ I3 * I5 +
+ I6 * /RF14 +
+ I7 * I8 * RF14 +
+ I9 * /RF15 +
+ /I5 * /I8 +
+ I2 * RF15 +
+ I2 * I9
+
+/RF16 := I5 * I9 * /RF16 +
+ /I5 * /I9 * RF16 +
+ /I2 * /I3 +
+ I2 * I3 * I4 +
+ I5 * I6 * I7 * I8 * I9 * RF15 +
+ /I5 * /I6 * /I7 * /I8 * /I9 * /RF15 +
+ I6 * /I7 +
+ I9
+
+/RF17 := I9 +
+ I8 * /I9 +
+ /I2 * /RF16 +
+ /I2 * /I3 * /I9 +
+ /I3 * I4 * RF17 +
+ /I3 * I6 * I7 +
+ /I7 * /I9 +
+ I5 * RF16 * /RF17
+
+/RF18 := /RF17 +
+ /I2 * /I3 * /I4 * RF17 +
+ /I2 * /RF18 +
+ I7 +
+ I8 +
+ I9 +
+ /I2 * /I3 * /I4 * /I5 +
+ I6 * I7 * /I8 * /I9
+
+/RF19 := I2 +
+ /RF19 +
+ I3 +
+ /RF12 * RF19 +
+ /I5 * /I9 +
+ /I2 * I8 +
+ /I4 * I5 * RF12 +
+ I6 * /I8 * /I9
+
+MINIMIZE_ON
+
+;----------------------------------- Simulation Segment ------------
+SIMULATION
+
+;-------------------------------------------------------------------
diff --git a/regtests/jedutil/eqns/PALASM/readme.txt b/regtests/jedutil/eqns/PALASM/readme.txt
new file mode 100644
index 00000000000..299c24b80c7
--- /dev/null
+++ b/regtests/jedutil/eqns/PALASM/readme.txt
@@ -0,0 +1 @@
+These files are for use with the PALASM 4 v1.5 tool. The PALASM tool will take the pds files and automatically creates a jed file. (Under Windows 7 64-bit the PALASM tool will not run under the Windows XP VM downloadable for free with Windows 7, but will run under DOSBox.)
diff --git a/regtests/jedutil/eqns/ispLEVER_Classic/gal18v10/test1/gal18v10-test1.abl b/regtests/jedutil/eqns/ispLEVER_Classic/gal18v10/test1/gal18v10-test1.abl
new file mode 100644
index 00000000000..7bceee4386e
--- /dev/null
+++ b/regtests/jedutil/eqns/ispLEVER_Classic/gal18v10/test1/gal18v10-test1.abl
@@ -0,0 +1,138 @@
+MODULE gal18v10_test1
+
+TITLE 'GAL18V10 Test1'
+
+DECLARATIONS
+
+" Constants
+vcc = 1;
+
+" Inputs
+i1 pin 1;
+i2 pin 2;
+i3 pin 3;
+i4 pin 4;
+i5 pin 5;
+i6 pin 6;
+i7 pin 7;
+i8 pin 8;
+
+" Outputs
+o9 pin 9 istype 'com,pos,retain';
+o11 pin 11 istype 'com,neg,retain';
+o12 pin 12 istype 'com,pos,retain';
+o13 pin 13 istype 'com,neg,retain';
+o14 pin 14 istype 'com,pos,retain';
+o15 pin 15 istype 'com,neg,retain';
+o16 pin 16 istype 'com,pos,retain';
+o17 pin 17 istype 'com,neg,retain';
+o18 pin 18 istype 'com,pos,retain';
+o19 pin 19 istype 'com,neg,retain';
+
+EQUATIONS
+
+o9 = i1 & i2 #
+ !i3 #
+ o19 #
+ !i4 #
+ !i5 #
+ i6 #
+ i7 #
+ !i8 & !o19;
+o9.oe = vcc;
+
+!o11 = !i3 & !o9 #
+ !i1 #
+ i8 #
+ !i2 #
+ i5 #
+ i4 & o9 #
+ !i7 #
+ !i6;
+o11.oe = vcc;
+
+o12 = i4 #
+ i6 #
+ i3 & !o11 #
+ i5 #
+ i1 #
+ i2 #
+ !i8 #
+ i7 & o11;
+o12.oe = vcc;
+
+!o13 = !i5 & !o12 #
+ !i7 & o12 #
+ i8 #
+ !i1 #
+ i2 #
+ !i3 #
+ !i6 #
+ !i4;
+o13.oe = vcc;
+
+o14 = i2 & !i6 #
+ i1 & !o13 #
+ i4 & i5 #
+ i2 & !i7 & o13 #
+ i3 & i7 #
+ i6 & !i7 #
+ i8 #
+ !i1 & !i8 #
+ !i2 & !i3 & !i4 #
+ !i2 & i3 & !i5 & i8;
+o14.oe = vcc;
+
+!o15 = i7 & o14 #
+ !i7 & i8 #
+ i1 & i2 & i3 & i4 & i5 #
+ i6 & i7 & !i8 & !o14 #
+ i6 & i7 & !i8 #
+ !i3 & !i4 #
+ !i4 & o14 #
+ i5 #
+ !i2 & i7 #
+ i3 & i8;
+o15.oe = vcc;
+
+o16 = !i8 #
+ i7 #
+ !i6 #
+ i5 #
+ !i4 #
+ i3 #
+ !i2 & !o15 #
+ i1 & o15;
+o16.oe = vcc;
+
+!o17 = !i3 & i6 #
+ i8 #
+ i4 & !o16 #
+ !i1 #
+ !i5 #
+ i2 #
+ !i6 #
+ !i7 & o16;
+o17.oe = vcc;
+
+o18 = !i1 #
+ !i2 #
+ !i3 #
+ !i4 & o17 #
+ i5 & !o17 #
+ i6 #
+ i7 #
+ i8;
+o18.oe = vcc;
+
+!o19 = !i8 & !o18 #
+ !i7 #
+ !i6 #
+ !i5 #
+ i4 #
+ i3 #
+ i2 #
+ i1 & o18;
+o19.oe = vcc;
+
+END
diff --git a/regtests/jedutil/eqns/ispLEVER_Classic/gal18v10/test1/gal18v10-test1.syn b/regtests/jedutil/eqns/ispLEVER_Classic/gal18v10/test1/gal18v10-test1.syn
new file mode 100644
index 00000000000..c12724da6b9
--- /dev/null
+++ b/regtests/jedutil/eqns/ispLEVER_Classic/gal18v10/test1/gal18v10-test1.syn
@@ -0,0 +1,11 @@
+JDF B
+// Created by Version 1.6
+PROJECT Untitled
+DESIGN gal18v10 Normal
+DEVKIT GAL18V10-15LJ
+ENTRY ABEL/Schematic
+MODULE gal18v10-test1.abl
+MODSTYLE gal18v10_test1 Normal
+SYNTHESIS_TOOL Synplify
+SIMULATOR_TOOL ActiveHDL
+TOPMODULE gal18v10_test1
diff --git a/regtests/jedutil/eqns/ispLEVER_Classic/readme.txt b/regtests/jedutil/eqns/ispLEVER_Classic/readme.txt
new file mode 100644
index 00000000000..1a04f2afe1b
--- /dev/null
+++ b/regtests/jedutil/eqns/ispLEVER_Classic/readme.txt
@@ -0,0 +1 @@
+These files were created with Lattice Semiconductor's ispLEVER Classic v1.6 software. \ No newline at end of file
diff --git a/regtests/jedutil/eqns/pal10l8/pal10l8.eqn b/regtests/jedutil/eqns/pal10l8/pal10l8.eqn
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/regtests/jedutil/eqns/pal10l8/pal10l8.eqn
diff --git a/regtests/jedutil/eqns/pal12h6/pal12h6.eqn b/regtests/jedutil/eqns/pal12h6/pal12h6.eqn
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/regtests/jedutil/eqns/pal12h6/pal12h6.eqn
diff --git a/regtests/jedutil/eqns/pal12l6/pal12l6.eqn b/regtests/jedutil/eqns/pal12l6/pal12l6.eqn
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/regtests/jedutil/eqns/pal12l6/pal12l6.eqn
diff --git a/regtests/jedutil/eqns/pal14h4/pal14h4.eqn b/regtests/jedutil/eqns/pal14h4/pal14h4.eqn
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/regtests/jedutil/eqns/pal14h4/pal14h4.eqn
diff --git a/regtests/jedutil/eqns/pal14l4/pal14l4.eqn b/regtests/jedutil/eqns/pal14l4/pal14l4.eqn
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/regtests/jedutil/eqns/pal14l4/pal14l4.eqn
diff --git a/regtests/jedutil/eqns/pal16c1/pal16c1.eqn b/regtests/jedutil/eqns/pal16c1/pal16c1.eqn
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/regtests/jedutil/eqns/pal16c1/pal16c1.eqn
diff --git a/regtests/jedutil/eqns/pal16h2/pal16h2.eqn b/regtests/jedutil/eqns/pal16h2/pal16h2.eqn
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/regtests/jedutil/eqns/pal16h2/pal16h2.eqn
diff --git a/regtests/jedutil/eqns/pal16l2/pal16l2.eqn b/regtests/jedutil/eqns/pal16l2/pal16l2.eqn
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/regtests/jedutil/eqns/pal16l2/pal16l2.eqn
diff --git a/regtests/jedutil/eqns/pal16l8/pal16l8.eqn b/regtests/jedutil/eqns/pal16l8/pal16l8.eqn
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/regtests/jedutil/eqns/pal16l8/pal16l8.eqn
diff --git a/regtests/jedutil/eqns/pal16r4/pal16r4.eqn b/regtests/jedutil/eqns/pal16r4/pal16r4.eqn
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/regtests/jedutil/eqns/pal16r4/pal16r4.eqn
diff --git a/regtests/jedutil/eqns/pal16r6/pal16r6.eqn b/regtests/jedutil/eqns/pal16r6/pal16r6.eqn
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/regtests/jedutil/eqns/pal16r6/pal16r6.eqn
diff --git a/regtests/jedutil/eqns/pal16r8/pal16r8.eqn b/regtests/jedutil/eqns/pal16r8/pal16r8.eqn
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/regtests/jedutil/eqns/pal16r8/pal16r8.eqn
diff --git a/regtests/jedutil/eqns/pal20l10/pal20l10.eqn b/regtests/jedutil/eqns/pal20l10/pal20l10.eqn
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/regtests/jedutil/eqns/pal20l10/pal20l10.eqn
diff --git a/regtests/jedutil/eqns/pal20l8/pal20l8.eqn b/regtests/jedutil/eqns/pal20l8/pal20l8.eqn
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/regtests/jedutil/eqns/pal20l8/pal20l8.eqn
diff --git a/regtests/jedutil/eqns/pal20r4/pal20r4.eqn b/regtests/jedutil/eqns/pal20r4/pal20r4.eqn
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/regtests/jedutil/eqns/pal20r4/pal20r4.eqn
diff --git a/regtests/jedutil/eqns/pal20r6/pal20r6.eqn b/regtests/jedutil/eqns/pal20r6/pal20r6.eqn
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/regtests/jedutil/eqns/pal20r6/pal20r6.eqn
diff --git a/regtests/jedutil/eqns/pal20r8/pal20r8.eqn b/regtests/jedutil/eqns/pal20r8/pal20r8.eqn
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/regtests/jedutil/eqns/pal20r8/pal20r8.eqn
diff --git a/regtests/jedutil/eqns/readme.txt b/regtests/jedutil/eqns/readme.txt
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/regtests/jedutil/eqns/readme.txt
diff --git a/regtests/jedutil/jeds/18cv8/18cv8_bi-directional_io.jed b/regtests/jedutil/jeds/18cv8/18cv8_bi-directional_io.jed
new file mode 100644
index 00000000000..6f83ca39b17
--- /dev/null
+++ b/regtests/jedutil/jeds/18cv8/18cv8_bi-directional_io.jed
@@ -0,0 +1,104 @@
+JEDEC PLD file 18CV8_IO.JED created on Tue 11-20-2012 22:28:27
+Place Compile Version: 3.0.0
+PEEL18CV8 Test Data
+*QP20
+*QF2696
+*F0
+*
+N Output Pin 19*
+L0000 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L0036 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L0072 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L0108 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L0144 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L0180 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L0216 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L0252 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+
+N Output Pin 18*
+L0288 1111 1111 1111 1111 1111 1111 1011 0111 1101 *
+L0324 1111 1111 1111 1111 1111 1111 1111 1111 1110 *
+L0360 1110 1111 1111 1111 1111 1111 1101 1111 1011 *
+L0396 1111 1101 1111 1111 1101 1110 1111 1111 1111 *
+L0432 1111 1111 1111 1111 1110 1111 1110 1111 1111 *
+L0468 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L0504 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L0540 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+
+N Output Pin 17*
+L0576 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L0612 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L0648 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L0684 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L0720 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L0756 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L0792 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L0828 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+
+N Output Pin 16*
+L0864 1111 1111 1111 1111 1111 1111 1101 1111 1101 *
+L0900 1111 1111 1110 1111 1111 1111 1110 1111 1110 *
+L0936 1111 1111 1111 1111 1101 1111 1111 1101 1111 *
+L0972 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L1008 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L1044 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L1080 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L1116 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+
+N Output Pin 15*
+L1152 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L1188 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L1224 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L1260 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L1296 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L1332 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L1368 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L1404 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+
+N Output Pin 14*
+L1440 1101 1111 1111 1111 1111 1111 1110 1111 1111 *
+L1476 1111 1111 1110 1111 1101 1111 1111 1111 1111 *
+L1512 1111 1111 1101 1111 1110 1111 1111 1111 1101 *
+L1548 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L1584 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L1620 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L1656 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L1692 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+
+N Output Pin 13*
+L1728 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L1764 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L1800 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L1836 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L1872 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L1908 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L1944 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L1980 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+
+N Output Pin 12*
+L2016 0111 1011 1111 1111 1111 1111 1111 1111 1111 *
+L2052 1111 1111 1011 1011 1011 0111 1111 1111 1111 *
+L2088 1111 1111 1110 1111 1111 1111 1111 1111 1111 *
+L2124 1111 1111 1111 1111 1101 1111 1110 1101 1111 *
+L2160 1111 1111 1111 1111 1110 1101 1101 1111 1111 *
+L2196 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2232 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2268 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+
+N Output Enable 19,18,...12*
+L2304 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2340 1111 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2376 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2412 1111 1111 1101 1111 1111 1111 1111 1111 1111 *
+L2448 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2484 1111 1111 1111 1111 1111 1111 1111 1111 1110 *
+L2520 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2556 1111 1111 1101 1111 1111 1111 1111 1111 1111 *
+
+N Sync Preset, Async Clear, Macrocell 19,18,...12*
+L2592 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2628 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2664 0011 1011 0011 1111 1011 0111 0011 0011 *
+
+C2E3B*
+0000
diff --git a/regtests/jedutil/jeds/18cv8/18cv8_combinatorial_feedback.jed b/regtests/jedutil/jeds/18cv8/18cv8_combinatorial_feedback.jed
new file mode 100644
index 00000000000..be1ae2dd7ad
--- /dev/null
+++ b/regtests/jedutil/jeds/18cv8/18cv8_combinatorial_feedback.jed
@@ -0,0 +1,104 @@
+JEDEC PLD file 18CV8_~1.JED created on Sun 11-25-2012 21:36:51
+Place Compile Version: 3.0.0
+PEEL18CV8 Combinatorial Feedback Test Data
+*QP20
+*QF2696
+*F0
+*
+N Output Pin 19*
+L0000 1111 1111 1110 1110 1101 1111 1111 1110 1111 *
+L0036 1110 1111 1111 1111 1111 1101 1111 1111 1011 *
+L0072 1111 1111 1111 1111 1111 1110 1011 0101 1111 *
+L0108 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L0144 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L0180 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L0216 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L0252 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+
+N Output Pin 18*
+L0288 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L0324 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L0360 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L0396 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L0432 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L0468 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L0504 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L0540 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+
+N Output Pin 17*
+L0576 1111 1101 1111 1111 1111 1111 1111 1111 1111 *
+L0612 1111 1110 1111 1111 1101 1101 1111 1101 1111 *
+L0648 1111 1111 1111 1111 1111 1110 1111 1110 1111 *
+L0684 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L0720 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L0756 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L0792 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L0828 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+
+N Output Pin 16*
+L0864 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L0900 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L0936 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L0972 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L1008 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L1044 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L1080 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L1116 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+
+N Output Pin 15*
+L1152 1111 1110 1111 1101 1111 1111 1111 1111 1111 *
+L1188 1111 1101 1111 1111 1111 1111 1111 1111 1111 *
+L1224 1101 1111 1111 1110 1111 1111 1111 1110 1110 *
+L1260 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L1296 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L1332 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L1368 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L1404 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+
+N Output Pin 14*
+L1440 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L1476 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L1512 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L1548 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L1584 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L1620 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L1656 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L1692 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+
+N Output Pin 13*
+L1728 1111 1111 1011 1011 1011 0111 1111 1111 1111 *
+L1764 0111 1010 1111 1111 1111 1111 1111 1111 1111 *
+L1800 1111 1101 1111 1110 1111 1111 1111 1111 1111 *
+L1836 1111 1111 1111 1111 1111 1101 1101 1111 1111 *
+L1872 1111 1111 1111 1111 1111 1110 1111 1111 1101 *
+L1908 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L1944 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L1980 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+
+N Output Pin 12*
+L2016 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2052 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2088 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2124 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2160 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2196 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2232 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2268 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+
+N Output Enable 19,18,...12*
+L2304 1111 1111 1111 1101 1111 1111 1111 1111 1111 *
+L2340 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2376 1111 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2412 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2448 1111 1111 1111 1111 1111 1111 1111 1101 1111 *
+L2484 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2520 1111 1111 1111 1101 1111 1111 1111 1111 1111 *
+L2556 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+
+N Sync Preset, Async Clear, Macrocell 19,18,...12*
+L2592 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2628 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2664 1010 1011 0010 1011 0110 0011 1110 0011 *
+
+C2709*
+0000
diff --git a/regtests/jedutil/jeds/18cv8/18cv8_register_feedback.jed b/regtests/jedutil/jeds/18cv8/18cv8_register_feedback.jed
new file mode 100644
index 00000000000..b700660675d
--- /dev/null
+++ b/regtests/jedutil/jeds/18cv8/18cv8_register_feedback.jed
@@ -0,0 +1,104 @@
+JEDEC PLD file 18CV8_~1.JED created on Mon 11-26-2012 22:21:12
+Place Compile Version: 3.0.0
+PEEL18CV8 Register Feedback Test Data
+*QP20
+*QF2696
+*F0
+*
+N Output Pin 19*
+L0000 1111 1111 1111 1101 1111 1111 1111 1101 1111 *
+L0036 1111 1111 1111 1110 1111 1110 1111 0111 1111 *
+L0072 0111 0111 1111 1111 1111 1101 1111 1111 1111 *
+L0108 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L0144 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L0180 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L0216 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L0252 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+
+N Output Pin 18*
+L0288 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L0324 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L0360 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L0396 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L0432 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L0468 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L0504 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L0540 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+
+N Output Pin 17*
+L0576 1111 1111 1111 1111 1111 1111 1111 1101 1111 *
+L0612 0111 1111 1111 1111 1101 1101 1111 1110 1111 *
+L0648 1111 1101 1111 1111 1111 1110 1111 1111 1111 *
+L0684 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L0720 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L0756 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L0792 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L0828 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+
+N Output Pin 16*
+L0864 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L0900 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L0936 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L0972 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L1008 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L1044 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L1080 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L1116 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+
+N Output Pin 15*
+L1152 1111 1111 1111 1101 1111 1111 1111 1111 1111 *
+L1188 1111 1101 1111 1111 1111 1111 1111 1110 1111 *
+L1224 1111 1110 1111 1110 1111 1111 1111 1101 1111 *
+L1260 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L1296 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L1332 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L1368 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L1404 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+
+N Output Pin 14*
+L1440 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L1476 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L1512 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L1548 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L1584 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L1620 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L1656 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L1692 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+
+N Output Pin 13*
+L1728 1111 1111 0111 1110 1111 1111 1111 1111 1111 *
+L1764 1111 1111 1111 1111 1111 1110 1111 1111 1110 *
+L1800 1111 1111 1111 1101 1111 1101 1111 1111 1111 *
+L1836 1111 1101 1111 1111 1111 1111 0111 1111 1111 *
+L1872 1111 1110 1111 1111 1111 1111 1111 1111 1011 *
+L1908 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L1944 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L1980 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+
+N Output Pin 12*
+L2016 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2052 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2088 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2124 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2160 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2196 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2232 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2268 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+
+N Output Enable 19,18,...12*
+L2304 1111 1111 1111 1111 1111 1111 1111 1110 1111 *
+L2340 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2376 1111 1110 1111 1111 1111 1111 1111 1111 1111 *
+L2412 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2448 1111 1111 1111 1110 1111 1111 1111 1111 1111 *
+L2484 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2520 1111 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2556 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+
+N Sync Preset, Async Clear, Macrocell 19,18,...12*
+L2592 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2628 0000 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2664 0100 1011 1000 1011 1100 0011 0000 0011 *
+
+C2808*
+0000
diff --git a/regtests/jedutil/jeds/18cv8/pal10h8-to-peel18cv8.jed b/regtests/jedutil/jeds/18cv8/pal10h8-to-peel18cv8.jed
new file mode 100644
index 00000000000..254cf7ad47f
--- /dev/null
+++ b/regtests/jedutil/jeds/18cv8/pal10h8-to-peel18cv8.jed
@@ -0,0 +1,104 @@
+
+ JEDEC PEEL file Translated from: PAL10H8 Mon 10-8-2012 22:35:56
+ PA
+*QP20
+*QF2696
+*F0
+ *
+N Output Pin 19 *
+L0000 0111 0111 0111 0111 0111 0111 0111 1011 1111 *
+L0036 1101 1111 1111 1111 1111 1111 1111 1111 1111 *
+L0072 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0108 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0144 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0180 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0216 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0252 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Output Pin 18 *
+L0288 0111 0111 0111 0111 0111 0111 1011 0111 1111 *
+L0324 1101 1111 1111 1111 1111 1111 1111 1111 1011 *
+L0360 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0396 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0432 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0468 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0504 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0540 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Output Pin 17 *
+L0576 0111 0111 0111 0111 0111 1011 0111 0111 1111 *
+L0612 1110 1111 1111 1111 1111 1111 1111 1111 0111 *
+L0648 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0684 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0720 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0756 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0792 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0828 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Output Pin 16 *
+L0864 0111 0111 0111 0111 1011 0111 0111 0111 1111 *
+L0900 1110 1111 1111 1111 1111 1111 1111 1111 1011 *
+L0936 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0972 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1008 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1044 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1080 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1116 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Output Pin 15 *
+L1152 0111 0111 0111 1011 0111 0111 0111 0111 1111 *
+L1188 1110 1111 1111 1111 1111 1111 1111 1111 1011 *
+L1224 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1260 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1296 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1332 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1368 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1404 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Output Pin 14 *
+L1440 0111 0111 1011 0111 0111 0111 0111 0111 1111 *
+L1476 1110 1111 1111 1111 1111 1111 1111 1111 0111 *
+L1512 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1548 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1584 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1620 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1656 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1692 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Output Pin 13 *
+L1728 0111 1011 0111 0111 0111 0111 0111 0111 1111 *
+L1764 1101 1111 1111 1111 1111 1111 1111 1111 1011 *
+L1800 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1836 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1872 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1908 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1944 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1980 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Output Pin 12 *
+L2016 1011 0111 0111 0111 0111 0111 0111 0111 1111 *
+L2052 1101 1111 1111 1111 1111 1111 1111 1111 0111 *
+L2088 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2124 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2160 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2196 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2232 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2268 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Output Enable 19,18,...12 *
+L2304 1111 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2340 1111 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2376 1111 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2412 1111 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2448 1111 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2484 1111 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2520 1111 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2556 1111 1111 1111 1111 1111 1111 1111 1111 1111 *
+
+N Sync Preset, Async Clear, Macrocell 19,18,...12 *
+L2592 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2628 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2664 0011 0011 0011 0011 0011 0011 0011 0011 *
+
+C68B0 *
+0000
diff --git a/regtests/jedutil/jeds/18cv8/pal10l8-to-peel18cv8.jed b/regtests/jedutil/jeds/18cv8/pal10l8-to-peel18cv8.jed
new file mode 100644
index 00000000000..79ebec4b4c7
--- /dev/null
+++ b/regtests/jedutil/jeds/18cv8/pal10l8-to-peel18cv8.jed
@@ -0,0 +1,104 @@
+
+ JEDEC PEEL file Translated from: PAL10L8 Mon 10-8-2012 22:38:46
+ PA
+*QP20
+*QF2696
+*F0
+ *
+N Output Pin 19 *
+L0000 0111 0111 0111 0111 0111 0111 0111 1011 1111 *
+L0036 1111 1111 1111 1111 1111 1111 1111 1111 1011 *
+L0072 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0108 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0144 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0180 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0216 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0252 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Output Pin 18 *
+L0288 0111 0111 0111 0111 0111 0111 1011 0111 1111 *
+L0324 1101 1111 1111 1111 1111 1111 1111 1111 1111 *
+L0360 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0396 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0432 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0468 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0504 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0540 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Output Pin 17 *
+L0576 0111 0111 0111 0111 0111 1011 0111 0111 1111 *
+L0612 1110 1111 1111 1111 1111 1111 1111 1111 0111 *
+L0648 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0684 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0720 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0756 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0792 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0828 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Output Pin 16 *
+L0864 0111 0111 0111 0111 1011 0111 0111 0111 1111 *
+L0900 1110 1111 1111 1111 1111 1111 1111 1111 1011 *
+L0936 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0972 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1008 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1044 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1080 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1116 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Output Pin 15 *
+L1152 0111 0111 0111 1011 0111 0111 0111 0111 1111 *
+L1188 1110 1111 1111 1111 1111 1111 1111 1111 1011 *
+L1224 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1260 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1296 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1332 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1368 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1404 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Output Pin 14 *
+L1440 0111 0111 1011 0111 0111 0111 0111 0111 1111 *
+L1476 1110 1111 1111 1111 1111 1111 1111 1111 0111 *
+L1512 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1548 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1584 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1620 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1656 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1692 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Output Pin 13 *
+L1728 0111 1011 0111 0111 0111 0111 0111 0111 1111 *
+L1764 1101 1111 1111 1111 1111 1111 1111 1111 1011 *
+L1800 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1836 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1872 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1908 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1944 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1980 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Output Pin 12 *
+L2016 1011 0111 0111 0111 0111 0111 0111 0111 1111 *
+L2052 1101 1111 1111 1111 1111 1111 1111 1111 0111 *
+L2088 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2124 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2160 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2196 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2232 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2268 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Output Enable 19,18,...12 *
+L2304 1111 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2340 1111 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2376 1111 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2412 1111 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2448 1111 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2484 1111 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2520 1111 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2556 1111 1111 1111 1111 1111 1111 1111 1111 1111 *
+
+N Sync Preset, Async Clear, Macrocell 19,18,...12 *
+L2592 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2628 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2664 1011 1011 1011 1011 1011 1011 1011 1011 *
+
+C6934 *
+0000
diff --git a/regtests/jedutil/jeds/18cv8/pal12h6-to-peel18cv8.jed b/regtests/jedutil/jeds/18cv8/pal12h6-to-peel18cv8.jed
new file mode 100644
index 00000000000..00224ad32a2
--- /dev/null
+++ b/regtests/jedutil/jeds/18cv8/pal12h6-to-peel18cv8.jed
@@ -0,0 +1,104 @@
+
+ JEDEC PEEL file Translated from: PAL12H6 Mon 10-8-2012 22:39:42
+ PA
+*QP20
+*QF2696
+*F0
+ *
+N Output Pin 19 *
+L0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0036 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0072 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0108 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0144 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0180 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0216 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0252 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Output Pin 18 *
+L0288 0111 0111 0111 0111 0111 1011 0111 0111 1111 *
+L0324 1101 1111 1111 1111 1111 1111 1111 1111 1011 *
+L0360 1111 1101 1111 1111 1111 1111 1111 1111 1111 *
+L0396 1111 1111 1111 1111 1111 1111 1111 1111 1110 *
+L0432 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0468 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0504 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0540 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Output Pin 17 *
+L0576 0111 0111 0111 0111 1011 0111 0111 0111 1111 *
+L0612 1110 1111 1111 1111 1111 1111 1111 1111 1011 *
+L0648 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0684 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0720 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0756 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0792 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0828 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Output Pin 16 *
+L0864 0111 0111 0111 0111 0111 0111 1011 0111 1111 *
+L0900 1110 1111 1111 1111 1111 1111 1111 1111 0111 *
+L0936 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0972 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1008 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1044 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1080 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1116 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Output Pin 15 *
+L1152 0111 0111 0111 1011 0111 0111 0111 0111 1111 *
+L1188 1110 1111 1111 1111 1111 1111 1111 1111 1011 *
+L1224 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1260 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1296 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1332 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1368 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1404 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Output Pin 14 *
+L1440 0111 1011 0111 0111 0111 0111 0111 0111 1111 *
+L1476 1101 1111 1111 1111 1111 1111 1111 1111 1011 *
+L1512 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1548 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1584 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1620 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1656 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1692 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Output Pin 13 *
+L1728 1011 0111 0111 0111 0111 0111 0111 0111 1111 *
+L1764 1101 1111 1111 1111 1111 1111 1111 1111 0111 *
+L1800 1111 1110 1111 1111 1111 1111 1111 1111 1111 *
+L1836 1111 1111 1111 1111 1111 1111 1111 1111 1101 *
+L1872 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1908 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1944 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1980 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Output Pin 12 *
+L2016 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2052 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2088 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2124 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2160 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2196 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2232 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2268 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Output Enable 19,18,...12 *
+L2304 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2340 1111 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2376 1111 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2412 1111 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2448 1111 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2484 1111 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2520 1111 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2556 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Sync Preset, Async Clear, Macrocell 19,18,...12 *
+L2592 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2628 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2664 0011 0011 0011 0011 0011 0011 0011 0011 *
+
+C5FA2 *
+0000
diff --git a/regtests/jedutil/jeds/18cv8/pal12l6-to-peel18cv8.jed b/regtests/jedutil/jeds/18cv8/pal12l6-to-peel18cv8.jed
new file mode 100644
index 00000000000..05f7ccb8a50
--- /dev/null
+++ b/regtests/jedutil/jeds/18cv8/pal12l6-to-peel18cv8.jed
@@ -0,0 +1,104 @@
+
+ JEDEC PEEL file Translated from: PAL12L6 Mon 10-8-2012 22:40:14
+ PA
+*QP20
+*QF2696
+*F0
+ *
+N Output Pin 19 *
+L0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0036 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0072 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0108 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0144 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0180 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0216 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0252 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Output Pin 18 *
+L0288 0111 0111 0111 0111 0111 1011 0111 0111 1111 *
+L0324 1101 1111 1111 1111 1111 1111 1111 1111 1011 *
+L0360 1111 1101 1111 1111 1111 1111 1111 1111 1111 *
+L0396 1111 1111 1111 1111 1111 1111 1111 1111 1110 *
+L0432 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0468 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0504 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0540 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Output Pin 17 *
+L0576 0111 0111 0111 0111 1011 0111 0111 0111 1111 *
+L0612 1110 1111 1111 1111 1111 1111 1111 1111 1011 *
+L0648 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0684 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0720 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0756 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0792 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0828 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Output Pin 16 *
+L0864 0111 0111 0111 1011 0111 0111 0111 0111 1111 *
+L0900 1110 1111 1111 1111 1111 1111 1111 1111 1011 *
+L0936 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0972 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1008 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1044 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1080 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1116 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Output Pin 15 *
+L1152 0111 0111 1011 0111 0111 0111 0111 0111 1111 *
+L1188 1101 1111 1111 1111 1111 1111 1111 1111 0111 *
+L1224 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1260 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1296 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1332 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1368 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1404 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Output Pin 14 *
+L1440 0111 1011 0111 0111 0111 0111 0111 0111 1111 *
+L1476 1101 1111 1111 1111 1111 1111 1111 1111 1011 *
+L1512 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1548 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1584 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1620 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1656 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1692 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Output Pin 13 *
+L1728 1011 0111 0111 0111 0111 0111 0111 0111 1111 *
+L1764 1101 1111 1111 1111 1111 1111 1111 1111 0111 *
+L1800 1111 1110 1111 1111 1111 1111 1111 1111 1111 *
+L1836 1111 1111 1111 1111 1111 1111 1111 1111 1101 *
+L1872 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1908 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1944 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1980 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Output Pin 12 *
+L2016 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2052 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2088 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2124 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2160 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2196 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2232 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2268 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Output Enable 19,18,...12 *
+L2304 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2340 1111 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2376 1111 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2412 1111 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2448 1111 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2484 1111 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2520 1111 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2556 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Sync Preset, Async Clear, Macrocell 19,18,...12 *
+L2592 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2628 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2664 1011 1011 1011 1011 1011 1011 1011 1011 *
+
+C6026 *
+0000
diff --git a/regtests/jedutil/jeds/18cv8/pal14h4-to-peel18cv8.jed b/regtests/jedutil/jeds/18cv8/pal14h4-to-peel18cv8.jed
new file mode 100644
index 00000000000..f730b3df2c1
--- /dev/null
+++ b/regtests/jedutil/jeds/18cv8/pal14h4-to-peel18cv8.jed
@@ -0,0 +1,104 @@
+
+ JEDEC PEEL file Translated from: PAL14H4 Mon 10-8-2012 22:40:43
+ PA
+*QP20
+*QF2696
+*F0
+ *
+N Output Pin 19 *
+L0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0036 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0072 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0108 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0144 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0180 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0216 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0252 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Output Pin 18 *
+L0288 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0324 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0360 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0396 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0432 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0468 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0504 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0540 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Output Pin 17 *
+L0576 0111 0111 0111 1011 0111 0111 0111 0111 1111 *
+L0612 1101 1111 1111 1111 1111 1111 1111 1111 0111 *
+L0648 1111 1111 1111 1111 1111 1111 1111 1101 1110 *
+L0684 1111 1101 1101 1111 1111 1111 1111 1111 1111 *
+L0720 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0756 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0792 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0828 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Output Pin 16 *
+L0864 0111 0111 1011 0111 0111 0111 0111 0111 1111 *
+L0900 1101 1111 1111 1111 1111 1111 1111 1111 1011 *
+L0936 1111 1111 1111 1111 1111 1111 1111 1110 1101 *
+L0972 1111 1110 1110 1111 1111 1111 1111 1111 1111 *
+L1008 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1044 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1080 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1116 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Output Pin 15 *
+L1152 0111 1011 0111 0111 0111 0111 0111 0111 1111 *
+L1188 1110 1111 1111 1111 1111 1111 1111 1111 0111 *
+L1224 1111 1111 1111 1111 1111 1111 1111 1101 1101 *
+L1260 1111 1101 1110 1111 1111 1111 1111 1111 1111 *
+L1296 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1332 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1368 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1404 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Output Pin 14 *
+L1440 1011 0111 0111 0111 0111 0111 0111 0111 1111 *
+L1476 1101 1111 1111 1111 1111 1111 1111 1111 0111 *
+L1512 1111 1111 1111 1111 1111 1111 1111 1110 1110 *
+L1548 1111 1110 1101 1111 1111 1111 1111 1111 1111 *
+L1584 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1620 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1656 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1692 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Output Pin 13 *
+L1728 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1764 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1800 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1836 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1872 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1908 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1944 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1980 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Output Pin 12 *
+L2016 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2052 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2088 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2124 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2160 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2196 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2232 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2268 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Output Enable 19,18,...12 *
+L2304 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2340 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2376 1111 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2412 1111 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2448 1111 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2484 1111 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2520 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2556 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Sync Preset, Async Clear, Macrocell 19,18,...12 *
+L2592 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2628 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2664 0011 0011 0011 0011 0011 0011 0011 0011 *
+
+C56E4 *
+0000
diff --git a/regtests/jedutil/jeds/18cv8/pal14l4-to-peel18cv8.jed b/regtests/jedutil/jeds/18cv8/pal14l4-to-peel18cv8.jed
new file mode 100644
index 00000000000..c6cd50656f4
--- /dev/null
+++ b/regtests/jedutil/jeds/18cv8/pal14l4-to-peel18cv8.jed
@@ -0,0 +1,104 @@
+
+ JEDEC PEEL file Translated from: PAL14L4 Mon 10-8-2012 22:41:22
+ PA
+*QP20
+*QF2696
+*F0
+ *
+N Output Pin 19 *
+L0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0036 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0072 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0108 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0144 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0180 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0216 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0252 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Output Pin 18 *
+L0288 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0324 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0360 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0396 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0432 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0468 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0504 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0540 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Output Pin 17 *
+L0576 0111 0111 0111 0111 0111 1011 0111 0111 1111 *
+L0612 1101 1111 1111 1111 1111 1111 1111 1111 1011 *
+L0648 1111 1111 1111 1111 1111 1111 1111 1110 1110 *
+L0684 1111 1110 1110 1111 1111 1111 1111 1111 1111 *
+L0720 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0756 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0792 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0828 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Output Pin 16 *
+L0864 0111 0111 0111 0111 1011 0111 0111 0111 1111 *
+L0900 1110 1111 1111 1111 1111 1111 1111 1111 1011 *
+L0936 1111 1111 1111 1111 1111 1111 1111 1101 1101 *
+L0972 1111 1110 1101 1111 1111 1111 1111 1111 1111 *
+L1008 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1044 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1080 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1116 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Output Pin 15 *
+L1152 0111 0111 0111 1011 0111 0111 0111 0111 1111 *
+L1188 1110 1111 1111 1111 1111 1111 1111 1111 1011 *
+L1224 1111 1111 1111 1111 1111 1111 1111 1101 1110 *
+L1260 1111 1101 1110 1111 1111 1111 1111 1111 1111 *
+L1296 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1332 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1368 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1404 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Output Pin 14 *
+L1440 0111 1011 0111 0111 0111 0111 0111 0111 1111 *
+L1476 1101 1111 1111 1111 1111 1111 1111 1111 1011 *
+L1512 1111 1111 1111 1111 1111 1111 1111 1110 1101 *
+L1548 1111 1101 1101 1111 1111 1111 1111 1111 1111 *
+L1584 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1620 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1656 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1692 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Output Pin 13 *
+L1728 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1764 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1800 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1836 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1872 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1908 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1944 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1980 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Output Pin 12 *
+L2016 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2052 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2088 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2124 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2160 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2196 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2232 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2268 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Output Enable 19,18,...12 *
+L2304 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2340 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2376 1111 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2412 1111 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2448 1111 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2484 1111 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2520 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2556 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Sync Preset, Async Clear, Macrocell 19,18,...12 *
+L2592 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2628 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2664 1011 1011 1011 1011 1011 1011 1011 1011 *
+
+C56A9 *
+0000
diff --git a/regtests/jedutil/jeds/18cv8/pal16h2-to-peel18cv8.jed b/regtests/jedutil/jeds/18cv8/pal16h2-to-peel18cv8.jed
new file mode 100644
index 00000000000..ede3e96cf91
--- /dev/null
+++ b/regtests/jedutil/jeds/18cv8/pal16h2-to-peel18cv8.jed
@@ -0,0 +1,104 @@
+
+ JEDEC PEEL file Translated from: PAL16H2 Mon 10-8-2012 22:42:12
+ PA
+*QP20
+*QF2696
+*F0
+ *
+N Output Pin 19 *
+L0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0036 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0072 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0108 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0144 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0180 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0216 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0252 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Output Pin 18 *
+L0288 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0324 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0360 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0396 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0432 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0468 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0504 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0540 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Output Pin 17 *
+L0576 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0612 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0648 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0684 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0720 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0756 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0792 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0828 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Output Pin 16 *
+L0864 0111 0111 1011 0111 1011 0111 0111 0111 1111 *
+L0900 1111 1111 1111 1111 1111 1111 1111 1111 1011 *
+L0936 1101 1111 1111 1111 1111 1111 1111 1111 1111 *
+L0972 1111 1111 1111 1111 1111 1111 1111 1111 1110 *
+L1008 1111 1111 1111 1111 1111 1111 1111 1101 1111 *
+L1044 1111 1111 1111 1111 1111 1111 1110 1111 1111 *
+L1080 1111 1111 1111 1101 1111 1111 1111 1111 1111 *
+L1116 1111 1101 1110 1111 1111 1111 1111 1111 1111 *
+
+N Output Pin 15 *
+L1152 0111 0111 0111 1011 0111 1011 0111 0111 1111 *
+L1188 1111 1111 1111 1111 1111 1111 1111 1111 0111 *
+L1224 1110 1111 1111 1111 1111 1111 1111 1111 1111 *
+L1260 1111 1111 1111 1111 1111 1111 1111 1111 1101 *
+L1296 1111 1111 1111 1111 1111 1111 1111 1110 1111 *
+L1332 1111 1111 1111 1111 1111 1111 1101 1111 1111 *
+L1368 1111 1111 1111 1110 1111 1111 1111 1111 1111 *
+L1404 1111 1110 1101 1111 1111 1111 1111 1111 1111 *
+
+N Output Pin 14 *
+L1440 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1476 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1512 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1548 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1584 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1620 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1656 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1692 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Output Pin 13 *
+L1728 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1764 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1800 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1836 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1872 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1908 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1944 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1980 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Output Pin 12 *
+L2016 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2052 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2088 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2124 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2160 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2196 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2232 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2268 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Output Enable 19,18,...12 *
+L2304 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2340 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2376 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2412 1111 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2448 1111 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2484 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2520 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2556 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Sync Preset, Async Clear, Macrocell 19,18,...12 *
+L2592 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2628 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2664 0011 0011 0011 0011 0011 0011 0011 0011 *
+
+C4F2D *
+0000
diff --git a/regtests/jedutil/jeds/18cv8/pal16l2-to-peel18cv8.jed b/regtests/jedutil/jeds/18cv8/pal16l2-to-peel18cv8.jed
new file mode 100644
index 00000000000..407ad2b8262
--- /dev/null
+++ b/regtests/jedutil/jeds/18cv8/pal16l2-to-peel18cv8.jed
@@ -0,0 +1,104 @@
+
+ JEDEC PEEL file Translated from: PAL16L2 Mon 10-8-2012 22:42:40
+ PA
+*QP20
+*QF2696
+*F0
+ *
+N Output Pin 19 *
+L0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0036 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0072 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0108 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0144 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0180 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0216 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0252 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Output Pin 18 *
+L0288 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0324 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0360 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0396 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0432 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0468 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0504 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0540 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Output Pin 17 *
+L0576 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0612 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0648 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0684 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0720 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0756 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0792 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0828 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Output Pin 16 *
+L0864 0111 0111 0111 0111 0111 0111 1011 0111 1111 *
+L0900 1111 1111 1111 1111 1111 1111 1111 1111 0111 *
+L0936 1101 1111 1111 1111 1111 1111 1111 1111 1111 *
+L0972 1111 1111 1111 1111 1111 1111 1111 1111 1101 *
+L1008 1111 1111 1111 1111 1111 1111 1111 1110 1111 *
+L1044 1111 1111 1111 1111 1111 1111 1110 1111 1111 *
+L1080 1111 1111 1111 1110 1111 1111 1111 1111 1111 *
+L1116 1111 1110 1110 1111 1111 1111 1111 1111 1111 *
+
+N Output Pin 15 *
+L1152 0111 0111 0111 1011 0111 0111 0111 0111 1111 *
+L1188 1111 1111 1111 1111 1111 1111 1111 1111 1011 *
+L1224 1110 1111 1111 1111 1111 1111 1111 1111 1111 *
+L1260 1111 1111 1111 1111 1111 1111 1111 1111 1110 *
+L1296 1111 1111 1111 1111 1111 1111 1111 1101 1111 *
+L1332 1111 1111 1111 1111 1111 1111 1101 1111 1111 *
+L1368 1111 1111 1111 1101 1111 1111 1111 1111 1111 *
+L1404 1111 1101 1101 1111 1111 1111 1111 1111 1111 *
+
+N Output Pin 14 *
+L1440 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1476 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1512 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1548 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1584 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1620 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1656 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1692 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Output Pin 13 *
+L1728 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1764 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1800 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1836 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1872 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1908 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1944 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1980 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Output Pin 12 *
+L2016 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2052 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2088 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2124 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2160 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2196 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2232 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2268 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Output Enable 19,18,...12 *
+L2304 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2340 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2376 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2412 1111 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2448 1111 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2484 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2520 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2556 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+
+N Sync Preset, Async Clear, Macrocell 19,18,...12 *
+L2592 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2628 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2664 1011 1011 1011 1011 1011 1011 1011 1011 *
+
+C4F82 *
+0000
diff --git a/regtests/jedutil/jeds/18cv8/pal16l8-to-peel18cv8.jed b/regtests/jedutil/jeds/18cv8/pal16l8-to-peel18cv8.jed
new file mode 100644
index 00000000000..083555451cd
--- /dev/null
+++ b/regtests/jedutil/jeds/18cv8/pal16l8-to-peel18cv8.jed
@@ -0,0 +1,104 @@
+
+ JEDEC PEEL file Translated from: PAL16L8 Mon 10-8-2012 22:43:12
+ PA
+*QP20
+*QF2696
+*F0
+ *
+N Output Pin 19 *
+L0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0036 1101 1111 1111 1111 0111 0111 1011 1111 1111 *
+L0072 1111 1111 0111 1111 1111 0111 0111 1111 1111 *
+L0108 1111 1111 1111 1111 0111 1111 1111 1111 1111 *
+L0144 1111 1111 1111 1111 1111 0111 1111 1111 1111 *
+L0180 1111 1111 1111 1111 1111 1111 0111 1111 1111 *
+L0216 1101 1111 1111 1111 1111 1111 1111 1111 1111 *
+L0252 1111 1111 1111 1111 1111 1111 1011 1111 1111 *
+
+N Output Pin 18 *
+L0288 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0324 1111 1011 1111 1111 0111 0111 1011 1111 1111 *
+L0360 1101 1111 0111 1111 1111 0111 0111 1111 1111 *
+L0396 1111 1111 0111 1111 1111 1111 1111 1111 1111 *
+L0432 1111 1011 1111 1111 1111 1111 1011 1111 1111 *
+L0468 1101 1111 0111 1111 1111 1111 1111 1111 1111 *
+L0504 1111 1111 1111 1111 0111 0111 1011 1111 1111 *
+L0540 1101 1111 1111 1111 1111 1111 0111 1111 1111 *
+
+N Output Pin 17 *
+L0576 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0612 1111 0111 1111 1111 0111 0111 1011 1111 1111 *
+L0648 1111 0111 1110 1111 1111 1111 1111 1111 1111 *
+L0684 1111 1111 1111 1111 0111 1111 1111 1111 1111 *
+L0720 1111 1111 1111 1111 1111 0111 1111 1111 1111 *
+L0756 1111 1111 1101 1111 1111 1111 1011 1111 1111 *
+L0792 1111 0111 1111 1111 1111 1111 1011 1111 1111 *
+L0828 1111 1111 1111 1111 0111 0111 1111 1111 1111 *
+
+N Output Pin 16 *
+L0864 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0900 1111 1111 1011 1110 1111 1111 1111 1111 1111 *
+L0936 1110 1111 1111 1011 1111 1111 1111 1111 1111 *
+L0972 1111 1111 1011 1011 1111 1111 1111 1111 1111 *
+L1008 1111 1111 1011 0111 1111 1111 1111 1111 1111 *
+L1044 1111 1111 1111 1101 1111 1111 1011 1111 1111 *
+L1080 1110 1111 1111 1111 1111 1111 1011 1111 1111 *
+L1116 1111 1111 1111 0111 1111 1111 1111 1111 1111 *
+
+N Output Pin 15 *
+L1152 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1188 1110 1111 0111 1111 1111 0111 0111 1111 1111 *
+L1224 1111 1111 1111 1111 1101 0111 1111 1111 1111 *
+L1260 1111 1111 0111 1111 1110 1111 1111 1111 1111 *
+L1296 1111 1111 1111 1111 1111 1111 0111 1111 1111 *
+L1332 1110 1111 1111 1111 1111 1111 1111 1111 1111 *
+L1368 1111 1111 1111 1111 1111 0111 0111 1111 1111 *
+L1404 1110 1111 1111 1111 1111 1111 0111 1111 1111 *
+
+N Output Pin 14 *
+L1440 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1476 0111 1111 1111 1111 1111 1110 1111 1111 1111 *
+L1512 1111 1111 1111 1111 1111 1111 1111 1011 1111 *
+L1548 0111 1111 1111 1111 1111 1111 1111 1011 1111 *
+L1584 0111 1011 1111 1111 1111 1110 1111 1111 1111 *
+L1620 1111 1011 1111 1111 1111 1111 1111 1111 1111 *
+L1656 1111 0111 1111 1111 1111 1101 1111 1011 1111 *
+L1692 1111 1111 0111 1111 1111 1111 1111 1111 1111 *
+
+N Output Pin 13 *
+L1728 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1764 1101 1111 1111 1111 1111 1111 1110 1111 1111 *
+L1800 1111 1111 1111 1111 1111 1111 1111 1111 1011 *
+L1836 1111 1111 1111 1111 1111 1111 1111 0111 1111 *
+L1872 1111 1111 1111 1111 1111 1111 1011 1111 1111 *
+L1908 1111 1111 1111 1111 1111 1011 1101 1111 1111 *
+L1944 1111 1111 1111 1111 0111 1111 1111 1111 1111 *
+L1980 1111 1111 1111 0111 1111 1111 1111 1111 1111 *
+
+N Output Pin 12 *
+L2016 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2052 1111 1111 0111 1111 1111 1111 0111 1111 1011 *
+L2088 0111 1111 1111 1111 1111 1111 1111 1101 1111 *
+L2124 1111 1111 0111 1111 1111 1111 1111 1111 1111 *
+L2160 1111 1111 1111 1111 1111 1011 1111 1111 1111 *
+L2196 1111 1111 1111 1111 1111 1111 1111 0111 1111 *
+L2232 1111 1111 1111 1111 1111 1111 1111 1111 1011 *
+L2268 1111 1111 1111 1111 1111 1111 0111 1110 1111 *
+
+N Output Enable 19,18,...12 *
+L2304 1111 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2340 1111 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2376 1111 1111 1111 1111 1110 1111 1111 1111 1111 *
+L2412 1111 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2448 1111 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2484 1111 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2520 1111 0111 1111 1111 1111 1111 1101 1111 1111 *
+L2556 1111 1111 1111 1111 1111 1111 1111 1111 1111 *
+
+N Sync Preset, Async Clear, Macrocell 19,18,...12 *
+L2592 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2628 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2664 1011 1011 1011 1011 1011 1011 1011 1011 *
+
+C1C6E *
+0000
diff --git a/regtests/jedutil/jeds/18cv8/pal16r4-to-peel18cv8.jed b/regtests/jedutil/jeds/18cv8/pal16r4-to-peel18cv8.jed
new file mode 100644
index 00000000000..07ea1f98282
--- /dev/null
+++ b/regtests/jedutil/jeds/18cv8/pal16r4-to-peel18cv8.jed
@@ -0,0 +1,104 @@
+
+ JEDEC PEEL file Translated from: PAL16R4 Mon 10-8-2012 22:43:51
+ PA
+*QP20
+*QF2696
+*F0
+ *
+N Output Pin 19 *
+L0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0036 1111 1111 1111 1111 0111 0111 1011 1111 1111 *
+L0072 1111 1111 0111 1111 1111 0111 0111 1111 1111 *
+L0108 1111 1111 1111 1111 0111 1111 1111 1111 1111 *
+L0144 1111 1111 1111 1111 1111 0111 1111 1111 1111 *
+L0180 1111 1111 1111 1111 1111 1111 0111 1111 1111 *
+L0216 1111 1111 1111 1011 1111 1111 1111 1111 1111 *
+L0252 1111 1111 1111 1111 1111 1111 1011 1111 1111 *
+
+N Output Pin 18 *
+L0288 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0324 1111 1011 1111 1111 0111 0111 1011 1111 1111 *
+L0360 1111 1111 0111 1111 1111 0111 0111 1111 1111 *
+L0396 1111 1111 0111 1111 1111 1111 1111 1111 1111 *
+L0432 1111 1011 1111 1111 1111 1111 1011 1111 1111 *
+L0468 1111 1111 1011 1111 1111 1111 1111 1111 1111 *
+L0504 1111 1111 1111 1111 0111 0111 1011 1111 1111 *
+L0540 1111 1111 1111 1111 1111 1111 0111 1111 1111 *
+
+N Output Pin 17 *
+L0576 1111 0111 1111 1111 0111 0111 1011 1111 1111 *
+L0612 1111 0111 1110 1111 1111 1111 1111 1111 1111 *
+L0648 1111 1111 1111 1111 0111 1111 1111 1111 1111 *
+L0684 1111 1111 1111 1111 1111 0111 1111 1111 1111 *
+L0720 1111 1111 1101 1111 1111 1111 1011 1111 1111 *
+L0756 1111 0111 1111 1111 1111 1111 1011 1111 1111 *
+L0792 1111 1111 1111 1111 0111 0111 1111 1111 1111 *
+L0828 1111 1111 1011 1111 1111 1111 1111 1111 1111 *
+
+N Output Pin 16 *
+L0864 1111 1111 1011 1101 1111 1111 1111 1111 1111 *
+L0900 1111 1111 1111 1011 1111 1111 1111 1111 1111 *
+L0936 1111 1111 1011 1111 1111 1111 1111 1111 1111 *
+L0972 1111 1111 1011 0111 1111 1111 1111 1111 1111 *
+L1008 1111 1111 1111 1110 1111 1111 1011 1111 1111 *
+L1044 1111 1111 1111 1111 1111 1111 1011 1111 1111 *
+L1080 1111 1111 1111 0111 1111 1111 1111 1111 1111 *
+L1116 1111 0111 0111 1111 1111 1111 1111 1111 1111 *
+
+N Output Pin 15 *
+L1152 1111 1111 0111 1111 1111 0111 0111 1111 1111 *
+L1188 1111 1111 1111 1111 1110 0111 1111 1111 1111 *
+L1224 1111 1111 0111 1111 1101 1111 1111 1111 1111 *
+L1260 1111 1111 1111 1111 1111 1111 0111 1111 1111 *
+L1296 1111 1111 1111 1011 1111 1111 1111 1111 1111 *
+L1332 1111 1111 1111 1111 1111 0111 0111 1111 1111 *
+L1368 1111 1111 1111 0111 1111 1111 0111 1111 1111 *
+L1404 1111 1011 1111 1111 1111 1111 1011 1111 1111 *
+
+N Output Pin 14 *
+L1440 1111 1111 1111 1111 1111 1101 1111 1111 1111 *
+L1476 1111 1111 1111 1111 1111 1111 1111 1011 1111 *
+L1512 1111 1111 1111 1111 1111 1111 1111 0111 1111 *
+L1548 1111 1011 1111 1111 1111 1101 1111 1111 1111 *
+L1584 1111 1011 1111 1111 1111 1111 1111 1111 1111 *
+L1620 1111 0111 1111 1111 1111 1110 1111 1011 1111 *
+L1656 1111 1111 1111 1011 1111 1111 1111 1111 1111 *
+L1692 1111 1111 0111 1111 1111 1111 1111 1111 1111 *
+
+N Output Pin 13 *
+L1728 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L1764 1111 1111 1111 1111 1111 1111 1101 1111 1111 *
+L1800 1111 1111 1111 1111 1111 1111 1111 1111 1011 *
+L1836 1111 1111 1111 1111 1111 1111 1111 0111 1111 *
+L1872 1111 1111 1111 1111 1111 1111 1011 1111 1111 *
+L1908 1111 1111 1111 1111 1111 1011 1101 1111 1111 *
+L1944 1111 1111 1111 1111 0111 1111 1111 1111 1111 *
+L1980 1111 1111 1111 0111 1111 1111 1111 1111 1111 *
+
+N Output Pin 12 *
+L2016 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2052 1111 1011 1011 1111 1111 1111 1111 1111 1111 *
+L2088 1111 1111 1111 0111 1111 1111 1111 1101 1111 *
+L2124 1111 1111 0111 1111 1111 1111 1111 1111 1111 *
+L2160 1111 1111 1111 1111 1111 1011 1111 1111 1111 *
+L2196 1111 1111 1111 1111 1111 1111 1111 0111 1111 *
+L2232 1111 1111 1111 1111 1111 1111 1111 1111 1011 *
+L2268 1111 1111 1111 1111 1111 1111 0111 1110 1111 *
+
+N Output Enable 19,18,...12 *
+L2304 1111 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2340 1111 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2376 1110 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2412 1110 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2448 1110 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2484 1110 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2520 1111 0111 1111 1111 1111 1111 1110 1111 1111 *
+L2556 1111 1111 1111 1111 1111 1111 1110 1111 1111 *
+
+N Sync Preset, Async Clear, Macrocell 19,18,...12 *
+L2592 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2628 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2664 1011 1011 1100 1100 1100 1100 1011 1011 *
+
+C2C6E *
+0000
diff --git a/regtests/jedutil/jeds/18cv8/pal16r6-to-peel18cv8.jed b/regtests/jedutil/jeds/18cv8/pal16r6-to-peel18cv8.jed
new file mode 100644
index 00000000000..8fa59576996
--- /dev/null
+++ b/regtests/jedutil/jeds/18cv8/pal16r6-to-peel18cv8.jed
@@ -0,0 +1,104 @@
+
+ JEDEC PEEL file Translated from: PAL16R6 Mon 10-8-2012 22:44:19
+ PA
+*QP20
+*QF2696
+*F0
+ *
+N Output Pin 19 *
+L0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L0036 1111 1111 1111 1111 0111 0111 1011 1111 1111 *
+L0072 1111 1111 0111 1111 1111 0111 0111 1111 1111 *
+L0108 1111 1111 1111 1111 0111 1111 1111 1111 1111 *
+L0144 1111 1111 1111 1111 1111 0111 1111 1111 1111 *
+L0180 1111 1111 1111 1111 1111 1111 0111 1111 1111 *
+L0216 1111 1111 1111 1011 1111 1111 1111 1111 1111 *
+L0252 1111 1111 1111 1111 1111 1111 1011 1111 1111 *
+
+N Output Pin 18 *
+L0288 1111 1011 1111 1111 0111 0111 1011 1111 1111 *
+L0324 1111 1111 0111 1111 1111 0111 0111 1111 1111 *
+L0360 1111 1111 0111 1111 1111 1111 1111 1111 1111 *
+L0396 1111 1011 1111 1111 1111 1111 1011 1111 1111 *
+L0432 1111 1111 1011 1111 1111 1111 1111 1111 1111 *
+L0468 1111 1111 1111 1111 0111 0111 1011 1111 1111 *
+L0504 1111 1111 1111 1111 1111 1111 0111 1111 1111 *
+L0540 1111 1111 1111 0111 1111 1111 1111 1111 1111 *
+
+N Output Pin 17 *
+L0576 1111 0111 1111 1111 0111 0111 1011 1111 1111 *
+L0612 1111 0111 1101 1111 1111 1111 1111 1111 1111 *
+L0648 1111 1111 1111 1111 0111 1111 1111 1111 1111 *
+L0684 1111 1111 1111 1111 1111 0111 1111 1111 1111 *
+L0720 1111 1111 1110 1111 1111 1111 1011 1111 1111 *
+L0756 1111 0111 1111 1111 1111 1111 1011 1111 1111 *
+L0792 1111 1111 1111 1111 0111 0111 1111 1111 1111 *
+L0828 1111 1111 1011 1111 1111 1111 1111 1111 1111 *
+
+N Output Pin 16 *
+L0864 1111 1111 1011 1101 1111 1111 1111 1111 1111 *
+L0900 1111 1111 1111 1011 1111 1111 1111 1111 1111 *
+L0936 1111 1111 1011 1111 1111 1111 1111 1111 1111 *
+L0972 1111 1111 1011 0111 1111 1111 1111 1111 1111 *
+L1008 1111 1111 1111 1110 1111 1111 1011 1111 1111 *
+L1044 1111 1111 1111 1111 1111 1111 1011 1111 1111 *
+L1080 1111 1111 1111 0111 1111 1111 1111 1111 1111 *
+L1116 1111 0111 0111 1111 1111 1111 1111 1111 1111 *
+
+N Output Pin 15 *
+L1152 1111 1111 0111 1111 1111 0111 0111 1111 1111 *
+L1188 1111 1111 1111 1111 1110 0111 1111 1111 1111 *
+L1224 1111 1111 0111 1111 1101 1111 1111 1111 1111 *
+L1260 1111 1111 1111 1111 1111 1111 0111 1111 1111 *
+L1296 1111 1111 1111 1011 1111 1111 1111 1111 1111 *
+L1332 1111 1111 1111 1111 1111 0111 0111 1111 1111 *
+L1368 1111 1111 1111 0111 1111 1111 0111 1111 1111 *
+L1404 1111 1011 1111 1111 1111 1111 1011 1111 1111 *
+
+N Output Pin 14 *
+L1440 1111 1111 1111 1111 1111 1101 1111 1111 1111 *
+L1476 1111 1111 1111 1111 1111 1111 1111 1011 1111 *
+L1512 1111 1111 1111 1111 1111 1111 1111 0111 1111 *
+L1548 1111 1011 1111 1111 1111 1101 1111 1111 1111 *
+L1584 1111 1011 1111 1111 1111 1111 1111 1111 1111 *
+L1620 1111 0111 1111 1111 1111 1110 1111 1011 1111 *
+L1656 1111 1111 1111 1011 1111 1111 1111 1111 1111 *
+L1692 1111 1111 0111 1111 1111 1111 1111 1111 1111 *
+
+N Output Pin 13 *
+L1728 1111 1111 1111 1111 1111 1111 1101 1111 1111 *
+L1764 1111 1111 1111 1111 1111 1111 1111 1111 1011 *
+L1800 1111 1111 1111 1111 1111 1111 1111 0111 1111 *
+L1836 1111 1111 1111 1111 1111 1111 1011 1111 1111 *
+L1872 1111 1111 1111 1111 1111 1011 1101 1111 1111 *
+L1908 1111 1111 1111 1111 0111 1111 1110 1111 1111 *
+L1944 1111 1111 1111 0111 1111 1111 1111 1111 1111 *
+L1980 1111 1011 1111 1111 1111 1111 1111 1111 1111 *
+
+N Output Pin 12 *
+L2016 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2052 1111 1011 1011 1111 1111 1111 1111 1111 1111 *
+L2088 1111 1111 1111 0111 1111 1111 1111 1110 1111 *
+L2124 1111 1111 0111 1111 1111 1111 1111 1111 1111 *
+L2160 1111 1111 1111 1111 1111 1011 1111 1111 1111 *
+L2196 1111 1111 1111 1111 1111 1111 1111 0111 1111 *
+L2232 1111 1111 1111 1111 1111 1111 1111 1111 1011 *
+L2268 1111 1111 1111 1111 1111 1111 0111 1101 1111 *
+
+N Output Enable 19,18,...12 *
+L2304 1111 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2340 1110 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2376 1110 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2412 1110 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2448 1110 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2484 1110 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2520 1110 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2556 1111 1111 1111 1111 1111 1111 1110 1111 1111 *
+
+N Sync Preset, Async Clear, Macrocell 19,18,...12 *
+L2592 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2628 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2664 1011 1100 1100 1100 1100 1100 1100 1011 *
+
+C32E7 *
+0000
diff --git a/regtests/jedutil/jeds/18cv8/pal16r8-to-peel18cv8.jed b/regtests/jedutil/jeds/18cv8/pal16r8-to-peel18cv8.jed
new file mode 100644
index 00000000000..fad93cefb0c
--- /dev/null
+++ b/regtests/jedutil/jeds/18cv8/pal16r8-to-peel18cv8.jed
@@ -0,0 +1,104 @@
+
+ JEDEC PEEL file Translated from: PAL16R8 Mon 10-8-2012 22:46:06
+ PA
+*QP20
+*QF2696
+*F0
+ *
+N Output Pin 19 *
+L0000 1111 1111 1111 1111 0111 0111 1011 1111 1111 *
+L0036 1111 1111 0111 1111 1111 0111 0111 1111 1111 *
+L0072 1111 1111 1111 1111 0111 1111 1111 1111 1110 *
+L0108 1111 1111 1111 1111 1111 0111 1111 1111 1111 *
+L0144 1111 1111 1111 1111 1111 1111 0111 1111 1111 *
+L0180 1111 1111 1111 1011 1111 1111 1111 1111 1101 *
+L0216 1111 1111 1111 1111 1111 1111 1011 1111 1111 *
+L0252 1111 0111 1111 1111 1111 1111 1111 1111 1111 *
+
+N Output Pin 18 *
+L0288 1111 1011 1111 1111 0111 0111 1011 1111 1111 *
+L0324 1111 1111 0111 1111 1111 0111 0111 1111 1111 *
+L0360 1111 1110 0111 1111 1111 1111 1111 1111 1111 *
+L0396 1111 1011 1111 1111 1111 1111 1011 1111 1111 *
+L0432 1111 1101 1011 1111 1111 1111 1111 1111 1111 *
+L0468 1111 1111 1111 1111 0111 0111 1011 1111 1111 *
+L0504 1111 1111 1111 1111 1111 1111 0111 1111 1111 *
+L0540 1111 1111 1111 1011 1111 1111 1111 1111 1111 *
+
+N Output Pin 17 *
+L0576 1111 0111 1111 1111 0111 0111 1011 1111 1111 *
+L0612 1111 0111 1101 1111 1111 1111 1111 1111 1111 *
+L0648 1111 1111 1111 1111 0111 1111 1111 1111 1111 *
+L0684 1111 1111 1111 1111 1111 0111 1111 1111 1111 *
+L0720 1111 1111 1110 1111 1111 1111 1011 1111 1111 *
+L0756 1111 0111 1111 1111 1111 1111 1011 1111 1111 *
+L0792 1111 1111 1111 1111 0111 0111 1111 1111 1111 *
+L0828 1111 1111 1011 1111 1111 1111 1111 1111 1111 *
+
+N Output Pin 16 *
+L0864 1111 1111 1011 1101 1111 1111 1111 1111 1111 *
+L0900 1111 1111 1111 1011 1111 1111 1111 1111 1111 *
+L0936 1111 1111 1011 1111 1111 1111 1111 1111 1111 *
+L0972 1111 1111 1011 0111 1111 1111 1111 1111 1111 *
+L1008 1111 1111 1111 1110 1111 1111 1011 1111 1111 *
+L1044 1111 1111 1111 1111 1111 1111 1011 1111 1111 *
+L1080 1111 1111 1111 0111 1111 1111 1111 1111 1111 *
+L1116 1111 0111 0111 1111 1111 1111 1111 1111 1111 *
+
+N Output Pin 15 *
+L1152 1111 1111 0111 1111 1111 0111 0111 1111 1111 *
+L1188 1111 1111 1111 1111 1110 0111 1111 1111 1111 *
+L1224 1111 1111 0111 1111 1101 1111 1111 1111 1111 *
+L1260 1111 1111 1111 1111 1111 1111 0111 1111 1111 *
+L1296 1111 1111 1111 1011 1111 1111 1111 1111 1111 *
+L1332 1111 1111 1111 1111 1111 0111 0111 1111 1111 *
+L1368 1111 1111 1111 0111 1111 1111 0111 1111 1111 *
+L1404 1111 1011 1111 1111 1111 1111 1011 1111 1111 *
+
+N Output Pin 14 *
+L1440 1111 1111 1111 1111 1111 1101 1111 1111 1111 *
+L1476 1111 1111 1111 1111 1111 1111 1111 1011 1111 *
+L1512 1111 1111 1111 1111 1111 1111 1111 0111 1111 *
+L1548 1111 1011 1111 1111 1111 1101 1111 1111 1111 *
+L1584 1111 1011 1111 1111 1111 1111 1111 1111 1111 *
+L1620 1111 0111 1111 1111 1111 1110 1111 1011 1111 *
+L1656 1111 1111 1111 1011 1111 1111 1111 1111 1111 *
+L1692 1111 1111 0111 1111 1111 1111 1111 1111 1111 *
+
+N Output Pin 13 *
+L1728 1111 1111 1111 1111 1111 1111 1101 1111 1111 *
+L1764 1111 1111 1111 1111 1111 1111 1111 1111 1011 *
+L1800 1111 1111 1111 1111 1111 1111 1111 0111 1111 *
+L1836 1111 1111 1111 1111 1111 1111 1011 1111 1111 *
+L1872 1111 1111 1111 1111 1111 1011 1110 1111 1111 *
+L1908 1111 1111 1111 1111 0111 1111 1111 1111 1111 *
+L1944 1111 1111 1111 0111 1111 1111 1111 1111 1111 *
+L1980 1111 1111 1011 1111 1111 1111 1111 1111 1111 *
+
+N Output Pin 12 *
+L2016 1111 1011 1011 1111 1111 1111 1111 1111 1111 *
+L2052 1111 1111 1111 0111 1111 1111 1111 1110 1111 *
+L2088 1111 1111 0111 1111 1111 1111 1111 1111 1111 *
+L2124 1111 1111 1111 1111 1111 1011 1111 1111 1111 *
+L2160 1111 1111 1111 1111 1111 1111 1111 0111 1111 *
+L2196 1111 1111 1111 1111 1111 1111 1111 1111 1011 *
+L2232 1111 1111 1111 1111 1111 1111 0111 1101 1111 *
+L2268 1111 1111 1111 1111 0111 1111 1111 1111 1111 *
+
+N Output Enable 19,18,...12 *
+L2304 1110 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2340 1110 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2376 1110 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2412 1110 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2448 1110 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2484 1110 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2520 1110 1111 1111 1111 1111 1111 1111 1111 1111 *
+L2556 1110 1111 1111 1111 1111 1111 1111 1111 1111 *
+
+N Sync Preset, Async Clear, Macrocell 19,18,...12 *
+L2592 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2628 0000 0000 0000 0000 0000 0000 0000 0000 0000 *
+L2664 1100 1100 1100 1100 1100 1100 1100 1100 *
+
+C3A61 *
+0000
diff --git a/regtests/jedutil/jeds/ck2605/ck2605-test1.jed b/regtests/jedutil/jeds/ck2605/ck2605-test1.jed
new file mode 100644
index 00000000000..bccd02f7094
--- /dev/null
+++ b/regtests/jedutil/jeds/ck2605/ck2605-test1.jed
@@ -0,0 +1,36 @@
+
+DM SIGNETICS(PHILIPS)*
+DD CK2605*
+QP20*
+QF1106*
+QV0*
+G0*F0*
+
+L00000 1111111111111111111111111111111111111000000000*
+L00046 0111111111111111111101111111111111110100000000*
+L00092 1110111111111111111111101111111111110010000000*
+L00138 1101111111111111111111011111111111110001000000*
+L00184 1111101111111111111111111011111111110000100000*
+L00230 1111011111111111111111110111111111110000010000*
+L00276 1111111011111111111111111110111111110000001000*
+L00322 1111110111111111111111111111011111110000000100*
+L00368 1111111101111111111111111111101111110000000010*
+L00414 1111111111111111111111111111011111110000000001*
+L00460 1111111111110111111111111111111011110000000010*
+L00506 1111111111111110111111111111110111110000000100*
+L00552 1111111111111101111111111111111110110000001000*
+L00598 1111111111111111101111111111111101110000010000*
+L00644 1111111111111111011111111111111111100000100000*
+L00690 1111111111111111111011111111111111010001000000*
+L00736 111111111111111111111111111111111111 *
+L00772 000000000000000000000000000000000000 *
+L00808 000000000000000000000000000000000001 *
+L00844 010101010101010111111111111111111111 *
+L00880 101010101010101011111111111111111111 *
+L00916 111111111111111110101010101010101010 *
+L00952 000000000000000000000000000000000000 *
+L00988 000000000000000000000000000000000000 *
+L01024 111111111111111111010101010101010101 *
+L01060 111111111111111111111111111111111111 *
+L01096 1001100101*
+0000 \ No newline at end of file
diff --git a/regtests/jedutil/jeds/ck2605/ck2605-test2.jed b/regtests/jedutil/jeds/ck2605/ck2605-test2.jed
new file mode 100644
index 00000000000..3fd12c3e13c
--- /dev/null
+++ b/regtests/jedutil/jeds/ck2605/ck2605-test2.jed
@@ -0,0 +1,36 @@
+
+DM SIGNETICS(PHILIPS)*
+DD CK2605*
+QP20*
+QF1106*
+QV0*
+G0*F0*
+
+L00000 0000000000000000000000000000000000001000000000*
+L00046 0111111111111111111101111111111111110100000000*
+L00092 1110111111111111111111101111111111110010000000*
+L00138 1101111111111111111111011111111111110001000000*
+L00184 1111101111111111111111111011111111110000100000*
+L00230 1111011111111111111111110111111111110000010000*
+L00276 1111111011111111111111111110111111110000001000*
+L00322 1111110111111111111111111111011111110000000100*
+L00368 1111111101111111111111111111101111110000000010*
+L00414 1111111111111111111111111111011111110000000001*
+L00460 1111111111110111111111111111111011110000000010*
+L00506 1111111111111110111111111111110111110000000100*
+L00552 1111111111111101111111111111111110110000001000*
+L00598 1111111111111111101111111111111101110000010000*
+L00644 1111111111111111011111111111111111100000100000*
+L00690 1111111111111111111011111111111111010001000000*
+L00736 111111111111111111111111111111111111 *
+L00772 000000000000000000000000000000000000 *
+L00808 000000000000000000000000000000000001 *
+L00844 010101010101010111111111111111111111 *
+L00880 101010101010101011111111111111111111 *
+L00916 111111111111111110101010101010101010 *
+L00952 000000000000000000000000000000000000 *
+L00988 000000000000000000000000000000000000 *
+L01024 111111111111111111010101010101010101 *
+L01060 111111111111111111111111111111111111 *
+L01096 0110011010*
+0000 \ No newline at end of file
diff --git a/regtests/jedutil/jeds/gal16v8/pal10h8-to-gal16v8.jed b/regtests/jedutil/jeds/gal16v8/pal10h8-to-gal16v8.jed
new file mode 100644
index 00000000000..ae9d31057e3
--- /dev/null
+++ b/regtests/jedutil/jeds/gal16v8/pal10h8-to-gal16v8.jed
@@ -0,0 +1,106 @@
+
+Device G16V8 converted from PAL10H8 JEDEC map.
+PAL to GAL JEDEC conversion utility - paltogal v3.12 17 November 1992
+Copyright (c) by LATTICE Semiconductor Corp. 1990, 1991, 1992.
+Input File: pal10h8.jed
+Output File: gal.jed
+The Date: Wed Sep 12 22:32:02 2012
+
+
+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*
+QF2194*QP20*F0*
+
+L00000 01010111011101110111011110111111*
+L00032 11111111111111111111111111111101*
+L00064 00000011001100110011001100110000*
+L00096 00000011001100110011001100110000*
+L00128 00000011001100110011001100110000*
+L00160 00000011001100110011001100110000*
+L00192 00000011001100110011001100110000*
+L00224 00000011001100110011001100110000*
+
+L00256 01010111011101110111101101111111*
+L00288 11111111111111111111111111111001*
+L00320 00000011001100110011001100110000*
+L00352 00000011001100110011001100110000*
+L00384 00000011001100110011001100110000*
+L00416 00000011001100110011001100110000*
+L00448 00000011001100110011001100110000*
+L00480 00000011001100110011001100110000*
+
+L00512 01010111011101111011011101111111*
+L00544 11111111111111111111111111110110*
+L00576 00000011001100110011001100110000*
+L00608 00000011001100110011001100110000*
+L00640 00000011001100110011001100110000*
+L00672 00000011001100110011001100110000*
+L00704 00000011001100110011001100110000*
+L00736 00000011001100110011001100110000*
+
+L00768 01010111011110110111011101111111*
+L00800 11111111111111111111111111111010*
+L00832 00000011001100110011001100110000*
+L00864 00000011001100110011001100110000*
+L00896 00000011001100110011001100110000*
+L00928 00000011001100110011001100110000*
+L00960 00000011001100110011001100110000*
+L00992 00000011001100110011001100110000*
+
+L01024 01010111101101110111011101111111*
+L01056 11111111111111111111111111111010*
+L01088 00000011001100110011001100110000*
+L01120 00000011001100110011001100110000*
+L01152 00000011001100110011001100110000*
+L01184 00000011001100110011001100110000*
+L01216 00000011001100110011001100110000*
+L01248 00000011001100110011001100110000*
+
+L01280 01011011011101110111011101111111*
+L01312 11111111111111111111111111110110*
+L01344 00000011001100110011001100110000*
+L01376 00000011001100110011001100110000*
+L01408 00000011001100110011001100110000*
+L01440 00000011001100110011001100110000*
+L01472 00000011001100110011001100110000*
+L01504 00000011001100110011001100110000*
+
+L01536 10010111011101110111011101111111*
+L01568 11111111111111111111111111111001*
+L01600 00000011001100110011001100110000*
+L01632 00000011001100110011001100110000*
+L01664 00000011001100110011001100110000*
+L01696 00000011001100110011001100110000*
+L01728 00000011001100110011001100110000*
+L01760 00000011001100110011001100110000*
+
+L01792 01100111011101110111011101111111*
+L01824 11111111111111111111111111110101*
+L01856 00000011001100110011001100110000*
+L01888 00000011001100110011001100110000*
+L01920 00000011001100110011001100110000*
+L01952 00000011001100110011001100110000*
+L01984 00000011001100110011001100110000*
+L02016 00000011001100110011001100110000*
+
+N ==> XOR *
+L02048 11111111*
+N ==> Signature is "" *
+L02056 00000000000000000000000000000000*
+L02088 00000000000000000000000000000000*
+N ==> AC1 *
+L02120 00000000*
+N ==> PTD *
+L02128 11000000110000001100000011000000*
+L02160 11000000110000001100000011000000*
+N ==> SYN 2192, AC0 2193 *
+L02192 10*
+CADF0*
+
+0000
diff --git a/regtests/jedutil/jeds/gal16v8/pal10l8-to-gal16v8.jed b/regtests/jedutil/jeds/gal16v8/pal10l8-to-gal16v8.jed
new file mode 100644
index 00000000000..8683a9dd93a
--- /dev/null
+++ b/regtests/jedutil/jeds/gal16v8/pal10l8-to-gal16v8.jed
@@ -0,0 +1,106 @@
+
+Device G16V8 converted from PAL10L8 JEDEC map.
+PAL to GAL JEDEC conversion utility - paltogal v3.12 17 November 1992
+Copyright (c) by LATTICE Semiconductor Corp. 1990, 1991, 1992.
+Input File: pal10l8.jed
+Output File: gal.jed
+The Date: Sun Sep 16 22:18:49 2012
+
+
+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*
+QF2194*QP20*F0*
+
+L00000 01010111011101110111011110111111*
+L00032 11111111111111111111111111111011*
+L00064 00000011001100110011001100110000*
+L00096 00000011001100110011001100110000*
+L00128 00000011001100110011001100110000*
+L00160 00000011001100110011001100110000*
+L00192 00000011001100110011001100110000*
+L00224 00000011001100110011001100110000*
+
+L00256 01010111011101110111101101111111*
+L00288 11111111111111111111111111111101*
+L00320 00000011001100110011001100110000*
+L00352 00000011001100110011001100110000*
+L00384 00000011001100110011001100110000*
+L00416 00000011001100110011001100110000*
+L00448 00000011001100110011001100110000*
+L00480 00000011001100110011001100110000*
+
+L00512 01010111011101111011011101111111*
+L00544 11111111111111111111111111110110*
+L00576 00000011001100110011001100110000*
+L00608 00000011001100110011001100110000*
+L00640 00000011001100110011001100110000*
+L00672 00000011001100110011001100110000*
+L00704 00000011001100110011001100110000*
+L00736 00000011001100110011001100110000*
+
+L00768 01010111011110110111011101111111*
+L00800 11111111111111111111111111111010*
+L00832 00000011001100110011001100110000*
+L00864 00000011001100110011001100110000*
+L00896 00000011001100110011001100110000*
+L00928 00000011001100110011001100110000*
+L00960 00000011001100110011001100110000*
+L00992 00000011001100110011001100110000*
+
+L01024 01010111101101110111011101111111*
+L01056 11111111111111111111111111111010*
+L01088 00000011001100110011001100110000*
+L01120 00000011001100110011001100110000*
+L01152 00000011001100110011001100110000*
+L01184 00000011001100110011001100110000*
+L01216 00000011001100110011001100110000*
+L01248 00000011001100110011001100110000*
+
+L01280 01011011011101110111011101111111*
+L01312 11111111111111111111111111110110*
+L01344 00000011001100110011001100110000*
+L01376 00000011001100110011001100110000*
+L01408 00000011001100110011001100110000*
+L01440 00000011001100110011001100110000*
+L01472 00000011001100110011001100110000*
+L01504 00000011001100110011001100110000*
+
+L01536 10010111011101110111011101111111*
+L01568 11111111111111111111111111111001*
+L01600 00000011001100110011001100110000*
+L01632 00000011001100110011001100110000*
+L01664 00000011001100110011001100110000*
+L01696 00000011001100110011001100110000*
+L01728 00000011001100110011001100110000*
+L01760 00000011001100110011001100110000*
+
+L01792 01100111011101110111011101111111*
+L01824 11111111111111111111111111110101*
+L01856 00000011001100110011001100110000*
+L01888 00000011001100110011001100110000*
+L01920 00000011001100110011001100110000*
+L01952 00000011001100110011001100110000*
+L01984 00000011001100110011001100110000*
+L02016 00000011001100110011001100110000*
+
+N ==> XOR *
+L02048 00000000*
+N ==> Signature is "" *
+L02056 00000000000000000000000000000000*
+L02088 00000000000000000000000000000000*
+N ==> AC1 *
+L02120 00000000*
+N ==> PTD *
+L02128 11000000110000001100000011000000*
+L02160 11000000110000001100000011000000*
+N ==> SYN 2192, AC0 2193 *
+L02192 10*
+CAD31*
+
+0000
diff --git a/regtests/jedutil/jeds/gal16v8/pal12h6-to-gal16v8.jed b/regtests/jedutil/jeds/gal16v8/pal12h6-to-gal16v8.jed
new file mode 100644
index 00000000000..0047efd8bfa
--- /dev/null
+++ b/regtests/jedutil/jeds/gal16v8/pal12h6-to-gal16v8.jed
@@ -0,0 +1,106 @@
+
+Device G16V8 converted from PAL12H6 JEDEC map.
+PAL to GAL JEDEC conversion utility - paltogal v3.12 17 November 1992
+Copyright (c) by LATTICE Semiconductor Corp. 1990, 1991, 1992.
+Input File: pal12h6.jed
+Output File: gal.jed
+The Date: Sun Sep 16 22:20:22 2012
+
+
+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*
+QF2194*QP20*F0*
+
+L00000 00000000001100110011001100000000*
+L00032 00000000001100110011001100000000*
+L00064 00000000001100110011001100000000*
+L00096 00000000001100110011001100000000*
+L00128 00000000001100110011001100000000*
+L00160 00000000001100110011001100000000*
+L00192 00000000001100110011001100000000*
+L00224 00000000001100110011001100000000*
+
+L00256 01010111011101111011011101111111*
+L00288 11111111111111111111111111111001*
+L00320 11111101111111111111111111111111*
+L00352 11111111111111111111111111101111*
+L00384 00000000001100110011001100000000*
+L00416 00000000001100110011001100000000*
+L00448 00000000001100110011001100000000*
+L00480 00000000001100110011001100000000*
+
+L00512 01010111011110110111011101111111*
+L00544 11111111111111111111111111111010*
+L00576 00000000001100110011001100000000*
+L00608 00000000001100110011001100000000*
+L00640 00000000001100110011001100000000*
+L00672 00000000001100110011001100000000*
+L00704 00000000001100110011001100000000*
+L00736 00000000001100110011001100000000*
+
+L00768 01010111011101110111101101111111*
+L00800 11111111111111111111111111110110*
+L00832 00000000001100110011001100000000*
+L00864 00000000001100110011001100000000*
+L00896 00000000001100110011001100000000*
+L00928 00000000001100110011001100000000*
+L00960 00000000001100110011001100000000*
+L00992 00000000001100110011001100000000*
+
+L01024 01010111101101110111011101111111*
+L01056 11111111111111111111111111111010*
+L01088 00000000001100110011001100000000*
+L01120 00000000001100110011001100000000*
+L01152 00000000001100110011001100000000*
+L01184 00000000001100110011001100000000*
+L01216 00000000001100110011001100000000*
+L01248 00000000001100110011001100000000*
+
+L01280 10010111011101110111011101111111*
+L01312 11111111111111111111111111111001*
+L01344 00000000001100110011001100000000*
+L01376 00000000001100110011001100000000*
+L01408 00000000001100110011001100000000*
+L01440 00000000001100110011001100000000*
+L01472 00000000001100110011001100000000*
+L01504 00000000001100110011001100000000*
+
+L01536 01100111011101110111011101111111*
+L01568 11111111111111111111111111110101*
+L01600 11111110111111111111111111111111*
+L01632 11111111111111111111111111011111*
+L01664 00000000001100110011001100000000*
+L01696 00000000001100110011001100000000*
+L01728 00000000001100110011001100000000*
+L01760 00000000001100110011001100000000*
+
+L01792 00000000001100110011001100000000*
+L01824 00000000001100110011001100000000*
+L01856 00000000001100110011001100000000*
+L01888 00000000001100110011001100000000*
+L01920 00000000001100110011001100000000*
+L01952 00000000001100110011001100000000*
+L01984 00000000001100110011001100000000*
+L02016 00000000001100110011001100000000*
+
+N ==> XOR *
+L02048 11111111*
+N ==> Signature is "" *
+L02056 00000000000000000000000000000000*
+L02088 00000000000000000000000000000000*
+N ==> AC1 *
+L02120 10000001*
+N ==> PTD *
+L02128 00000000111100001100000011000000*
+L02160 11000000110000001111000000000000*
+N ==> SYN 2192, AC0 2193 *
+L02192 10*
+C88C8*
+
+0000
diff --git a/regtests/jedutil/jeds/gal16v8/pal12l6-to-gal16v8.jed b/regtests/jedutil/jeds/gal16v8/pal12l6-to-gal16v8.jed
new file mode 100644
index 00000000000..fc13532b0c5
--- /dev/null
+++ b/regtests/jedutil/jeds/gal16v8/pal12l6-to-gal16v8.jed
@@ -0,0 +1,106 @@
+
+Device G16V8 converted from PAL12L6 JEDEC map.
+PAL to GAL JEDEC conversion utility - paltogal v3.12 17 November 1992
+Copyright (c) by LATTICE Semiconductor Corp. 1990, 1991, 1992.
+Input File: pal12l6.jed
+Output File: gal.jed
+The Date: Sun Sep 16 22:21:32 2012
+
+
+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*
+QF2194*QP20*F0*
+
+L00000 00000000001100110011001100000000*
+L00032 00000000001100110011001100000000*
+L00064 00000000001100110011001100000000*
+L00096 00000000001100110011001100000000*
+L00128 00000000001100110011001100000000*
+L00160 00000000001100110011001100000000*
+L00192 00000000001100110011001100000000*
+L00224 00000000001100110011001100000000*
+
+L00256 01010111011101111011011101111111*
+L00288 11111111111111111111111111111001*
+L00320 11111101111111111111111111111111*
+L00352 11111111111111111111111111101111*
+L00384 00000000001100110011001100000000*
+L00416 00000000001100110011001100000000*
+L00448 00000000001100110011001100000000*
+L00480 00000000001100110011001100000000*
+
+L00512 01010111011110110111011101111111*
+L00544 11111111111111111111111111111010*
+L00576 00000000001100110011001100000000*
+L00608 00000000001100110011001100000000*
+L00640 00000000001100110011001100000000*
+L00672 00000000001100110011001100000000*
+L00704 00000000001100110011001100000000*
+L00736 00000000001100110011001100000000*
+
+L00768 01010111101101110111011101111111*
+L00800 11111111111111111111111111111010*
+L00832 00000000001100110011001100000000*
+L00864 00000000001100110011001100000000*
+L00896 00000000001100110011001100000000*
+L00928 00000000001100110011001100000000*
+L00960 00000000001100110011001100000000*
+L00992 00000000001100110011001100000000*
+
+L01024 01011011011101110111011101111111*
+L01056 11111111111111111111111111110101*
+L01088 00000000001100110011001100000000*
+L01120 00000000001100110011001100000000*
+L01152 00000000001100110011001100000000*
+L01184 00000000001100110011001100000000*
+L01216 00000000001100110011001100000000*
+L01248 00000000001100110011001100000000*
+
+L01280 10010111011101110111011101111111*
+L01312 11111111111111111111111111111001*
+L01344 00000000001100110011001100000000*
+L01376 00000000001100110011001100000000*
+L01408 00000000001100110011001100000000*
+L01440 00000000001100110011001100000000*
+L01472 00000000001100110011001100000000*
+L01504 00000000001100110011001100000000*
+
+L01536 01100111011101110111011101111111*
+L01568 11111111111111111111111111110101*
+L01600 11111110111111111111111111111111*
+L01632 11111111111111111111111111011111*
+L01664 00000000001100110011001100000000*
+L01696 00000000001100110011001100000000*
+L01728 00000000001100110011001100000000*
+L01760 00000000001100110011001100000000*
+
+L01792 00000000001100110011001100000000*
+L01824 00000000001100110011001100000000*
+L01856 00000000001100110011001100000000*
+L01888 00000000001100110011001100000000*
+L01920 00000000001100110011001100000000*
+L01952 00000000001100110011001100000000*
+L01984 00000000001100110011001100000000*
+L02016 00000000001100110011001100000000*
+
+N ==> XOR *
+L02048 00000000*
+N ==> Signature is "" *
+L02056 00000000000000000000000000000000*
+L02088 00000000000000000000000000000000*
+N ==> AC1 *
+L02120 10000001*
+N ==> PTD *
+L02128 00000000111100001100000011000000*
+L02160 11000000110000001111000000000000*
+N ==> SYN 2192, AC0 2193 *
+L02192 10*
+C8809*
+
+0000
diff --git a/regtests/jedutil/jeds/gal16v8/pal14h4-to-gal16v8.jed b/regtests/jedutil/jeds/gal16v8/pal14h4-to-gal16v8.jed
new file mode 100644
index 00000000000..343f798cbfe
--- /dev/null
+++ b/regtests/jedutil/jeds/gal16v8/pal14h4-to-gal16v8.jed
@@ -0,0 +1,106 @@
+
+Device G16V8 converted from PAL14H4 JEDEC map.
+PAL to GAL JEDEC conversion utility - paltogal v3.12 17 November 1992
+Copyright (c) by LATTICE Semiconductor Corp. 1990, 1991, 1992.
+Input File: pal14h4.jed
+Output File: gal16v8.jed
+The Date: Fri Sep 28 22:11:50 2012
+
+
+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*
+QF2194*QP20*F0*
+
+L00000 00000000000000110011000000000000*
+L00032 00000000000000110011000000000000*
+L00064 00000000000000110011000000000000*
+L00096 00000000000000110011000000000000*
+L00128 00000000000000110011000000000000*
+L00160 00000000000000110011000000000000*
+L00192 00000000000000110011000000000000*
+L00224 00000000000000110011000000000000*
+
+L00256 00000000000000110011000000000000*
+L00288 00000000000000110011000000000000*
+L00320 00000000000000110011000000000000*
+L00352 00000000000000110011000000000000*
+L00384 00000000000000110011000000000000*
+L00416 00000000000000110011000000000000*
+L00448 00000000000000110011000000000000*
+L00480 00000000000000110011000000000000*
+
+L00512 01010111101101110111011101111111*
+L00544 11111111111111111111111111110101*
+L00576 11111111111111111111110111101111*
+L00608 11111101110111111111111111111111*
+L00640 00000000000000110011000000000000*
+L00672 00000000000000110011000000000000*
+L00704 00000000000000110011000000000000*
+L00736 00000000000000110011000000000000*
+
+L00768 01011011011101110111011101111111*
+L00800 11111111111111111111111111111001*
+L00832 11111111111111111111111011011111*
+L00864 11111110111011111111111111111111*
+L00896 00000000000000110011000000000000*
+L00928 00000000000000110011000000000000*
+L00960 00000000000000110011000000000000*
+L00992 00000000000000110011000000000000*
+
+L01024 10010111011101110111011101111111*
+L01056 11111111111111111111111111110110*
+L01088 11111111111111111111110111011111*
+L01120 11111101111011111111111111111111*
+L01152 00000000000000110011000000000000*
+L01184 00000000000000110011000000000000*
+L01216 00000000000000110011000000000000*
+L01248 00000000000000110011000000000000*
+
+L01280 01100111011101110111011101111111*
+L01312 11111111111111111111111111110101*
+L01344 11111111111111111111111011101111*
+L01376 11111110110111111111111111111111*
+L01408 00000000000000110011000000000000*
+L01440 00000000000000110011000000000000*
+L01472 00000000000000110011000000000000*
+L01504 00000000000000110011000000000000*
+
+L01536 00000000000000110011000000000000*
+L01568 00000000000000110011000000000000*
+L01600 00000000000000110011000000000000*
+L01632 00000000000000110011000000000000*
+L01664 00000000000000110011000000000000*
+L01696 00000000000000110011000000000000*
+L01728 00000000000000110011000000000000*
+L01760 00000000000000110011000000000000*
+
+L01792 00000000000000110011000000000000*
+L01824 00000000000000110011000000000000*
+L01856 00000000000000110011000000000000*
+L01888 00000000000000110011000000000000*
+L01920 00000000000000110011000000000000*
+L01952 00000000000000110011000000000000*
+L01984 00000000000000110011000000000000*
+L02016 00000000000000110011000000000000*
+
+N ==> XOR *
+L02048 11111111*
+N ==> Signature is "" *
+L02056 00000000000000000000000000000000*
+L02088 00000000000000000000000000000000*
+N ==> AC1 *
+L02120 11000011*
+N ==> PTD *
+L02128 00000000000000001111000011110000*
+L02160 11110000111100000000000000000000*
+N ==> SYN 2192, AC0 2193 *
+L02192 10*
+C6249*
+
+0000
diff --git a/regtests/jedutil/jeds/gal16v8/pal14l4-to-gal16v8.jed b/regtests/jedutil/jeds/gal16v8/pal14l4-to-gal16v8.jed
new file mode 100644
index 00000000000..2147c8da57c
--- /dev/null
+++ b/regtests/jedutil/jeds/gal16v8/pal14l4-to-gal16v8.jed
@@ -0,0 +1,106 @@
+
+Device G16V8 converted from PAL14L4 JEDEC map.
+PAL to GAL JEDEC conversion utility - paltogal v3.12 17 November 1992
+Copyright (c) by LATTICE Semiconductor Corp. 1990, 1991, 1992.
+Input File: pal14l4.jed
+Output File: gal16v8.jed
+The Date: Fri Sep 28 22:14:09 2012
+
+
+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*
+QF2194*QP20*F0*
+
+L00000 00000000000000110011000000000000*
+L00032 00000000000000110011000000000000*
+L00064 00000000000000110011000000000000*
+L00096 00000000000000110011000000000000*
+L00128 00000000000000110011000000000000*
+L00160 00000000000000110011000000000000*
+L00192 00000000000000110011000000000000*
+L00224 00000000000000110011000000000000*
+
+L00256 00000000000000110011000000000000*
+L00288 00000000000000110011000000000000*
+L00320 00000000000000110011000000000000*
+L00352 00000000000000110011000000000000*
+L00384 00000000000000110011000000000000*
+L00416 00000000000000110011000000000000*
+L00448 00000000000000110011000000000000*
+L00480 00000000000000110011000000000000*
+
+L00512 01010111011101111011011101111111*
+L00544 11111111111111111111111111111001*
+L00576 11111111111111111111111011101111*
+L00608 11111110111011111111111111111111*
+L00640 00000000000000110011000000000000*
+L00672 00000000000000110011000000000000*
+L00704 00000000000000110011000000000000*
+L00736 00000000000000110011000000000000*
+
+L00768 01010111011110110111011101111111*
+L00800 11111111111111111111111111111010*
+L00832 11111111111111111111110111011111*
+L00864 11111110110111111111111111111111*
+L00896 00000000000000110011000000000000*
+L00928 00000000000000110011000000000000*
+L00960 00000000000000110011000000000000*
+L00992 00000000000000110011000000000000*
+
+L01024 01010111101101110111011101111111*
+L01056 11111111111111111111111111111010*
+L01088 11111111111111111111110111101111*
+L01120 11111101111011111111111111111111*
+L01152 00000000000000110011000000000000*
+L01184 00000000000000110011000000000000*
+L01216 00000000000000110011000000000000*
+L01248 00000000000000110011000000000000*
+
+L01280 10010111011101110111011101111111*
+L01312 11111111111111111111111111111001*
+L01344 11111111111111111111111011011111*
+L01376 11111101110111111111111111111111*
+L01408 00000000000000110011000000000000*
+L01440 00000000000000110011000000000000*
+L01472 00000000000000110011000000000000*
+L01504 00000000000000110011000000000000*
+
+L01536 00000000000000110011000000000000*
+L01568 00000000000000110011000000000000*
+L01600 00000000000000110011000000000000*
+L01632 00000000000000110011000000000000*
+L01664 00000000000000110011000000000000*
+L01696 00000000000000110011000000000000*
+L01728 00000000000000110011000000000000*
+L01760 00000000000000110011000000000000*
+
+L01792 00000000000000110011000000000000*
+L01824 00000000000000110011000000000000*
+L01856 00000000000000110011000000000000*
+L01888 00000000000000110011000000000000*
+L01920 00000000000000110011000000000000*
+L01952 00000000000000110011000000000000*
+L01984 00000000000000110011000000000000*
+L02016 00000000000000110011000000000000*
+
+N ==> XOR *
+L02048 00000000*
+N ==> Signature is "" *
+L02056 00000000000000000000000000000000*
+L02088 00000000000000000000000000000000*
+N ==> AC1 *
+L02120 11000011*
+N ==> PTD *
+L02128 00000000000000001111000011110000*
+L02160 11110000111100000000000000000000*
+N ==> SYN 2192, AC0 2193 *
+L02192 10*
+C60DD*
+
+0000
diff --git a/regtests/jedutil/jeds/gal16v8/pal16h2-to-gal16v8.jed b/regtests/jedutil/jeds/gal16v8/pal16h2-to-gal16v8.jed
new file mode 100644
index 00000000000..35a906b0bca
--- /dev/null
+++ b/regtests/jedutil/jeds/gal16v8/pal16h2-to-gal16v8.jed
@@ -0,0 +1,106 @@
+
+Device G16V8 converted from PAL16H2 JEDEC map.
+PAL to GAL JEDEC conversion utility - paltogal v3.12 17 November 1992
+Copyright (c) by LATTICE Semiconductor Corp. 1990, 1991, 1992.
+Input File: pal16h2.jed
+Output File: gal16v8.jed
+The Date: Fri Sep 28 22:25:49 2012
+
+
+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*
+QF2194*QP20*F0*
+
+L00000 00000000000000000000000000000000*
+L00032 00000000000000000000000000000000*
+L00064 00000000000000000000000000000000*
+L00096 00000000000000000000000000000000*
+L00128 00000000000000000000000000000000*
+L00160 00000000000000000000000000000000*
+L00192 00000000000000000000000000000000*
+L00224 00000000000000000000000000000000*
+
+L00256 00000000000000000000000000000000*
+L00288 00000000000000000000000000000000*
+L00320 00000000000000000000000000000000*
+L00352 00000000000000000000000000000000*
+L00384 00000000000000000000000000000000*
+L00416 00000000000000000000000000000000*
+L00448 00000000000000000000000000000000*
+L00480 00000000000000000000000000000000*
+
+L00512 00000000000000000000000000000000*
+L00544 00000000000000000000000000000000*
+L00576 00000000000000000000000000000000*
+L00608 00000000000000000000000000000000*
+L00640 00000000000000000000000000000000*
+L00672 00000000000000000000000000000000*
+L00704 00000000000000000000000000000000*
+L00736 00000000000000000000000000000000*
+
+L00768 01011011011110110111011101111111*
+L00800 11111111111111111111111111111011*
+L00832 11111111111111111111111111111101*
+L00864 11111111111111111111111111101111*
+L00896 11111111111111111111110111111111*
+L00928 11111111111111111110111111111111*
+L00960 11111111111111011111111111111111*
+L00992 11111101111011111111111111111111*
+
+L01024 01010111101101111011011101111111*
+L01056 11111111111111111111111111110111*
+L01088 11111111111111111111111111111110*
+L01120 11111111111111111111111111011111*
+L01152 11111111111111111111111011111111*
+L01184 11111111111111111101111111111111*
+L01216 11111111111111101111111111111111*
+L01248 11111110110111111111111111111111*
+
+L01280 00000000000000000000000000000000*
+L01312 00000000000000000000000000000000*
+L01344 00000000000000000000000000000000*
+L01376 00000000000000000000000000000000*
+L01408 00000000000000000000000000000000*
+L01440 00000000000000000000000000000000*
+L01472 00000000000000000000000000000000*
+L01504 00000000000000000000000000000000*
+
+L01536 00000000000000000000000000000000*
+L01568 00000000000000000000000000000000*
+L01600 00000000000000000000000000000000*
+L01632 00000000000000000000000000000000*
+L01664 00000000000000000000000000000000*
+L01696 00000000000000000000000000000000*
+L01728 00000000000000000000000000000000*
+L01760 00000000000000000000000000000000*
+
+L01792 00000000000000000000000000000000*
+L01824 00000000000000000000000000000000*
+L01856 00000000000000000000000000000000*
+L01888 00000000000000000000000000000000*
+L01920 00000000000000000000000000000000*
+L01952 00000000000000000000000000000000*
+L01984 00000000000000000000000000000000*
+L02016 00000000000000000000000000000000*
+
+N ==> XOR *
+L02048 11111111*
+N ==> Signature is "" *
+L02056 00000000000000000000000000000000*
+L02088 00000000000000000000000000000000*
+N ==> AC1 *
+L02120 11100111*
+N ==> PTD *
+L02128 00000000000000000000000011111111*
+L02160 11111111000000000000000000000000*
+N ==> SYN 2192, AC0 2193 *
+L02192 10*
+C3FBF*
+
+0000
diff --git a/regtests/jedutil/jeds/gal16v8/pal16l2-to-gal16v8.jed b/regtests/jedutil/jeds/gal16v8/pal16l2-to-gal16v8.jed
new file mode 100644
index 00000000000..41dc394b858
--- /dev/null
+++ b/regtests/jedutil/jeds/gal16v8/pal16l2-to-gal16v8.jed
@@ -0,0 +1,106 @@
+
+Device G16V8 converted from PAL16L2 JEDEC map.
+PAL to GAL JEDEC conversion utility - paltogal v3.12 17 November 1992
+Copyright (c) by LATTICE Semiconductor Corp. 1990, 1991, 1992.
+Input File: pal16l2.jed
+Output File: gal16v8.jed
+The Date: Fri Sep 28 22:28:15 2012
+
+
+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*
+QF2194*QP20*F0*
+
+L00000 00000000000000000000000000000000*
+L00032 00000000000000000000000000000000*
+L00064 00000000000000000000000000000000*
+L00096 00000000000000000000000000000000*
+L00128 00000000000000000000000000000000*
+L00160 00000000000000000000000000000000*
+L00192 00000000000000000000000000000000*
+L00224 00000000000000000000000000000000*
+
+L00256 00000000000000000000000000000000*
+L00288 00000000000000000000000000000000*
+L00320 00000000000000000000000000000000*
+L00352 00000000000000000000000000000000*
+L00384 00000000000000000000000000000000*
+L00416 00000000000000000000000000000000*
+L00448 00000000000000000000000000000000*
+L00480 00000000000000000000000000000000*
+
+L00512 00000000000000000000000000000000*
+L00544 00000000000000000000000000000000*
+L00576 00000000000000000000000000000000*
+L00608 00000000000000000000000000000000*
+L00640 00000000000000000000000000000000*
+L00672 00000000000000000000000000000000*
+L00704 00000000000000000000000000000000*
+L00736 00000000000000000000000000000000*
+
+L00768 01010111011101110111101101111111*
+L00800 11111111111111111111111111110111*
+L00832 11111111111111111111111111111101*
+L00864 11111111111111111111111111011111*
+L00896 11111111111111111111111011111111*
+L00928 11111111111111111110111111111111*
+L00960 11111111111111101111111111111111*
+L00992 11111110111011111111111111111111*
+
+L01024 01010111101101110111011101111111*
+L01056 11111111111111111111111111111011*
+L01088 11111111111111111111111111111110*
+L01120 11111111111111111111111111101111*
+L01152 11111111111111111111110111111111*
+L01184 11111111111111111101111111111111*
+L01216 11111111111111011111111111111111*
+L01248 11111101110111111111111111111111*
+
+L01280 00000000000000000000000000000000*
+L01312 00000000000000000000000000000000*
+L01344 00000000000000000000000000000000*
+L01376 00000000000000000000000000000000*
+L01408 00000000000000000000000000000000*
+L01440 00000000000000000000000000000000*
+L01472 00000000000000000000000000000000*
+L01504 00000000000000000000000000000000*
+
+L01536 00000000000000000000000000000000*
+L01568 00000000000000000000000000000000*
+L01600 00000000000000000000000000000000*
+L01632 00000000000000000000000000000000*
+L01664 00000000000000000000000000000000*
+L01696 00000000000000000000000000000000*
+L01728 00000000000000000000000000000000*
+L01760 00000000000000000000000000000000*
+
+L01792 00000000000000000000000000000000*
+L01824 00000000000000000000000000000000*
+L01856 00000000000000000000000000000000*
+L01888 00000000000000000000000000000000*
+L01920 00000000000000000000000000000000*
+L01952 00000000000000000000000000000000*
+L01984 00000000000000000000000000000000*
+L02016 00000000000000000000000000000000*
+
+N ==> XOR *
+L02048 00000000*
+N ==> Signature is "" *
+L02056 00000000000000000000000000000000*
+L02088 00000000000000000000000000000000*
+N ==> AC1 *
+L02120 11100111*
+N ==> PTD *
+L02128 00000000000000000000000011111111*
+L02160 11111111000000000000000000000000*
+N ==> SYN 2192, AC0 2193 *
+L02192 10*
+C3ED1*
+
+0000
diff --git a/regtests/jedutil/jeds/gal16v8/pal16l8-to-gal16v8.jed b/regtests/jedutil/jeds/gal16v8/pal16l8-to-gal16v8.jed
new file mode 100644
index 00000000000..b28ac9af7ff
--- /dev/null
+++ b/regtests/jedutil/jeds/gal16v8/pal16l8-to-gal16v8.jed
@@ -0,0 +1,107 @@
+
+Device G16V8 converted from PAL16L8 JEDEC map.
+PAL to GAL JEDEC conversion utility - paltogal v3.12 17 November 1992
+Copyright (c) by LATTICE Semiconductor Corp. 1990, 1991, 1992.
+Input File: pal16l8.jed
+Output File: gal16v8.jed
+The Date: Fri Sep 28 22:29:50 2012
+
+
+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*
+QF2194*QP20*F0*
+
+L00000 11111111111111111111111111111111*
+L00032 11111111111101110111101111111101*
+L00064 11110111111111110111011111111111*
+L00096 11111111111101111111111111111111*
+L00128 11111111111111110111111111111111*
+L00160 11111111111111111111011111111111*
+L00192 11111111111111111111111111111101*
+L00224 11111111111111111111101111111111*
+
+L00256 11111111111111111111111111111111*
+L00288 10111111111101110111101111111111*
+L00320 11110111111111110111011111111101*
+L00352 11110111111111111111111111111111*
+L00384 10111111111111111111101111111111*
+L00416 11110111111111111111111111111101*
+L00448 11111111111101110111101111111111*
+L00480 11111111111111111111011111111101*
+
+L00512 11111111111111101111111111111111*
+L00544 01111111111101110111101111111111*
+L00576 01111110111111111111111111111111*
+L00608 11111111111101111111111111111111*
+L00640 11111111111111110111111111111111*
+L00672 11111101111111111111101111111111*
+L00704 01111111111111111111101111111111*
+L00736 11111111111101110111111111111111*
+
+L00768 11111111111111111111111111111111*
+L00800 11111011111011111111111111111111*
+L00832 11111111101111111111111111111110*
+L00864 11111011101111111111111111111111*
+L00896 11111011011111111111111111111111*
+L00928 11111111110111111111101111111111*
+L00960 11111111111111111111101111111110*
+L00992 11111111011111111111111111111111*
+
+L01024 11111111111111111111111111111111*
+L01056 11110111111111110111011111111110*
+L01088 11111111111111010111111111111111*
+L01120 11110111111111101111111111111111*
+L01152 11111111111111111111011111111111*
+L01184 11111111111111111111111111111110*
+L01216 11111111111111110111011111111111*
+L01248 11111111111111111111011111111110*
+
+L01280 11111111111111111111111111111111*
+L01312 11011111111111111110111111111111*
+L01344 11111111111111111111111110111111*
+L01376 11011111111111111111111110111111*
+L01408 10011111111111111110111111111111*
+L01440 10111111111111111111111111111111*
+L01472 01111111111111111101111110111111*
+L01504 11110111111111111111111111111111*
+
+L01536 01111111111111111111110111111111*
+L01568 11111111111111111111111011111101*
+L01600 11111111111111111111111111111011*
+L01632 11111111111111111111111101111111*
+L01664 11111111111111111111101111111111*
+L01696 11111111111111111011110111111111*
+L01728 11111111111101111111111111111111*
+L01760 11111111011111111111111111111111*
+
+L01792 11111111111111111111111111111111*
+L01824 11110111111111111111011111111011*
+L01856 11011111111111111111111111011111*
+L01888 11110111111111111111111111111111*
+L01920 11111111111111111011111111111111*
+L01952 11111111111111111111111101111111*
+L01984 11111111111111111111111111111011*
+L02016 11111111111111111111011111101111*
+
+N ==> XOR *
+L02048 00000000*
+N ==> Signature is "" *
+L02056 00000000000000000000000000000000*
+L02088 00000000000000000000000000000000*
+N ==> AC1 *
+L02120 11111111*
+N ==> PTD *
+L02128 11111111111111111111111111111111*
+L02160 11111111111111111111111111111111*
+N ==> SYN 2192, AC0 2193 *
+L02192 11*
+CFCC2*
+
+0000
diff --git a/regtests/jedutil/jeds/gal16v8/pal16r4-to-gal16v8.jed b/regtests/jedutil/jeds/gal16v8/pal16r4-to-gal16v8.jed
new file mode 100644
index 00000000000..4fc7feb5123
--- /dev/null
+++ b/regtests/jedutil/jeds/gal16v8/pal16r4-to-gal16v8.jed
@@ -0,0 +1,106 @@
+
+Device G16V8 converted from PAL16R4 JEDEC map.
+PAL to GAL JEDEC conversion utility - paltogal v3.12 17 November 1992
+Copyright (c) by LATTICE Semiconductor Corp. 1990, 1991, 1992.
+Input File: pal16r4.jed
+Output File: gal16v8.jed
+The Date: Sun Sep 30 22:07:16 2012
+
+
+PAL16R4
+EQN2JED - Boolean Equations to JEDEC file assembler (Version V101)
+Copyright (c) National Semiconductor Corporation 1990-1993
+Assembled from "pal16r4.eqn". Date: 9-6-112
+*
+NOTE PINS CLK:1 i2:2 i3:3 i4:4 i5:5 i6:6 i7:7 i8:8 i9:9 GND:10*
+NOTE PINS /OE:11 o12:12 o13:13 rf14:14 rf15:15 rf16:16 rf17:17*
+NOTE PINS o18:18 o19:19 VCC:20*
+QF2194*QP20*F0*
+
+L00000 11111111111111111111111111111111*
+L00032 11111111111101110111101111111111*
+L00064 11110111111111110111011111111111*
+L00096 11111111111101111111111111111111*
+L00128 11111111111111110111111111111111*
+L00160 11111111111111111111011111111111*
+L00192 11111111101111111111111111111111*
+L00224 11111111111111111111101111111111*
+
+L00256 11111111111111111111111111111111*
+L00288 10111111111101110111101111111111*
+L00320 11110111111111110111011111111111*
+L00352 11110111111111111111111111111111*
+L00384 10111111111111111111101111111111*
+L00416 11111011111111111111111111111111*
+L00448 11111111111101110111101111111111*
+L00480 11111111111111111111011111111111*
+
+L00512 01111111111101110111101111111111*
+L00544 01111110111111111111111111111111*
+L00576 11111111111101111111111111111111*
+L00608 11111111111111110111111111111111*
+L00640 11111101111111111111101111111111*
+L00672 01111111111111111111101111111111*
+L00704 11111111111101110111111111111111*
+L00736 11111011111111111111111111111111*
+
+L00768 11111011111011111111111111111111*
+L00800 11111111101111111111111111111111*
+L00832 11111011111111111111111111111111*
+L00864 11111011011111111111111111111111*
+L00896 11111111110111111111101111111111*
+L00928 11111111111111111111101111111111*
+L00960 11111111011111111111111111111111*
+L00992 01110111111111111111111111111111*
+
+L01024 11110111111111110111011111111111*
+L01056 11111111111111010111111111111111*
+L01088 11110111111111101111111111111111*
+L01120 11111111111111111111011111111111*
+L01152 11111111101111111111111111111111*
+L01184 11111111111111110111011111111111*
+L01216 11111111011111111111011111111111*
+L01248 10111111111111111111101111111111*
+
+L01280 11111111111111111110111111111111*
+L01312 11111111111111111111111110111111*
+L01344 11111111111111111111111101111111*
+L01376 10111111111111111110111111111111*
+L01408 10111111111111111111111111111111*
+L01440 01111111111111111101111110111111*
+L01472 11111111101111111111111111111111*
+L01504 11110111111111111111111111111111*
+
+L01536 01111111111111111111110111111111*
+L01568 11111111111111111111111011111111*
+L01600 11111111111111111111111111111011*
+L01632 11111111111111111111111101111111*
+L01664 11111111111111111111101111111111*
+L01696 11111111111111111011111011111111*
+L01728 11111111111101111111111111111111*
+L01760 11111111011111111111111111111111*
+
+L01792 11111111111111111111110111111111*
+L01824 10111011111111111111111111111111*
+L01856 11111111011111111111111111011111*
+L01888 11110111111111111111111111111111*
+L01920 11111111111111111011111111111111*
+L01952 11111111111111111111111101111111*
+L01984 11111111111111111111111111111011*
+L02016 11111111111111111111011111101111*
+
+N ==> XOR *
+L02048 00000000*
+N ==> Signature is "" *
+L02056 00000000000000000000000000000000*
+L02088 00000000000000000000000000000000*
+N ==> AC1 *
+L02120 11000011*
+N ==> PTD *
+L02128 11111111111111111111111111111111*
+L02160 11111111111111111111111111111111*
+N ==> SYN 2192, AC0 2193 *
+L02192 01*
+C004B*
+
+0000
diff --git a/regtests/jedutil/jeds/gal16v8/pal16r6-to-gal16v8.jed b/regtests/jedutil/jeds/gal16v8/pal16r6-to-gal16v8.jed
new file mode 100644
index 00000000000..d6558b8e8b6
--- /dev/null
+++ b/regtests/jedutil/jeds/gal16v8/pal16r6-to-gal16v8.jed
@@ -0,0 +1,106 @@
+
+Device G16V8 converted from PAL16R6 JEDEC map.
+PAL to GAL JEDEC conversion utility - paltogal v3.12 17 November 1992
+Copyright (c) by LATTICE Semiconductor Corp. 1990, 1991, 1992.
+Input File: pal16r6.jed
+Output File: gal16v8.jed
+The Date: Sun Sep 30 22:09:28 2012
+
+
+PAL16R6
+EQN2JED - Boolean Equations to JEDEC file assembler (Version V101)
+Copyright (c) National Semiconductor Corporation 1990-1993
+Assembled from "pal16r6.eqn". Date: 9-10-112
+*
+NOTE PINS CLK:1 i2:2 i3:3 i4:4 i5:5 i6:6 i7:7 i8:8 i9:9 GND:10*
+NOTE PINS /OE:11 o12:12 rf13:13 rf14:14 rf15:15 rf16:16 rf17:17*
+NOTE PINS rf18:18 o19:19 VCC:20*
+QF2194*QP20*F0*
+
+L00000 11111111111111111111111111111111*
+L00032 11111111111101110111101111111111*
+L00064 11110111111111110111011111111111*
+L00096 11111111111101111111111111111111*
+L00128 11111111111111110111111111111111*
+L00160 11111111111111111111011111111111*
+L00192 11111111101111111111111111111111*
+L00224 11111111111111111111101111111111*
+
+L00256 10111111111101110111101111111111*
+L00288 11110111111111110111011111111111*
+L00320 11110111111111111111111111111111*
+L00352 10111111111111111111101111111111*
+L00384 11111011111111111111111111111111*
+L00416 11111111111101110111101111111111*
+L00448 11111111111111111111011111111111*
+L00480 11111111011111111111111111111111*
+
+L00512 01111111111101110111101111111111*
+L00544 01111110111111111111111111111111*
+L00576 11111111111101111111111111111111*
+L00608 11111111111111110111111111111111*
+L00640 11111101111111111111101111111111*
+L00672 01111111111111111111101111111111*
+L00704 11111111111101110111111111111111*
+L00736 11111011111111111111111111111111*
+
+L00768 11111011111011111111111111111111*
+L00800 11111111101111111111111111111111*
+L00832 11111011111111111111111111111111*
+L00864 11111011011111111111111111111111*
+L00896 11111111110111111111101111111111*
+L00928 11111111111111111111101111111111*
+L00960 11111111011111111111111111111111*
+L00992 01110111111111111111111111111111*
+
+L01024 11110111111111110111011111111111*
+L01056 11111111111111010111111111111111*
+L01088 11110111111111101111111111111111*
+L01120 11111111111111111111011111111111*
+L01152 11111111101111111111111111111111*
+L01184 11111111111111110111011111111111*
+L01216 11111111011111111111011111111111*
+L01248 10111111111111111111101111111111*
+
+L01280 11111111111111111110111111111111*
+L01312 11111111111111111111111110111111*
+L01344 11111111111111111111111101111111*
+L01376 10111111111111111110111111111111*
+L01408 10111111111111111111111111111111*
+L01440 01111111111111111101111110111111*
+L01472 11111111101111111111111111111111*
+L01504 11110111111111111111111111111111*
+
+L01536 11111111111111111111111011111111*
+L01568 11111111111111111111111111111011*
+L01600 11111111111111111111111101111111*
+L01632 11111111111111111111101111111111*
+L01664 11111111111111111011111011111111*
+L01696 11111111111101111111110111111111*
+L01728 11111111011111111111111111111111*
+L01760 10111111111111111111111111111111*
+
+L01792 11111111111111111111110111111111*
+L01824 10111011111111111111111111111111*
+L01856 11111111011111111111111111011111*
+L01888 11110111111111111111111111111111*
+L01920 11111111111111111011111111111111*
+L01952 11111111111111111111111101111111*
+L01984 11111111111111111111111111111011*
+L02016 11111111111111111111011111101111*
+
+N ==> XOR *
+L02048 00000000*
+N ==> Signature is "" *
+L02056 00000000000000000000000000000000*
+L02088 00000000000000000000000000000000*
+N ==> AC1 *
+L02120 10000001*
+N ==> PTD *
+L02128 11111111111111111111111111111111*
+L02160 11111111111111111111111111111111*
+N ==> SYN 2192, AC0 2193 *
+L02192 01*
+C0007*
+
+0000
diff --git a/regtests/jedutil/jeds/gal16v8/pal16r8-to-gal16v8.jed b/regtests/jedutil/jeds/gal16v8/pal16r8-to-gal16v8.jed
new file mode 100644
index 00000000000..4008e16d3f1
--- /dev/null
+++ b/regtests/jedutil/jeds/gal16v8/pal16r8-to-gal16v8.jed
@@ -0,0 +1,106 @@
+
+Device G16V8 converted from PAL16R8 JEDEC map.
+PAL to GAL JEDEC conversion utility - paltogal v3.12 17 November 1992
+Copyright (c) by LATTICE Semiconductor Corp. 1990, 1991, 1992.
+Input File: pal16r8.jed
+Output File: gal16v8.jed
+The Date: Sun Sep 30 22:10:55 2012
+
+
+PAL16R8
+EQN2JED - Boolean Equations to JEDEC file assembler (Version V101)
+Copyright (c) National Semiconductor Corporation 1990-1993
+Assembled from "pal16r8.eqn". Date: 9-10-112
+*
+NOTE PINS CLK:1 i2:2 i3:3 i4:4 i5:5 i6:6 i7:7 i8:8 i9:9 GND:10*
+NOTE PINS /OE:11 rf12:12 rf13:13 rf14:14 rf15:15 rf16:16 rf17:17*
+NOTE PINS rf18:18 rf19:19 VCC:20*
+QF2194*QP20*F0*
+
+L00000 11111111111101110111101111111111*
+L00032 11110111111111110111011111111111*
+L00064 11111111111101111111111111111101*
+L00096 11111111111111110111111111111111*
+L00128 11111111111111111111011111111111*
+L00160 11111111101111111111111111111110*
+L00192 11111111111111111111101111111111*
+L00224 01111111111111111111111111111111*
+
+L00256 10111111111101110111101111111111*
+L00288 11110111111111110111011111111111*
+L00320 11010111111111111111111111111111*
+L00352 10111111111111111111101111111111*
+L00384 11101011111111111111111111111111*
+L00416 11111111111101110111101111111111*
+L00448 11111111111111111111011111111111*
+L00480 11111111101111111111111111111111*
+
+L00512 01111111111101110111101111111111*
+L00544 01111110111111111111111111111111*
+L00576 11111111111101111111111111111111*
+L00608 11111111111111110111111111111111*
+L00640 11111101111111111111101111111111*
+L00672 01111111111111111111101111111111*
+L00704 11111111111101110111111111111111*
+L00736 11111011111111111111111111111111*
+
+L00768 11111011111011111111111111111111*
+L00800 11111111101111111111111111111111*
+L00832 11111011111111111111111111111111*
+L00864 11111011011111111111111111111111*
+L00896 11111111110111111111101111111111*
+L00928 11111111111111111111101111111111*
+L00960 11111111011111111111111111111111*
+L00992 01110111111111111111111111111111*
+
+L01024 11110111111111110111011111111111*
+L01056 11111111111111010111111111111111*
+L01088 11110111111111101111111111111111*
+L01120 11111111111111111111011111111111*
+L01152 11111111101111111111111111111111*
+L01184 11111111111111110111011111111111*
+L01216 11111111011111111111011111111111*
+L01248 10111111111111111111101111111111*
+
+L01280 11111111111111111110111111111111*
+L01312 11111111111111111111111110111111*
+L01344 11111111111111111111111101111111*
+L01376 10111111111111111110111111111111*
+L01408 10111111111111111111111111111111*
+L01440 01111111111111111101111110111111*
+L01472 11111111101111111111111111111111*
+L01504 11110111111111111111111111111111*
+
+L01536 11111111111111111111111011111111*
+L01568 11111111111111111111111111111011*
+L01600 11111111111111111111111101111111*
+L01632 11111111111111111111101111111111*
+L01664 11111111111111111011110111111111*
+L01696 11111111111101111111111111111111*
+L01728 11111111011111111111111111111111*
+L01760 11111011111111111111111111111111*
+
+L01792 10111011111111111111111111111111*
+L01824 11111111011111111111111111011111*
+L01856 11110111111111111111111111111111*
+L01888 11111111111111111011111111111111*
+L01920 11111111111111111111111101111111*
+L01952 11111111111111111111111111111011*
+L01984 11111111111111111111011111101111*
+L02016 11111111111101111111111111111111*
+
+N ==> XOR *
+L02048 00000000*
+N ==> Signature is "" *
+L02056 00000000000000000000000000000000*
+L02088 00000000000000000000000000000000*
+N ==> AC1 *
+L02120 00000000*
+N ==> PTD *
+L02128 11111111111111111111111111111111*
+L02160 11111111111111111111111111111111*
+N ==> SYN 2192, AC0 2193 *
+L02192 01*
+CFF4A*
+
+0000
diff --git a/regtests/jedutil/jeds/gal18v10/gal18v10-test1.jed b/regtests/jedutil/jeds/gal18v10/gal18v10-test1.jed
new file mode 100644
index 00000000000..2e02cf2b866
--- /dev/null
+++ b/regtests/jedutil/jeds/gal18v10/gal18v10-test1.jed
@@ -0,0 +1,109 @@
+ispLEVER Classic 1.6.00.07.29.12 Lattice Semiconductor Corp.
+JEDEC file for: P18V10G V9.0
+Created on: Mon Dec 24 21:16:31 2012
+
+GAL18V10 Test1
+*
+QP20* QF3540* QV0* F0*
+ X0*
+NOTE DEVICE NAME: GAL18V10-15LJ*
+NOTE Table of pin names and numbers*
+NOTE PINS i1:1 i2:2 i3:3 i4:4 i5:5 i6:6 i7:7 i8:8 o9:9 o11:11 o12:12*
+NOTE PINS o13:13 o14:14 o15:15 o16:16 o17:17 o18:18 o19:19*
+L0036 111111111111111111111111111111111111*
+L0072 111101111111111111111111111111111111*
+L0108 111111110111111111111111111111111111*
+L0144 111111111111011111111111111111111111*
+L0180 111111111111111110111111111111111111*
+L0216 111111111111111111111011111111111111*
+L0252 111111111111111111111111101111111111*
+L0288 011111011111111111111111111111111111*
+L0324 111111101111111111111111111110111111*
+L0360 111111111111111111111111111111111111*
+L0396 101111111111111111111111111111111111*
+L0432 111110111111111111111111111111111111*
+L0468 111111111011111111111111111111111111*
+L0504 111111111111111111110111111111111111*
+L0540 111111111111111111111111011111111111*
+L0576 111111111111111111111111111101111111*
+L0612 111111111101101111111111111111111111*
+L0648 111111111110111101111111111111111111*
+L0684 111111111111111111111111111111111111*
+L0720 101111111111111111111111111111111111*
+L0756 111101111111111111111111111111111111*
+L0792 111111111111111110111111111111111111*
+L0828 111111111011111111110111111111111111*
+L0864 111111111111111111111011111111111111*
+L0900 111111111111111111111111111101111111*
+L0936 111111111111110111111111101111111111*
+L0972 111111111111011011111111111111111111*
+L1008 111111111111111111111111111111111111*
+L1044 111111110111111111111111111111111111*
+L1080 111111111111101111111111111111111111*
+L1116 111111111111111101111111111111111111*
+L1152 111111111111111111111011111111111111*
+L1188 111111111111111111111111011111111111*
+L1224 111111111111111111111111111110111111*
+L1260 011111111111111111011111111111111111*
+L1296 111110111111111111101111111111111111*
+L1332 111111111111111111111111111111111111*
+L1368 111111111011101111111111111111111111*
+L1404 111111111111111101111111111111111111*
+L1440 011101110111011101111111111111111111*
+L1476 111110111111111111111111011111111111*
+L1512 111111110111111111111111111101111111*
+L1548 111111111111111111111111101101111111*
+L1584 111111111111111111110111011110111111*
+L1620 111111111111101111111101111111111111*
+L1656 111111111111111111111101011111111111*
+L1692 111111111111111111110110011110111111*
+L1728 111111111111111111111111111111111111*
+L1764 111110111011101111111111111111111111*
+L1800 111111111111011101111111111111111111*
+L1836 111101111111111111111011111111111111*
+L1872 111111110111111111111111011111111111*
+L1908 111111111111111111110111101111111111*
+L1944 111111111111111111111111111101111111*
+L1980 111110110111111110111111111101111111*
+L2016 101111111111111111111111111110111111*
+L2052 111101111111111111111111100111111111*
+L2088 011111111111111111111111111011111111*
+L2124 111111111111111111111111111111111111*
+L2160 101111111111111111111111111111111111*
+L2196 111101111111111111111111111111111111*
+L2232 111111111011111111111111111111111111*
+L2268 111111111111101111111111111111111111*
+L2304 111111111111111111111011111111111111*
+L2340 111111111111111111111111111101111111*
+L2376 111111111111111111111111101111011111*
+L2412 111111111111111110111111111111101111*
+L2448 111111111111111111111111111111111111*
+L2484 011111111111111111111111111111111111*
+L2520 111101111111111111111111111111111111*
+L2556 111111111111011111111111111111111111*
+L2592 111111111111111101111111111111111111*
+L2628 111111111111111111110111111111111111*
+L2664 111111111111111111111111111110111111*
+L2700 111111111111111111111111011111110111*
+L2736 111111110111111111111111111111111011*
+L2772 111111111111111111111111111111111111*
+L2808 101111111111111111111111111111111111*
+L2844 111110111111111111111111111111111111*
+L2880 111111111111111101111111111111111111*
+L2916 111111111111111111111011111111111111*
+L2952 111111111111111111111111101111111111*
+L2988 111111111111111111111111111101111111*
+L3024 111111111111011111111111111111111101*
+L3060 111111111011111111111111111111111110*
+L3096 111111111111111111111111111111111111*
+L3132 011101111111111111111111111111111111*
+L3168 111111111011111111111111111111111111*
+L3204 110111111111111111111111111111111111*
+L3240 111111111111101111111111111111111111*
+L3276 111111111111111110111111111111111111*
+L3312 111111111111111111110111111111111111*
+L3348 111111111111111111111111011111111111*
+L3384 111011111111111111111111111110111111*
+L3456 01110111011101110111*
+C9F0C*
+7A91
diff --git a/regtests/jedutil/jeds/gal18v10/pal10h8-to-gal18v10.jed b/regtests/jedutil/jeds/gal18v10/pal10h8-to-gal18v10.jed
new file mode 100644
index 00000000000..5139022bfca
--- /dev/null
+++ b/regtests/jedutil/jeds/gal18v10/pal10h8-to-gal18v10.jed
@@ -0,0 +1,133 @@
+
+Device G18V10 converted from PEEL18CV8-> JEDEC map.
+PAL to GAL JEDEC conversion utility - paltogal v3.12 17 November 1992
+Copyright (c) by LATTICE Semiconductor Corp. 1990, 1991, 1992.
+Input File: pal10h8.jed
+Output File: 10h8.jed
+The Date: Fri Nov 30 21:36:06 2012
+
+
+ JEDEC PEEL file Translated from: PAL10H8 Mon 10-8-2012 22:35:56
+ PA
+*QP20
+*QF3540
+*F0
+ *
+N Output Pin 19 *
+
+L00000 000000000000000000000000000000000000*
+
+L00036 111111111111111111111111111111111111*
+L00072 011101110111011101110111011110111111*
+L00108 111111111111111111111111111111110111*
+L00144 000000000000000000000000000000000000*
+L00180 000000000000000000000000000000000000*
+L00216 000000000000000000000000000000000000*
+L00252 000000000000000000000000000000000000*
+L00288 000000000000000000000000000000000000*
+L00324 000000000000000000000000000000000000*
+
+L00360 111111111111111111111111111111111111*
+L00396 011101110111011101110111101101111111*
+L00432 111111111111111111111111111111110110*
+L00468 000000000000000000000000000000000000*
+L00504 000000000000000000000000000000000000*
+L00540 000000000000000000000000000000000000*
+L00576 000000000000000000000000000000000000*
+L00612 000000000000000000000000000000000000*
+L00648 000000000000000000000000000000000000*
+
+L00684 111111111111111111111111111111111111*
+L00720 011101110111011101111011011101111111*
+L00756 111111111111111111111111111111111001*
+L00792 000000000000000000000000000000000000*
+L00828 000000000000000000000000000000000000*
+L00864 000000000000000000000000000000000000*
+L00900 000000000000000000000000000000000000*
+L00936 000000000000000000000000000000000000*
+L00972 000000000000000000000000000000000000*
+
+L01008 111111111111111111111111111111111111*
+L01044 011101110111011110110111011101111111*
+L01080 111111111111111111111111111111111010*
+L01116 000000000000000000000000000000000000*
+L01152 000000000000000000000000000000000000*
+L01188 000000000000000000000000000000000000*
+L01224 000000000000000000000000000000000000*
+L01260 000000000000000000000000000000000000*
+L01296 000000000000000000000000000000000000*
+
+L01332 111111111111111111111111111111111111*
+L01368 011101110111101101110111011101111111*
+L01404 111111111111111111111111111111111010*
+L01440 000000000000000000000000000000000000*
+L01476 000000000000000000000000000000000000*
+L01512 000000000000000000000000000000000000*
+L01548 000000000000000000000000000000000000*
+L01584 000000000000000000000000000000000000*
+L01620 000000000000000000000000000000000000*
+L01656 000000000000000000000000000000000000*
+L01692 000000000000000000000000000000000000*
+
+L01728 111111111111111111111111111111111111*
+L01764 011101111011011101110111011101111111*
+L01800 111111111111111111111111111111111001*
+L01836 000000000000000000000000000000000000*
+L01872 000000000000000000000000000000000000*
+L01908 000000000000000000000000000000000000*
+L01944 000000000000000000000000000000000000*
+L01980 000000000000000000000000000000000000*
+L02016 000000000000000000000000000000000000*
+L02052 000000000000000000000000000000000000*
+L02088 000000000000000000000000000000000000*
+
+L02124 111111111111111111111111111111111111*
+L02160 011110110111011101110111011101111111*
+L02196 111111111111111111111111111111110110*
+L02232 000000000000000000000000000000000000*
+L02268 000000000000000000000000000000000000*
+L02304 000000000000000000000000000000000000*
+L02340 000000000000000000000000000000000000*
+L02376 000000000000000000000000000000000000*
+L02412 000000000000000000000000000000000000*
+
+L02448 111111111111111111111111111111111111*
+L02484 101101110111011101110111011101111111*
+L02520 111111111111111111111111111111110101*
+L02556 000000000000000000000000000000000000*
+L02592 000000000000000000000000000000000000*
+L02628 000000000000000000000000000000000000*
+L02664 000000000000000000000000000000000000*
+L02700 000000000000000000000000000000000000*
+L02736 000000000000000000000000000000000000*
+
+L02772 000000000000000000000000000000000000*
+L02808 000000000000000000000000000000000000*
+L02844 000000000000000000000000000000000000*
+L02880 000000000000000000000000000000000000*
+L02916 000000000000000000000000000000000000*
+L02952 000000000000000000000000000000000000*
+L02988 000000000000000000000000000000000000*
+L03024 000000000000000000000000000000000000*
+L03060 000000000000000000000000000000000000*
+
+L03096 000000000000000000000000000000000000*
+L03132 000000000000000000000000000000000000*
+L03168 000000000000000000000000000000000000*
+L03204 000000000000000000000000000000000000*
+L03240 000000000000000000000000000000000000*
+L03276 000000000000000000000000000000000000*
+L03312 000000000000000000000000000000000000*
+L03348 000000000000000000000000000000000000*
+L03384 000000000000000000000000000000000000*
+
+L03420 000000000000000000000000000000000000*
+
+N ==> Architecture Control *
+L03456 11111111111111110101*
+N ==> Signature is "" *
+L03476 000000000000000000000000000000000000*
+L03512 0000000000000000000000000000*
+C693E*
+
+0000
diff --git a/regtests/jedutil/jeds/gal18v10/pal10l8-to-gal18v10.jed b/regtests/jedutil/jeds/gal18v10/pal10l8-to-gal18v10.jed
new file mode 100644
index 00000000000..84ba967a39d
--- /dev/null
+++ b/regtests/jedutil/jeds/gal18v10/pal10l8-to-gal18v10.jed
@@ -0,0 +1,133 @@
+
+Device G18V10 converted from PEEL18CV8-> JEDEC map.
+PAL to GAL JEDEC conversion utility - paltogal v3.12 17 November 1992
+Copyright (c) by LATTICE Semiconductor Corp. 1990, 1991, 1992.
+Input File: pal10l8.jed
+Output File: 10l8.jed
+The Date: Fri Nov 30 21:38:16 2012
+
+
+ JEDEC PEEL file Translated from: PAL10L8 Mon 10-8-2012 22:38:46
+ PA
+*QP20
+*QF3540
+*F0
+ *
+N Output Pin 19 *
+
+L00000 000000000000000000000000000000000000*
+
+L00036 111111111111111111111111111111111111*
+L00072 011101110111011101110111011110111111*
+L00108 111111111111111111111111111111111110*
+L00144 000000000000000000000000000000000000*
+L00180 000000000000000000000000000000000000*
+L00216 000000000000000000000000000000000000*
+L00252 000000000000000000000000000000000000*
+L00288 000000000000000000000000000000000000*
+L00324 000000000000000000000000000000000000*
+
+L00360 111111111111111111111111111111111111*
+L00396 011101110111011101110111101101111111*
+L00432 111111111111111111111111111111110111*
+L00468 000000000000000000000000000000000000*
+L00504 000000000000000000000000000000000000*
+L00540 000000000000000000000000000000000000*
+L00576 000000000000000000000000000000000000*
+L00612 000000000000000000000000000000000000*
+L00648 000000000000000000000000000000000000*
+
+L00684 111111111111111111111111111111111111*
+L00720 011101110111011101111011011101111111*
+L00756 111111111111111111111111111111111001*
+L00792 000000000000000000000000000000000000*
+L00828 000000000000000000000000000000000000*
+L00864 000000000000000000000000000000000000*
+L00900 000000000000000000000000000000000000*
+L00936 000000000000000000000000000000000000*
+L00972 000000000000000000000000000000000000*
+
+L01008 111111111111111111111111111111111111*
+L01044 011101110111011110110111011101111111*
+L01080 111111111111111111111111111111111010*
+L01116 000000000000000000000000000000000000*
+L01152 000000000000000000000000000000000000*
+L01188 000000000000000000000000000000000000*
+L01224 000000000000000000000000000000000000*
+L01260 000000000000000000000000000000000000*
+L01296 000000000000000000000000000000000000*
+
+L01332 111111111111111111111111111111111111*
+L01368 011101110111101101110111011101111111*
+L01404 111111111111111111111111111111111010*
+L01440 000000000000000000000000000000000000*
+L01476 000000000000000000000000000000000000*
+L01512 000000000000000000000000000000000000*
+L01548 000000000000000000000000000000000000*
+L01584 000000000000000000000000000000000000*
+L01620 000000000000000000000000000000000000*
+L01656 000000000000000000000000000000000000*
+L01692 000000000000000000000000000000000000*
+
+L01728 111111111111111111111111111111111111*
+L01764 011101111011011101110111011101111111*
+L01800 111111111111111111111111111111111001*
+L01836 000000000000000000000000000000000000*
+L01872 000000000000000000000000000000000000*
+L01908 000000000000000000000000000000000000*
+L01944 000000000000000000000000000000000000*
+L01980 000000000000000000000000000000000000*
+L02016 000000000000000000000000000000000000*
+L02052 000000000000000000000000000000000000*
+L02088 000000000000000000000000000000000000*
+
+L02124 111111111111111111111111111111111111*
+L02160 011110110111011101110111011101111111*
+L02196 111111111111111111111111111111110110*
+L02232 000000000000000000000000000000000000*
+L02268 000000000000000000000000000000000000*
+L02304 000000000000000000000000000000000000*
+L02340 000000000000000000000000000000000000*
+L02376 000000000000000000000000000000000000*
+L02412 000000000000000000000000000000000000*
+
+L02448 111111111111111111111111111111111111*
+L02484 101101110111011101110111011101111111*
+L02520 111111111111111111111111111111110101*
+L02556 000000000000000000000000000000000000*
+L02592 000000000000000000000000000000000000*
+L02628 000000000000000000000000000000000000*
+L02664 000000000000000000000000000000000000*
+L02700 000000000000000000000000000000000000*
+L02736 000000000000000000000000000000000000*
+
+L02772 000000000000000000000000000000000000*
+L02808 000000000000000000000000000000000000*
+L02844 000000000000000000000000000000000000*
+L02880 000000000000000000000000000000000000*
+L02916 000000000000000000000000000000000000*
+L02952 000000000000000000000000000000000000*
+L02988 000000000000000000000000000000000000*
+L03024 000000000000000000000000000000000000*
+L03060 000000000000000000000000000000000000*
+
+L03096 000000000000000000000000000000000000*
+L03132 000000000000000000000000000000000000*
+L03168 000000000000000000000000000000000000*
+L03204 000000000000000000000000000000000000*
+L03240 000000000000000000000000000000000000*
+L03276 000000000000000000000000000000000000*
+L03312 000000000000000000000000000000000000*
+L03348 000000000000000000000000000000000000*
+L03384 000000000000000000000000000000000000*
+
+L03420 000000000000000000000000000000000000*
+
+N ==> Architecture Control *
+L03456 01010101010101010101*
+N ==> Signature is "" *
+L03476 000000000000000000000000000000000000*
+L03512 0000000000000000000000000000*
+C682C*
+
+0000
diff --git a/regtests/jedutil/jeds/gal18v10/pal12h6-to-gal18v10.jed b/regtests/jedutil/jeds/gal18v10/pal12h6-to-gal18v10.jed
new file mode 100644
index 00000000000..5cc997afea0
--- /dev/null
+++ b/regtests/jedutil/jeds/gal18v10/pal12h6-to-gal18v10.jed
@@ -0,0 +1,133 @@
+
+Device G18V10 converted from PEEL18CV8-> JEDEC map.
+PAL to GAL JEDEC conversion utility - paltogal v3.12 17 November 1992
+Copyright (c) by LATTICE Semiconductor Corp. 1990, 1991, 1992.
+Input File: pal12h6.jed
+Output File: 12h6.jed
+The Date: Fri Nov 30 21:39:39 2012
+
+
+ JEDEC PEEL file Translated from: PAL12H6 Mon 10-8-2012 22:39:42
+ PA
+*QP20
+*QF3540
+*F0
+ *
+N Output Pin 19 *
+
+L00000 000000000000000000000000000000000000*
+
+L00036 000000000000000000000000000000000000*
+L00072 000000000000000000000000000000000000*
+L00108 000000000000000000000000000000000000*
+L00144 000000000000000000000000000000000000*
+L00180 000000000000000000000000000000000000*
+L00216 000000000000000000000000000000000000*
+L00252 000000000000000000000000000000000000*
+L00288 000000000000000000000000000000000000*
+L00324 000000000000000000000000000000000000*
+
+L00360 111111111111111111111111111111111111*
+L00396 011101110111011101111011011101111111*
+L00432 111111111111111111111111111111110110*
+L00468 110111111111111111111111111111111111*
+L00504 111111111111111111111111111111101111*
+L00540 000000000000000000000000000000000000*
+L00576 000000000000000000000000000000000000*
+L00612 000000000000000000000000000000000000*
+L00648 000000000000000000000000000000000000*
+
+L00684 111111111111111111111111111111111111*
+L00720 011101110111011110110111011101111111*
+L00756 111111111111111111111111111111111010*
+L00792 000000000000000000000000000000000000*
+L00828 000000000000000000000000000000000000*
+L00864 000000000000000000000000000000000000*
+L00900 000000000000000000000000000000000000*
+L00936 000000000000000000000000000000000000*
+L00972 000000000000000000000000000000000000*
+
+L01008 111111111111111111111111111111111111*
+L01044 011101110111011101110111101101111111*
+L01080 111111111111111111111111111111111001*
+L01116 000000000000000000000000000000000000*
+L01152 000000000000000000000000000000000000*
+L01188 000000000000000000000000000000000000*
+L01224 000000000000000000000000000000000000*
+L01260 000000000000000000000000000000000000*
+L01296 000000000000000000000000000000000000*
+
+L01332 111111111111111111111111111111111111*
+L01368 011101110111101101110111011101111111*
+L01404 111111111111111111111111111111111010*
+L01440 000000000000000000000000000000000000*
+L01476 000000000000000000000000000000000000*
+L01512 000000000000000000000000000000000000*
+L01548 000000000000000000000000000000000000*
+L01584 000000000000000000000000000000000000*
+L01620 000000000000000000000000000000000000*
+L01656 000000000000000000000000000000000000*
+L01692 000000000000000000000000000000000000*
+
+L01728 111111111111111111111111111111111111*
+L01764 011110110111011101110111011101111111*
+L01800 111111111111111111111111111111110110*
+L01836 000000000000000000000000000000000000*
+L01872 000000000000000000000000000000000000*
+L01908 000000000000000000000000000000000000*
+L01944 000000000000000000000000000000000000*
+L01980 000000000000000000000000000000000000*
+L02016 000000000000000000000000000000000000*
+L02052 000000000000000000000000000000000000*
+L02088 000000000000000000000000000000000000*
+
+L02124 111111111111111111111111111111111111*
+L02160 101101110111011101110111011101111111*
+L02196 111111111111111111111111111111110101*
+L02232 111011111111111111111111111111111111*
+L02268 111111111111111111111111111111011111*
+L02304 000000000000000000000000000000000000*
+L02340 000000000000000000000000000000000000*
+L02376 000000000000000000000000000000000000*
+L02412 000000000000000000000000000000000000*
+
+L02448 000000000000000000000000000000000000*
+L02484 000000000000000000000000000000000000*
+L02520 000000000000000000000000000000000000*
+L02556 000000000000000000000000000000000000*
+L02592 000000000000000000000000000000000000*
+L02628 000000000000000000000000000000000000*
+L02664 000000000000000000000000000000000000*
+L02700 000000000000000000000000000000000000*
+L02736 000000000000000000000000000000000000*
+
+L02772 000000000000000000000000000000000000*
+L02808 000000000000000000000000000000000000*
+L02844 000000000000000000000000000000000000*
+L02880 000000000000000000000000000000000000*
+L02916 000000000000000000000000000000000000*
+L02952 000000000000000000000000000000000000*
+L02988 000000000000000000000000000000000000*
+L03024 000000000000000000000000000000000000*
+L03060 000000000000000000000000000000000000*
+
+L03096 000000000000000000000000000000000000*
+L03132 000000000000000000000000000000000000*
+L03168 000000000000000000000000000000000000*
+L03204 000000000000000000000000000000000000*
+L03240 000000000000000000000000000000000000*
+L03276 000000000000000000000000000000000000*
+L03312 000000000000000000000000000000000000*
+L03348 000000000000000000000000000000000000*
+L03384 000000000000000000000000000000000000*
+
+L03420 000000000000000000000000000000000000*
+
+N ==> Architecture Control *
+L03456 01111111111111010101*
+N ==> Signature is "" *
+L03476 000000000000000000000000000000000000*
+L03512 0000000000000000000000000000*
+C6034*
+
+0000
diff --git a/regtests/jedutil/jeds/gal18v10/pal12l6-to-gal18v10.jed b/regtests/jedutil/jeds/gal18v10/pal12l6-to-gal18v10.jed
new file mode 100644
index 00000000000..04ce7afe0f7
--- /dev/null
+++ b/regtests/jedutil/jeds/gal18v10/pal12l6-to-gal18v10.jed
@@ -0,0 +1,133 @@
+
+Device G18V10 converted from PEEL18CV8-> JEDEC map.
+PAL to GAL JEDEC conversion utility - paltogal v3.12 17 November 1992
+Copyright (c) by LATTICE Semiconductor Corp. 1990, 1991, 1992.
+Input File: pal12l6.jed
+Output File: 12l6.jed
+The Date: Fri Nov 30 21:41:09 2012
+
+
+ JEDEC PEEL file Translated from: PAL12L6 Mon 10-8-2012 22:40:14
+ PA
+*QP20
+*QF3540
+*F0
+ *
+N Output Pin 19 *
+
+L00000 000000000000000000000000000000000000*
+
+L00036 000000000000000000000000000000000000*
+L00072 000000000000000000000000000000000000*
+L00108 000000000000000000000000000000000000*
+L00144 000000000000000000000000000000000000*
+L00180 000000000000000000000000000000000000*
+L00216 000000000000000000000000000000000000*
+L00252 000000000000000000000000000000000000*
+L00288 000000000000000000000000000000000000*
+L00324 000000000000000000000000000000000000*
+
+L00360 111111111111111111111111111111111111*
+L00396 011101110111011101111011011101111111*
+L00432 111111111111111111111111111111110110*
+L00468 110111111111111111111111111111111111*
+L00504 111111111111111111111111111111101111*
+L00540 000000000000000000000000000000000000*
+L00576 000000000000000000000000000000000000*
+L00612 000000000000000000000000000000000000*
+L00648 000000000000000000000000000000000000*
+
+L00684 111111111111111111111111111111111111*
+L00720 011101110111011110110111011101111111*
+L00756 111111111111111111111111111111111010*
+L00792 000000000000000000000000000000000000*
+L00828 000000000000000000000000000000000000*
+L00864 000000000000000000000000000000000000*
+L00900 000000000000000000000000000000000000*
+L00936 000000000000000000000000000000000000*
+L00972 000000000000000000000000000000000000*
+
+L01008 111111111111111111111111111111111111*
+L01044 011101110111101101110111011101111111*
+L01080 111111111111111111111111111111111010*
+L01116 000000000000000000000000000000000000*
+L01152 000000000000000000000000000000000000*
+L01188 000000000000000000000000000000000000*
+L01224 000000000000000000000000000000000000*
+L01260 000000000000000000000000000000000000*
+L01296 000000000000000000000000000000000000*
+
+L01332 111111111111111111111111111111111111*
+L01368 011101111011011101110111011101111111*
+L01404 111111111111111111111111111111110101*
+L01440 000000000000000000000000000000000000*
+L01476 000000000000000000000000000000000000*
+L01512 000000000000000000000000000000000000*
+L01548 000000000000000000000000000000000000*
+L01584 000000000000000000000000000000000000*
+L01620 000000000000000000000000000000000000*
+L01656 000000000000000000000000000000000000*
+L01692 000000000000000000000000000000000000*
+
+L01728 111111111111111111111111111111111111*
+L01764 011110110111011101110111011101111111*
+L01800 111111111111111111111111111111110110*
+L01836 000000000000000000000000000000000000*
+L01872 000000000000000000000000000000000000*
+L01908 000000000000000000000000000000000000*
+L01944 000000000000000000000000000000000000*
+L01980 000000000000000000000000000000000000*
+L02016 000000000000000000000000000000000000*
+L02052 000000000000000000000000000000000000*
+L02088 000000000000000000000000000000000000*
+
+L02124 111111111111111111111111111111111111*
+L02160 101101110111011101110111011101111111*
+L02196 111111111111111111111111111111110101*
+L02232 111011111111111111111111111111111111*
+L02268 111111111111111111111111111111011111*
+L02304 000000000000000000000000000000000000*
+L02340 000000000000000000000000000000000000*
+L02376 000000000000000000000000000000000000*
+L02412 000000000000000000000000000000000000*
+
+L02448 000000000000000000000000000000000000*
+L02484 000000000000000000000000000000000000*
+L02520 000000000000000000000000000000000000*
+L02556 000000000000000000000000000000000000*
+L02592 000000000000000000000000000000000000*
+L02628 000000000000000000000000000000000000*
+L02664 000000000000000000000000000000000000*
+L02700 000000000000000000000000000000000000*
+L02736 000000000000000000000000000000000000*
+
+L02772 000000000000000000000000000000000000*
+L02808 000000000000000000000000000000000000*
+L02844 000000000000000000000000000000000000*
+L02880 000000000000000000000000000000000000*
+L02916 000000000000000000000000000000000000*
+L02952 000000000000000000000000000000000000*
+L02988 000000000000000000000000000000000000*
+L03024 000000000000000000000000000000000000*
+L03060 000000000000000000000000000000000000*
+
+L03096 000000000000000000000000000000000000*
+L03132 000000000000000000000000000000000000*
+L03168 000000000000000000000000000000000000*
+L03204 000000000000000000000000000000000000*
+L03240 000000000000000000000000000000000000*
+L03276 000000000000000000000000000000000000*
+L03312 000000000000000000000000000000000000*
+L03348 000000000000000000000000000000000000*
+L03384 000000000000000000000000000000000000*
+
+L03420 000000000000000000000000000000000000*
+
+N ==> Architecture Control *
+L03456 01010101010101010101*
+N ==> Signature is "" *
+L03476 000000000000000000000000000000000000*
+L03512 0000000000000000000000000000*
+C6035*
+
+0000
diff --git a/regtests/jedutil/jeds/gal18v10/pal14h4-to-gal18v10.jed b/regtests/jedutil/jeds/gal18v10/pal14h4-to-gal18v10.jed
new file mode 100644
index 00000000000..bdd6a4cd8e8
--- /dev/null
+++ b/regtests/jedutil/jeds/gal18v10/pal14h4-to-gal18v10.jed
@@ -0,0 +1,133 @@
+
+Device G18V10 converted from PEEL18CV8-> JEDEC map.
+PAL to GAL JEDEC conversion utility - paltogal v3.12 17 November 1992
+Copyright (c) by LATTICE Semiconductor Corp. 1990, 1991, 1992.
+Input File: pal14h4.jed
+Output File: 14h4.jed
+The Date: Fri Nov 30 21:42:30 2012
+
+
+ JEDEC PEEL file Translated from: PAL14H4 Mon 10-8-2012 22:40:43
+ PA
+*QP20
+*QF3540
+*F0
+ *
+N Output Pin 19 *
+
+L00000 000000000000000000000000000000000000*
+
+L00036 000000000000000000000000000000000000*
+L00072 000000000000000000000000000000000000*
+L00108 000000000000000000000000000000000000*
+L00144 000000000000000000000000000000000000*
+L00180 000000000000000000000000000000000000*
+L00216 000000000000000000000000000000000000*
+L00252 000000000000000000000000000000000000*
+L00288 000000000000000000000000000000000000*
+L00324 000000000000000000000000000000000000*
+
+L00360 000000000000000000000000000000000000*
+L00396 000000000000000000000000000000000000*
+L00432 000000000000000000000000000000000000*
+L00468 000000000000000000000000000000000000*
+L00504 000000000000000000000000000000000000*
+L00540 000000000000000000000000000000000000*
+L00576 000000000000000000000000000000000000*
+L00612 000000000000000000000000000000000000*
+L00648 000000000000000000000000000000000000*
+
+L00684 111111111111111111111111111111111111*
+L00720 011101110111101101110111011101111111*
+L00756 111111111111111111111111111111110101*
+L00792 111111111111111111111111110111101111*
+L00828 110111011111111111111111111111111111*
+L00864 000000000000000000000000000000000000*
+L00900 000000000000000000000000000000000000*
+L00936 000000000000000000000000000000000000*
+L00972 000000000000000000000000000000000000*
+
+L01008 111111111111111111111111111111111111*
+L01044 011101111011011101110111011101111111*
+L01080 111111111111111111111111111111110110*
+L01116 111111111111111111111111111011011111*
+L01152 111011101111111111111111111111111111*
+L01188 000000000000000000000000000000000000*
+L01224 000000000000000000000000000000000000*
+L01260 000000000000000000000000000000000000*
+L01296 000000000000000000000000000000000000*
+
+L01332 111111111111111111111111111111111111*
+L01368 011110110111011101110111011101111111*
+L01404 111111111111111111111111111111111001*
+L01440 111111111111111111111111110111011111*
+L01476 110111101111111111111111111111111111*
+L01512 000000000000000000000000000000000000*
+L01548 000000000000000000000000000000000000*
+L01584 000000000000000000000000000000000000*
+L01620 000000000000000000000000000000000000*
+L01656 000000000000000000000000000000000000*
+L01692 000000000000000000000000000000000000*
+
+L01728 111111111111111111111111111111111111*
+L01764 101101110111011101110111011101111111*
+L01800 111111111111111111111111111111110101*
+L01836 111111111111111111111111111011101111*
+L01872 111011011111111111111111111111111111*
+L01908 000000000000000000000000000000000000*
+L01944 000000000000000000000000000000000000*
+L01980 000000000000000000000000000000000000*
+L02016 000000000000000000000000000000000000*
+L02052 000000000000000000000000000000000000*
+L02088 000000000000000000000000000000000000*
+
+L02124 000000000000000000000000000000000000*
+L02160 000000000000000000000000000000000000*
+L02196 000000000000000000000000000000000000*
+L02232 000000000000000000000000000000000000*
+L02268 000000000000000000000000000000000000*
+L02304 000000000000000000000000000000000000*
+L02340 000000000000000000000000000000000000*
+L02376 000000000000000000000000000000000000*
+L02412 000000000000000000000000000000000000*
+
+L02448 000000000000000000000000000000000000*
+L02484 000000000000000000000000000000000000*
+L02520 000000000000000000000000000000000000*
+L02556 000000000000000000000000000000000000*
+L02592 000000000000000000000000000000000000*
+L02628 000000000000000000000000000000000000*
+L02664 000000000000000000000000000000000000*
+L02700 000000000000000000000000000000000000*
+L02736 000000000000000000000000000000000000*
+
+L02772 000000000000000000000000000000000000*
+L02808 000000000000000000000000000000000000*
+L02844 000000000000000000000000000000000000*
+L02880 000000000000000000000000000000000000*
+L02916 000000000000000000000000000000000000*
+L02952 000000000000000000000000000000000000*
+L02988 000000000000000000000000000000000000*
+L03024 000000000000000000000000000000000000*
+L03060 000000000000000000000000000000000000*
+
+L03096 000000000000000000000000000000000000*
+L03132 000000000000000000000000000000000000*
+L03168 000000000000000000000000000000000000*
+L03204 000000000000000000000000000000000000*
+L03240 000000000000000000000000000000000000*
+L03276 000000000000000000000000000000000000*
+L03312 000000000000000000000000000000000000*
+L03348 000000000000000000000000000000000000*
+L03384 000000000000000000000000000000000000*
+
+L03420 000000000000000000000000000000000000*
+
+N ==> Architecture Control *
+L03456 01011111111101010101*
+N ==> Signature is "" *
+L03476 000000000000000000000000000000000000*
+L03512 0000000000000000000000000000*
+C561B*
+
+0000
diff --git a/regtests/jedutil/jeds/gal18v10/pal14l4-to-gal18v10.jed b/regtests/jedutil/jeds/gal18v10/pal14l4-to-gal18v10.jed
new file mode 100644
index 00000000000..4cea4219308
--- /dev/null
+++ b/regtests/jedutil/jeds/gal18v10/pal14l4-to-gal18v10.jed
@@ -0,0 +1,133 @@
+
+Device G18V10 converted from PEEL18CV8-> JEDEC map.
+PAL to GAL JEDEC conversion utility - paltogal v3.12 17 November 1992
+Copyright (c) by LATTICE Semiconductor Corp. 1990, 1991, 1992.
+Input File: pal14l4.jed
+Output File: 14l4.jed
+The Date: Fri Nov 30 21:44:31 2012
+
+
+ JEDEC PEEL file Translated from: PAL14L4 Mon 10-8-2012 22:41:22
+ PA
+*QP20
+*QF3540
+*F0
+ *
+N Output Pin 19 *
+
+L00000 000000000000000000000000000000000000*
+
+L00036 000000000000000000000000000000000000*
+L00072 000000000000000000000000000000000000*
+L00108 000000000000000000000000000000000000*
+L00144 000000000000000000000000000000000000*
+L00180 000000000000000000000000000000000000*
+L00216 000000000000000000000000000000000000*
+L00252 000000000000000000000000000000000000*
+L00288 000000000000000000000000000000000000*
+L00324 000000000000000000000000000000000000*
+
+L00360 000000000000000000000000000000000000*
+L00396 000000000000000000000000000000000000*
+L00432 000000000000000000000000000000000000*
+L00468 000000000000000000000000000000000000*
+L00504 000000000000000000000000000000000000*
+L00540 000000000000000000000000000000000000*
+L00576 000000000000000000000000000000000000*
+L00612 000000000000000000000000000000000000*
+L00648 000000000000000000000000000000000000*
+
+L00684 111111111111111111111111111111111111*
+L00720 011101110111011101111011011101111111*
+L00756 111111111111111111111111111111110110*
+L00792 111111111111111111111111111011101111*
+L00828 111011101111111111111111111111111111*
+L00864 000000000000000000000000000000000000*
+L00900 000000000000000000000000000000000000*
+L00936 000000000000000000000000000000000000*
+L00972 000000000000000000000000000000000000*
+
+L01008 111111111111111111111111111111111111*
+L01044 011101110111011110110111011101111111*
+L01080 111111111111111111111111111111111010*
+L01116 111111111111111111111111110111011111*
+L01152 111011011111111111111111111111111111*
+L01188 000000000000000000000000000000000000*
+L01224 000000000000000000000000000000000000*
+L01260 000000000000000000000000000000000000*
+L01296 000000000000000000000000000000000000*
+
+L01332 111111111111111111111111111111111111*
+L01368 011101110111101101110111011101111111*
+L01404 111111111111111111111111111111111010*
+L01440 111111111111111111111111110111101111*
+L01476 110111101111111111111111111111111111*
+L01512 000000000000000000000000000000000000*
+L01548 000000000000000000000000000000000000*
+L01584 000000000000000000000000000000000000*
+L01620 000000000000000000000000000000000000*
+L01656 000000000000000000000000000000000000*
+L01692 000000000000000000000000000000000000*
+
+L01728 111111111111111111111111111111111111*
+L01764 011110110111011101110111011101111111*
+L01800 111111111111111111111111111111110110*
+L01836 111111111111111111111111111011011111*
+L01872 110111011111111111111111111111111111*
+L01908 000000000000000000000000000000000000*
+L01944 000000000000000000000000000000000000*
+L01980 000000000000000000000000000000000000*
+L02016 000000000000000000000000000000000000*
+L02052 000000000000000000000000000000000000*
+L02088 000000000000000000000000000000000000*
+
+L02124 000000000000000000000000000000000000*
+L02160 000000000000000000000000000000000000*
+L02196 000000000000000000000000000000000000*
+L02232 000000000000000000000000000000000000*
+L02268 000000000000000000000000000000000000*
+L02304 000000000000000000000000000000000000*
+L02340 000000000000000000000000000000000000*
+L02376 000000000000000000000000000000000000*
+L02412 000000000000000000000000000000000000*
+
+L02448 000000000000000000000000000000000000*
+L02484 000000000000000000000000000000000000*
+L02520 000000000000000000000000000000000000*
+L02556 000000000000000000000000000000000000*
+L02592 000000000000000000000000000000000000*
+L02628 000000000000000000000000000000000000*
+L02664 000000000000000000000000000000000000*
+L02700 000000000000000000000000000000000000*
+L02736 000000000000000000000000000000000000*
+
+L02772 000000000000000000000000000000000000*
+L02808 000000000000000000000000000000000000*
+L02844 000000000000000000000000000000000000*
+L02880 000000000000000000000000000000000000*
+L02916 000000000000000000000000000000000000*
+L02952 000000000000000000000000000000000000*
+L02988 000000000000000000000000000000000000*
+L03024 000000000000000000000000000000000000*
+L03060 000000000000000000000000000000000000*
+
+L03096 000000000000000000000000000000000000*
+L03132 000000000000000000000000000000000000*
+L03168 000000000000000000000000000000000000*
+L03204 000000000000000000000000000000000000*
+L03240 000000000000000000000000000000000000*
+L03276 000000000000000000000000000000000000*
+L03312 000000000000000000000000000000000000*
+L03348 000000000000000000000000000000000000*
+L03384 000000000000000000000000000000000000*
+
+L03420 000000000000000000000000000000000000*
+
+N ==> Architecture Control *
+L03456 01010101010101010101*
+N ==> Signature is "" *
+L03476 000000000000000000000000000000000000*
+L03512 0000000000000000000000000000*
+C5550*
+
+0000
diff --git a/regtests/jedutil/jeds/gal18v10/pal16h2-to-gal18v10.jed b/regtests/jedutil/jeds/gal18v10/pal16h2-to-gal18v10.jed
new file mode 100644
index 00000000000..e96ce8f73d2
--- /dev/null
+++ b/regtests/jedutil/jeds/gal18v10/pal16h2-to-gal18v10.jed
@@ -0,0 +1,133 @@
+
+Device G18V10 converted from PEEL18CV8-> JEDEC map.
+PAL to GAL JEDEC conversion utility - paltogal v3.12 17 November 1992
+Copyright (c) by LATTICE Semiconductor Corp. 1990, 1991, 1992.
+Input File: pal16h2.jed
+Output File: 16h2.jed
+The Date: Fri Nov 30 21:45:36 2012
+
+
+ JEDEC PEEL file Translated from: PAL16H2 Mon 10-8-2012 22:42:12
+ PA
+*QP20
+*QF3540
+*F0
+ *
+N Output Pin 19 *
+
+L00000 000000000000000000000000000000000000*
+
+L00036 000000000000000000000000000000000000*
+L00072 000000000000000000000000000000000000*
+L00108 000000000000000000000000000000000000*
+L00144 000000000000000000000000000000000000*
+L00180 000000000000000000000000000000000000*
+L00216 000000000000000000000000000000000000*
+L00252 000000000000000000000000000000000000*
+L00288 000000000000000000000000000000000000*
+L00324 000000000000000000000000000000000000*
+
+L00360 000000000000000000000000000000000000*
+L00396 000000000000000000000000000000000000*
+L00432 000000000000000000000000000000000000*
+L00468 000000000000000000000000000000000000*
+L00504 000000000000000000000000000000000000*
+L00540 000000000000000000000000000000000000*
+L00576 000000000000000000000000000000000000*
+L00612 000000000000000000000000000000000000*
+L00648 000000000000000000000000000000000000*
+
+L00684 000000000000000000000000000000000000*
+L00720 000000000000000000000000000000000000*
+L00756 000000000000000000000000000000000000*
+L00792 000000000000000000000000000000000000*
+L00828 000000000000000000000000000000000000*
+L00864 000000000000000000000000000000000000*
+L00900 000000000000000000000000000000000000*
+L00936 000000000000000000000000000000000000*
+L00972 000000000000000000000000000000000000*
+
+L01008 111111111111111111111111111111111111*
+L01044 011101111011011110110111011101111111*
+L01080 111111111111111111111111111111111110*
+L01116 111111111111111111111111111111110111*
+L01152 111111111111111111111111111111101111*
+L01188 111111111111111111111111110111111111*
+L01224 111111111111111111111110111111111111*
+L01260 111111111101111111111111111111111111*
+L01296 110111101111111111111111111111111111*
+
+L01332 111111111111111111111111111111111111*
+L01368 011101110111101101111011011101111111*
+L01404 111111111111111111111111111111111101*
+L01440 111111111111111111111111111111111011*
+L01476 111111111111111111111111111111011111*
+L01512 111111111111111111111111111011111111*
+L01548 111111111111111111111101111111111111*
+L01584 111111111110111111111111111111111111*
+L01620 111011011111111111111111111111111111*
+L01656 000000000000000000000000000000000000*
+L01692 000000000000000000000000000000000000*
+
+L01728 000000000000000000000000000000000000*
+L01764 000000000000000000000000000000000000*
+L01800 000000000000000000000000000000000000*
+L01836 000000000000000000000000000000000000*
+L01872 000000000000000000000000000000000000*
+L01908 000000000000000000000000000000000000*
+L01944 000000000000000000000000000000000000*
+L01980 000000000000000000000000000000000000*
+L02016 000000000000000000000000000000000000*
+L02052 000000000000000000000000000000000000*
+L02088 000000000000000000000000000000000000*
+
+L02124 000000000000000000000000000000000000*
+L02160 000000000000000000000000000000000000*
+L02196 000000000000000000000000000000000000*
+L02232 000000000000000000000000000000000000*
+L02268 000000000000000000000000000000000000*
+L02304 000000000000000000000000000000000000*
+L02340 000000000000000000000000000000000000*
+L02376 000000000000000000000000000000000000*
+L02412 000000000000000000000000000000000000*
+
+L02448 000000000000000000000000000000000000*
+L02484 000000000000000000000000000000000000*
+L02520 000000000000000000000000000000000000*
+L02556 000000000000000000000000000000000000*
+L02592 000000000000000000000000000000000000*
+L02628 000000000000000000000000000000000000*
+L02664 000000000000000000000000000000000000*
+L02700 000000000000000000000000000000000000*
+L02736 000000000000000000000000000000000000*
+
+L02772 000000000000000000000000000000000000*
+L02808 000000000000000000000000000000000000*
+L02844 000000000000000000000000000000000000*
+L02880 000000000000000000000000000000000000*
+L02916 000000000000000000000000000000000000*
+L02952 000000000000000000000000000000000000*
+L02988 000000000000000000000000000000000000*
+L03024 000000000000000000000000000000000000*
+L03060 000000000000000000000000000000000000*
+
+L03096 000000000000000000000000000000000000*
+L03132 000000000000000000000000000000000000*
+L03168 000000000000000000000000000000000000*
+L03204 000000000000000000000000000000000000*
+L03240 000000000000000000000000000000000000*
+L03276 000000000000000000000000000000000000*
+L03312 000000000000000000000000000000000000*
+L03348 000000000000000000000000000000000000*
+L03384 000000000000000000000000000000000000*
+
+L03420 000000000000000000000000000000000000*
+
+N ==> Architecture Control *
+L03456 01010111110101010101*
+N ==> Signature is "" *
+L03476 000000000000000000000000000000000000*
+L03512 0000000000000000000000000000*
+C4E8C*
+
+0000
diff --git a/regtests/jedutil/jeds/gal18v10/pal16l2-to-gal18v10.jed b/regtests/jedutil/jeds/gal18v10/pal16l2-to-gal18v10.jed
new file mode 100644
index 00000000000..8b18c90eb4e
--- /dev/null
+++ b/regtests/jedutil/jeds/gal18v10/pal16l2-to-gal18v10.jed
@@ -0,0 +1,133 @@
+
+Device G18V10 converted from PEEL18CV8-> JEDEC map.
+PAL to GAL JEDEC conversion utility - paltogal v3.12 17 November 1992
+Copyright (c) by LATTICE Semiconductor Corp. 1990, 1991, 1992.
+Input File: pal16l2.jed
+Output File: 16l2.jed
+The Date: Fri Nov 30 21:46:26 2012
+
+
+ JEDEC PEEL file Translated from: PAL16L2 Mon 10-8-2012 22:42:40
+ PA
+*QP20
+*QF3540
+*F0
+ *
+N Output Pin 19 *
+
+L00000 000000000000000000000000000000000000*
+
+L00036 000000000000000000000000000000000000*
+L00072 000000000000000000000000000000000000*
+L00108 000000000000000000000000000000000000*
+L00144 000000000000000000000000000000000000*
+L00180 000000000000000000000000000000000000*
+L00216 000000000000000000000000000000000000*
+L00252 000000000000000000000000000000000000*
+L00288 000000000000000000000000000000000000*
+L00324 000000000000000000000000000000000000*
+
+L00360 000000000000000000000000000000000000*
+L00396 000000000000000000000000000000000000*
+L00432 000000000000000000000000000000000000*
+L00468 000000000000000000000000000000000000*
+L00504 000000000000000000000000000000000000*
+L00540 000000000000000000000000000000000000*
+L00576 000000000000000000000000000000000000*
+L00612 000000000000000000000000000000000000*
+L00648 000000000000000000000000000000000000*
+
+L00684 000000000000000000000000000000000000*
+L00720 000000000000000000000000000000000000*
+L00756 000000000000000000000000000000000000*
+L00792 000000000000000000000000000000000000*
+L00828 000000000000000000000000000000000000*
+L00864 000000000000000000000000000000000000*
+L00900 000000000000000000000000000000000000*
+L00936 000000000000000000000000000000000000*
+L00972 000000000000000000000000000000000000*
+
+L01008 111111111111111111111111111111111111*
+L01044 011101110111011101110111101101111111*
+L01080 111111111111111111111111111111111101*
+L01116 111111111111111111111111111111110111*
+L01152 111111111111111111111111111111011111*
+L01188 111111111111111111111111111011111111*
+L01224 111111111111111111111110111111111111*
+L01260 111111111110111111111111111111111111*
+L01296 111011101111111111111111111111111111*
+
+L01332 111111111111111111111111111111111111*
+L01368 011101110111101101110111011101111111*
+L01404 111111111111111111111111111111111110*
+L01440 111111111111111111111111111111111011*
+L01476 111111111111111111111111111111101111*
+L01512 111111111111111111111111110111111111*
+L01548 111111111111111111111101111111111111*
+L01584 111111111101111111111111111111111111*
+L01620 110111011111111111111111111111111111*
+L01656 000000000000000000000000000000000000*
+L01692 000000000000000000000000000000000000*
+
+L01728 000000000000000000000000000000000000*
+L01764 000000000000000000000000000000000000*
+L01800 000000000000000000000000000000000000*
+L01836 000000000000000000000000000000000000*
+L01872 000000000000000000000000000000000000*
+L01908 000000000000000000000000000000000000*
+L01944 000000000000000000000000000000000000*
+L01980 000000000000000000000000000000000000*
+L02016 000000000000000000000000000000000000*
+L02052 000000000000000000000000000000000000*
+L02088 000000000000000000000000000000000000*
+
+L02124 000000000000000000000000000000000000*
+L02160 000000000000000000000000000000000000*
+L02196 000000000000000000000000000000000000*
+L02232 000000000000000000000000000000000000*
+L02268 000000000000000000000000000000000000*
+L02304 000000000000000000000000000000000000*
+L02340 000000000000000000000000000000000000*
+L02376 000000000000000000000000000000000000*
+L02412 000000000000000000000000000000000000*
+
+L02448 000000000000000000000000000000000000*
+L02484 000000000000000000000000000000000000*
+L02520 000000000000000000000000000000000000*
+L02556 000000000000000000000000000000000000*
+L02592 000000000000000000000000000000000000*
+L02628 000000000000000000000000000000000000*
+L02664 000000000000000000000000000000000000*
+L02700 000000000000000000000000000000000000*
+L02736 000000000000000000000000000000000000*
+
+L02772 000000000000000000000000000000000000*
+L02808 000000000000000000000000000000000000*
+L02844 000000000000000000000000000000000000*
+L02880 000000000000000000000000000000000000*
+L02916 000000000000000000000000000000000000*
+L02952 000000000000000000000000000000000000*
+L02988 000000000000000000000000000000000000*
+L03024 000000000000000000000000000000000000*
+L03060 000000000000000000000000000000000000*
+
+L03096 000000000000000000000000000000000000*
+L03132 000000000000000000000000000000000000*
+L03168 000000000000000000000000000000000000*
+L03204 000000000000000000000000000000000000*
+L03240 000000000000000000000000000000000000*
+L03276 000000000000000000000000000000000000*
+L03312 000000000000000000000000000000000000*
+L03348 000000000000000000000000000000000000*
+L03384 000000000000000000000000000000000000*
+
+L03420 000000000000000000000000000000000000*
+
+N ==> Architecture Control *
+L03456 01010101010101010101*
+N ==> Signature is "" *
+L03476 000000000000000000000000000000000000*
+L03512 0000000000000000000000000000*
+C4E2F*
+
+0000
diff --git a/regtests/jedutil/jeds/gal18v10/pal16l8-to-gal18v10.jed b/regtests/jedutil/jeds/gal18v10/pal16l8-to-gal18v10.jed
new file mode 100644
index 00000000000..8b625a37551
--- /dev/null
+++ b/regtests/jedutil/jeds/gal18v10/pal16l8-to-gal18v10.jed
@@ -0,0 +1,133 @@
+
+Device G18V10 converted from PEEL18CV8-> JEDEC map.
+PAL to GAL JEDEC conversion utility - paltogal v3.12 17 November 1992
+Copyright (c) by LATTICE Semiconductor Corp. 1990, 1991, 1992.
+Input File: pal16l8.jed
+Output File: 16l8.jed
+The Date: Fri Nov 30 21:47:54 2012
+
+
+ JEDEC PEEL file Translated from: PAL16L8 Mon 10-8-2012 22:43:12
+ PA
+*QP20
+*QF3540
+*F0
+ *
+N Output Pin 19 *
+
+L00000 000000000000000000000000000000000000*
+
+L00036 111111111111111111111111111111111111*
+L00072 111111111111111101110111101111110111*
+L00108 111111110111111111110111011111111111*
+L00144 111111111111111101111111111111111111*
+L00180 111111111111111111110111111111111111*
+L00216 111111111111111111111111011111111111*
+L00252 111111111111111111111111111111110111*
+L00288 111111111111111111111111101111111111*
+L00324 000000000000000000000000000000000000*
+
+L00360 111111111111111111111111111111111111*
+L00396 111110111111111101110111101111111111*
+L00432 111111110111111111110111011111110111*
+L00468 111111110111111111111111111111111111*
+L00504 111110111111111111111111101111111111*
+L00540 111111110111111111111111111111110111*
+L00576 111111111111111101110111101111111111*
+L00612 111111111111111111111111011111110111*
+L00648 000000000000000000000000000000000000*
+
+L00684 111111111111111011111111111111111111*
+L00720 111101111111111101110111101111111111*
+L00756 111101101111111111111111111111111111*
+L00792 111111111111111101111111111111111111*
+L00828 111111111111111111110111111111111111*
+L00864 111111011111111111111111101111111111*
+L00900 111101111111111111111111101111111111*
+L00936 111111111111111101110111111111111111*
+L00972 000000000000000000000000000000000000*
+
+L01008 111111111111111111111111111111111111*
+L01044 111111111010111111111111111111111111*
+L01080 111111111111101111111111111111111011*
+L01116 111111111011101111111111111111111111*
+L01152 111111111011011111111111111111111111*
+L01188 111111111101111111111111101111111111*
+L01224 111111111111111111111111101111111011*
+L01260 111111111111011111111111111111111111*
+L01296 000000000000000000000000000000000000*
+
+L01332 111111111111111111111111111111111111*
+L01368 111111110111111111110111011111111011*
+L01404 111111111111110111110111111111111111*
+L01440 111111110111111011111111111111111111*
+L01476 111111111111111111111111011111111111*
+L01512 111111111111111111111111111111111011*
+L01548 111111111111111111110111011111111111*
+L01584 111111111111111111111111011111111011*
+L01620 000000000000000000000000000000000000*
+L01656 000000000000000000000000000000000000*
+L01692 000000000000000000000000000000000000*
+
+L01728 111111111111111111111111111111111111*
+L01764 011111111111111111101111111111111111*
+L01800 111111111111111111111111111110111111*
+L01836 011111111111111111111111111110111111*
+L01872 011110111111111111101111111111111111*
+L01908 111110111111111111111111111111111111*
+L01944 111101111111111111011111111110111111*
+L01980 111111110111111111111111111111111111*
+L02016 000000000000000000000000000000000000*
+L02052 000000000000000000000000000000000000*
+L02088 000000000000000000000000000000000000*
+
+L02124 111101111111111111111101111111111111*
+L02160 111111111111111111111110111111110111*
+L02196 111111111111111111111111111111111110*
+L02232 111111111111111111111111111101111111*
+L02268 111111111111111111111111101111111111*
+L02304 111111111111111111111001111111111111*
+L02340 111111111111111101111111111111111111*
+L02376 111111111111011111111111111111111111*
+L02412 000000000000000000000000000000000000*
+
+L02448 111111111111111111111111111111111111*
+L02484 111111110111111111111111011111111110*
+L02520 011111111111111111111111110111111111*
+L02556 111111110111111111111111111111111111*
+L02592 111111111111111111111011111111111111*
+L02628 111111111111111111111111111101111111*
+L02664 111111111111111111111111111111111110*
+L02700 111111111111111111111111011011111111*
+L02736 000000000000000000000000000000000000*
+
+L02772 000000000000000000000000000000000000*
+L02808 000000000000000000000000000000000000*
+L02844 000000000000000000000000000000000000*
+L02880 000000000000000000000000000000000000*
+L02916 000000000000000000000000000000000000*
+L02952 000000000000000000000000000000000000*
+L02988 000000000000000000000000000000000000*
+L03024 000000000000000000000000000000000000*
+L03060 000000000000000000000000000000000000*
+
+L03096 000000000000000000000000000000000000*
+L03132 000000000000000000000000000000000000*
+L03168 000000000000000000000000000000000000*
+L03204 000000000000000000000000000000000000*
+L03240 000000000000000000000000000000000000*
+L03276 000000000000000000000000000000000000*
+L03312 000000000000000000000000000000000000*
+L03348 000000000000000000000000000000000000*
+L03384 000000000000000000000000000000000000*
+
+L03420 000000000000000000000000000000000000*
+
+N ==> Architecture Control *
+L03456 01010101010101010101*
+N ==> Signature is "" *
+L03476 000000000000000000000000000000000000*
+L03512 0000000000000000000000000000*
+C180F*
+
+0000
diff --git a/regtests/jedutil/jeds/gal18v10/pal16r4-to-gal18v10.jed b/regtests/jedutil/jeds/gal18v10/pal16r4-to-gal18v10.jed
new file mode 100644
index 00000000000..efe369eb7d2
--- /dev/null
+++ b/regtests/jedutil/jeds/gal18v10/pal16r4-to-gal18v10.jed
@@ -0,0 +1,133 @@
+
+Device G18V10 converted from PEEL18CV8-> JEDEC map.
+PAL to GAL JEDEC conversion utility - paltogal v3.12 17 November 1992
+Copyright (c) by LATTICE Semiconductor Corp. 1990, 1991, 1992.
+Input File: pal16r4.jed
+Output File: 16r4.jed
+The Date: Fri Nov 30 21:49:02 2012
+
+
+ JEDEC PEEL file Translated from: PAL16R4 Mon 10-8-2012 22:43:51
+ PA
+*QP20
+*QF3540
+*F0
+ *
+N Output Pin 19 *
+
+L00000 000000000000000000000000000000000000*
+
+L00036 111111111111111111111111111111111111*
+L00072 111111111111111101110111101111111111*
+L00108 111111110111111111110111011111111111*
+L00144 111111111111111101111111111111111111*
+L00180 111111111111111111110111111111111111*
+L00216 111111111111111111111111011111111111*
+L00252 111111111111101111111111111111111111*
+L00288 111111111111111111111111101111111111*
+L00324 000000000000000000000000000000000000*
+
+L00360 111111111111111111111111111111111111*
+L00396 111110111111111101110111101111111111*
+L00432 111111110111111111110111011111111111*
+L00468 111111110111111111111111111111111111*
+L00504 111110111111111111111111101111111111*
+L00540 111111111011111111111111111111111111*
+L00576 111111111111111101110111101111111111*
+L00612 111111111111111111111111011111111111*
+L00648 000000000000000000000000000000000000*
+
+L00684 111111111111111111111111111111111011*
+L00720 111101111111111101110111101111111111*
+L00756 111101101111111111111111111111111111*
+L00792 111111111111111101111111111111111111*
+L00828 111111111111111111110111111111111111*
+L00864 111111011111111111111111101111111111*
+L00900 111101111111111111111111101111111111*
+L00936 111111111111111101110111111111111111*
+L00972 111111111011111111111111111111111111*
+
+L01008 111111111111111111111111111111111011*
+L01044 111111111010111111111111111111111111*
+L01080 111111111111101111111111111111111111*
+L01116 111111111011111111111111111111111111*
+L01152 111111111011011111111111111111111111*
+L01188 111111111101111111111111101111111111*
+L01224 111111111111111111111111101111111111*
+L01260 111111111111011111111111111111111111*
+L01296 111101110111111111111111111111111111*
+
+L01332 111111111111111111111111111111111011*
+L01368 111111110111111111110111011111111111*
+L01404 111111111111110111110111111111111111*
+L01440 111111110111111011111111111111111111*
+L01476 111111111111111111111111011111111111*
+L01512 111111111111101111111111111111111111*
+L01548 111111111111111111110111011111111111*
+L01584 111111111111011111111111011111111111*
+L01620 111110111111111111111111101111111111*
+L01656 000000000000000000000000000000000000*
+L01692 000000000000000000000000000000000000*
+
+L01728 111111111111111111111111111111111011*
+L01764 111111111111111111101111111111111111*
+L01800 111111111111111111111111111110111111*
+L01836 111111111111111111111111111101111111*
+L01872 111110111111111111101111111111111111*
+L01908 111110111111111111111111111111111111*
+L01944 111101111111111111011111111110111111*
+L01980 111111111111101111111111111111111111*
+L02016 111111110111111111111111111111111111*
+L02052 000000000000000000000000000000000000*
+L02088 000000000000000000000000000000000000*
+
+L02124 111101111111111111111101111111111111*
+L02160 111111111111111111111110111111111111*
+L02196 111111111111111111111111111111111110*
+L02232 111111111111111111111111111101111111*
+L02268 111111111111111111111111101111111111*
+L02304 111111111111111111111010111111111111*
+L02340 111111111111111101111111111111111111*
+L02376 111111111111011111111111111111111111*
+L02412 000000000000000000000000000000000000*
+
+L02448 111111111111111111111101111111111111*
+L02484 111110111011111111111111111111111111*
+L02520 111111111111011111111111110111111111*
+L02556 111111110111111111111111111111111111*
+L02592 111111111111111111111011111111111111*
+L02628 111111111111111111111111111101111111*
+L02664 111111111111111111111111111111111110*
+L02700 111111111111111111111111011011111111*
+L02736 000000000000000000000000000000000000*
+
+L02772 000000000000000000000000000000000000*
+L02808 000000000000000000000000000000000000*
+L02844 000000000000000000000000000000000000*
+L02880 000000000000000000000000000000000000*
+L02916 000000000000000000000000000000000000*
+L02952 000000000000000000000000000000000000*
+L02988 000000000000000000000000000000000000*
+L03024 000000000000000000000000000000000000*
+L03060 000000000000000000000000000000000000*
+
+L03096 000000000000000000000000000000000000*
+L03132 000000000000000000000000000000000000*
+L03168 000000000000000000000000000000000000*
+L03204 000000000000000000000000000000000000*
+L03240 000000000000000000000000000000000000*
+L03276 000000000000000000000000000000000000*
+L03312 000000000000000000000000000000000000*
+L03348 000000000000000000000000000000000000*
+L03384 000000000000000000000000000000000000*
+
+L03420 000000000000000000000000000000000000*
+
+N ==> Architecture Control *
+L03456 01010000000001010101*
+N ==> Signature is "" *
+L03476 000000000000000000000000000000000000*
+L03512 0000000000000000000000000000*
+C28DF*
+
+0000
diff --git a/regtests/jedutil/jeds/gal18v10/pal16r6-to-gal18v10.jed b/regtests/jedutil/jeds/gal18v10/pal16r6-to-gal18v10.jed
new file mode 100644
index 00000000000..d93cd8ab55d
--- /dev/null
+++ b/regtests/jedutil/jeds/gal18v10/pal16r6-to-gal18v10.jed
@@ -0,0 +1,133 @@
+
+Device G18V10 converted from PEEL18CV8-> JEDEC map.
+PAL to GAL JEDEC conversion utility - paltogal v3.12 17 November 1992
+Copyright (c) by LATTICE Semiconductor Corp. 1990, 1991, 1992.
+Input File: pal16r6.jed
+Output File: 16r6.jed
+The Date: Fri Nov 30 21:49:50 2012
+
+
+ JEDEC PEEL file Translated from: PAL16R6 Mon 10-8-2012 22:44:19
+ PA
+*QP20
+*QF3540
+*F0
+ *
+N Output Pin 19 *
+
+L00000 000000000000000000000000000000000000*
+
+L00036 111111111111111111111111111111111111*
+L00072 111111111111111101110111101111111111*
+L00108 111111110111111111110111011111111111*
+L00144 111111111111111101111111111111111111*
+L00180 111111111111111111110111111111111111*
+L00216 111111111111111111111111011111111111*
+L00252 111111111111101111111111111111111111*
+L00288 111111111111111111111111101111111111*
+L00324 000000000000000000000000000000000000*
+
+L00360 111111111111111111111111111111111011*
+L00396 111110111111111101110111101111111111*
+L00432 111111110111111111110111011111111111*
+L00468 111111110111111111111111111111111111*
+L00504 111110111111111111111111101111111111*
+L00540 111111111011111111111111111111111111*
+L00576 111111111111111101110111101111111111*
+L00612 111111111111111111111111011111111111*
+L00648 111111111111011111111111111111111111*
+
+L00684 111111111111111111111111111111111011*
+L00720 111101111111111101110111101111111111*
+L00756 111101101111111111111111111111111111*
+L00792 111111111111111101111111111111111111*
+L00828 111111111111111111110111111111111111*
+L00864 111111011111111111111111101111111111*
+L00900 111101111111111111111111101111111111*
+L00936 111111111111111101110111111111111111*
+L00972 111111111011111111111111111111111111*
+
+L01008 111111111111111111111111111111111011*
+L01044 111111111010111111111111111111111111*
+L01080 111111111111101111111111111111111111*
+L01116 111111111011111111111111111111111111*
+L01152 111111111011011111111111111111111111*
+L01188 111111111101111111111111101111111111*
+L01224 111111111111111111111111101111111111*
+L01260 111111111111011111111111111111111111*
+L01296 111101110111111111111111111111111111*
+
+L01332 111111111111111111111111111111111011*
+L01368 111111110111111111110111011111111111*
+L01404 111111111111110111110111111111111111*
+L01440 111111110111111011111111111111111111*
+L01476 111111111111111111111111011111111111*
+L01512 111111111111101111111111111111111111*
+L01548 111111111111111111110111011111111111*
+L01584 111111111111011111111111011111111111*
+L01620 111110111111111111111111101111111111*
+L01656 000000000000000000000000000000000000*
+L01692 000000000000000000000000000000000000*
+
+L01728 111111111111111111111111111111111011*
+L01764 111111111111111111101111111111111111*
+L01800 111111111111111111111111111110111111*
+L01836 111111111111111111111111111101111111*
+L01872 111110111111111111101111111111111111*
+L01908 111110111111111111111111111111111111*
+L01944 111101111111111111011111111110111111*
+L01980 111111111111101111111111111111111111*
+L02016 111111110111111111111111111111111111*
+L02052 000000000000000000000000000000000000*
+L02088 000000000000000000000000000000000000*
+
+L02124 111111111111111111111111111111111011*
+L02160 111111111111111111111110111111111111*
+L02196 111111111111111111111111111111111110*
+L02232 111111111111111111111111111101111111*
+L02268 111111111111111111111111101111111111*
+L02304 111111111111111111111010111111111111*
+L02340 111111111111111101111101111111111111*
+L02376 111111111111011111111111111111111111*
+L02412 111110111111111111111111111111111111*
+
+L02448 111111111111111111111101111111111111*
+L02484 111110111011111111111111111111111111*
+L02520 111111111111011111111111110111111111*
+L02556 111111110111111111111111111111111111*
+L02592 111111111111111111111011111111111111*
+L02628 111111111111111111111111111101111111*
+L02664 111111111111111111111111111111111110*
+L02700 111111111111111111111111011011111111*
+L02736 000000000000000000000000000000000000*
+
+L02772 000000000000000000000000000000000000*
+L02808 000000000000000000000000000000000000*
+L02844 000000000000000000000000000000000000*
+L02880 000000000000000000000000000000000000*
+L02916 000000000000000000000000000000000000*
+L02952 000000000000000000000000000000000000*
+L02988 000000000000000000000000000000000000*
+L03024 000000000000000000000000000000000000*
+L03060 000000000000000000000000000000000000*
+
+L03096 000000000000000000000000000000000000*
+L03132 000000000000000000000000000000000000*
+L03168 000000000000000000000000000000000000*
+L03204 000000000000000000000000000000000000*
+L03240 000000000000000000000000000000000000*
+L03276 000000000000000000000000000000000000*
+L03312 000000000000000000000000000000000000*
+L03348 000000000000000000000000000000000000*
+L03384 000000000000000000000000000000000000*
+
+L03420 000000000000000000000000000000000000*
+
+N ==> Architecture Control *
+L03456 01000000000000010101*
+N ==> Signature is "" *
+L03476 000000000000000000000000000000000000*
+L03512 0000000000000000000000000000*
+C317B*
+
+0000
diff --git a/regtests/jedutil/jeds/gal18v10/pal16r8-to-gal18v10.jed b/regtests/jedutil/jeds/gal18v10/pal16r8-to-gal18v10.jed
new file mode 100644
index 00000000000..e526804dc9f
--- /dev/null
+++ b/regtests/jedutil/jeds/gal18v10/pal16r8-to-gal18v10.jed
@@ -0,0 +1,133 @@
+
+Device G18V10 converted from PEEL18CV8-> JEDEC map.
+PAL to GAL JEDEC conversion utility - paltogal v3.12 17 November 1992
+Copyright (c) by LATTICE Semiconductor Corp. 1990, 1991, 1992.
+Input File: pal16r8.jed
+Output File: 16r8.jed
+The Date: Fri Nov 30 21:50:38 2012
+
+
+ JEDEC PEEL file Translated from: PAL16R8 Mon 10-8-2012 22:46:06
+ PA
+*QP20
+*QF3540
+*F0
+ *
+N Output Pin 19 *
+
+L00000 000000000000000000000000000000000000*
+
+L00036 111111111111111111111111111111111011*
+L00072 111111111111111101110111101111111111*
+L00108 111111110111111111110111011111111111*
+L00144 111111111111111101111111111111011111*
+L00180 111111111111111111110111111111111111*
+L00216 111111111111111111111111011111111111*
+L00252 111111111111101111111111111111101111*
+L00288 111111111111111111111111101111111111*
+L00324 111101111111111111111111111111111111*
+
+L00360 111111111111111111111111111111111011*
+L00396 111110111111111101110111101111111111*
+L00432 111111110111111111110111011111111111*
+L00468 110111110111111111111111111111111111*
+L00504 111110111111111111111111101111111111*
+L00540 111011111011111111111111111111111111*
+L00576 111111111111111101110111101111111111*
+L00612 111111111111111111111111011111111111*
+L00648 111111111111101111111111111111111111*
+
+L00684 111111111111111111111111111111111011*
+L00720 111101111111111101110111101111111111*
+L00756 111101101111111111111111111111111111*
+L00792 111111111111111101111111111111111111*
+L00828 111111111111111111110111111111111111*
+L00864 111111011111111111111111101111111111*
+L00900 111101111111111111111111101111111111*
+L00936 111111111111111101110111111111111111*
+L00972 111111111011111111111111111111111111*
+
+L01008 111111111111111111111111111111111011*
+L01044 111111111010111111111111111111111111*
+L01080 111111111111101111111111111111111111*
+L01116 111111111011111111111111111111111111*
+L01152 111111111011011111111111111111111111*
+L01188 111111111101111111111111101111111111*
+L01224 111111111111111111111111101111111111*
+L01260 111111111111011111111111111111111111*
+L01296 111101110111111111111111111111111111*
+
+L01332 111111111111111111111111111111111011*
+L01368 111111110111111111110111011111111111*
+L01404 111111111111110111110111111111111111*
+L01440 111111110111111011111111111111111111*
+L01476 111111111111111111111111011111111111*
+L01512 111111111111101111111111111111111111*
+L01548 111111111111111111110111011111111111*
+L01584 111111111111011111111111011111111111*
+L01620 111110111111111111111111101111111111*
+L01656 000000000000000000000000000000000000*