6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Mon Apr 29, 2024 9:19 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Sun Jun 28, 2020 4:28 am 
Offline

Joined: Wed Jun 17, 2020 10:51 am
Posts: 60
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 131 times

_________________
No simulation survives contact with reality!
Top
 Profile  
Reply with quote  
PostPosted: Wed Jul 01, 2020 7:06 pm 
Offline
User avatar

Joined: Sun Oct 13, 2013 2:58 pm
Posts: 485
Location: Switzerland
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 675 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.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: