6502.org
http://forum.6502.org/

so I was trying to do my first GAL .....
http://forum.6502.org/viewtopic.php?f=10&t=6188
Page 1 of 1

Author:  ThePhysicist [ Sun Jun 28, 2020 4:28 am ]
Post subject:  so I was trying to do my first GAL .....

and found WinCUPL - or rather WinSIM - slightly confusing. Maybe this PDF will help someone else to be less confused :)

Attachments:
WinCupl_101.pdf [536.11 KiB]
Downloaded 137 times

Author:  cbscpe [ Wed Jul 01, 2020 7:06 pm ]
Post subject:  Re: so I was trying to do my first GAL .....

Very nice, I like the part about the simulator. There are two things I want to add, first you should activate the equations checkbox in the compiler options

Attachment:
File comment: Compiler Options Ctrl+W
compileropt.png
compileropt.png [ 81.45 KiB | Viewed 762 times ]


this will generate a .doc file that will show you the equations created by WinCUPL and also allows you to check the number of product terms per OLMC, sometimes you will be surprised.

Also I advice to use the FIELD statement as it allows you to produce a more readable format for the select signals that depend on a address range, here an example of one of my projects

Code:
FIELD   ADDRESS = [A15..0];

RAM     =                          IML  & !RW
        #  ADDRESS:[0000..03FF] & !IML
        #  ADDRESS:[0C00..BFFF] & !IML
        #  ADDRESS:[C100..FFFF] & !IML  &  RW
        #  ADDRESS:[D000..FFFF] & !IML  & !RW & !Q2;



Note that the field statement does not require that all signals actually exist. In the above example none of the ranges depend on any of the signals A0..A7 and therefore no pins must be defined for them, still WinCUPL will do the right thing.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/