Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
April 20, 2024, 11:21:11 11:21


Login with username, password and session length


Pages: [1]
Print
Author Topic: help with programmable circuits (like pal gal or similar)  (Read 4542 times)
0 Members and 1 Guest are viewing this topic.
sphinx
Hero Member
*****
Offline Offline

Posts: 913

Thank You
-Given: 606
-Receive: 265



« on: November 01, 2017, 08:07:26 08:07 »

with programmable circuits i mean pal, gal, or pld i think they are all called.

i am looking for help on programmable circuits. i would like to decode address lines in a z80 system running at 8MHZ
for some i/o circuits in these areas D0-D3, D4-D7, E0-E3, E4-E7, F0-F3, F4-F7, F8-FB, FC-FF.

i know about the use of some sort of programmable circuit that can be used for this. i know the very basic of this,
but i never used it before.

i know how it could be done with logic but i would like to use of pal gal or whatever they use today, looking for help
on choice of what circuit to use for this purpose. there is a bit too much to pick from.

thanx in advance


« Last Edit: November 01, 2017, 10:50:01 10:50 by sphinx » Logged

laws of physics are not laws at all, just assumptions and formulas that work as long as we don't figure something new that wrecks the calculations. the infinite onion try to peel that one
UncleBog
Active Member
***
Offline Offline

Posts: 131

Thank You
-Given: 165
-Receive: 170


« Reply #1 on: November 01, 2017, 12:04:21 12:04 »

A GAL or SPLD (Simple Programmable Logic Device) is what you need, almost any part could perform the simple combinatorial decode that you require. You've listed 8 inputs and 8 outputs and maybe there's an address strobe as well so you'll need a 20 pin part (16V8 for instance), or a 24 pin (22V10 for instance).

You'll also need some software (Lattice provide a free version of their old PLD software called ispLEVER Classic Base) to convert your logic into a bit file, and a programmer to load this file into the GAL.
Logged
sphinx
Hero Member
*****
Offline Offline

Posts: 913

Thank You
-Given: 606
-Receive: 265



« Reply #2 on: November 01, 2017, 12:38:25 12:38 »

i am not on exactly sure on what inputs i need besides the A0-A7 so better to have some extra, i will need to check that up
to be sure on what extra pins i need for this purpose. i got some old 16v8 chips i can use for testing.
i will need to read about more on adress decoding and check designs on how its used.

i will check the software up as well.

i got a programmer on its way so i can program these.

thanx for input

regards sphinx
Logged

laws of physics are not laws at all, just assumptions and formulas that work as long as we don't figure something new that wrecks the calculations. the infinite onion try to peel that one
UncleBog
Active Member
***
Offline Offline

Posts: 131

Thank You
-Given: 165
-Receive: 170


« Reply #3 on: November 01, 2017, 01:19:54 13:19 »

I'm don't know what you're up to but address decode normally starts from the MS address line. If you use A[7:0] you'll find that these small spaces are repeated 256 times through the address range.
Logged
sphinx
Hero Member
*****
Offline Offline

Posts: 913

Thank You
-Given: 606
-Receive: 265



« Reply #4 on: November 01, 2017, 01:24:40 13:24 »

i am am trying to decode addresses for z80 parallel i/o and serial i/o chips.
Logged

laws of physics are not laws at all, just assumptions and formulas that work as long as we don't figure something new that wrecks the calculations. the infinite onion try to peel that one
Sideshow Bob
Cracking Team
Hero Member
****
Offline Offline

Posts: 982

Thank You
-Given: 230
-Receive: 960



« Reply #5 on: November 01, 2017, 01:41:47 13:41 »

How much memory do you plan in your system? It could be that momory mapped I/O is more easy for you. And then using a simple solution with a say 74xx138 for decoding on the upper address lines
Logged

I have come here to chew bubblegum and kick ass... and I'm all out of bubblegum
sphinx
Hero Member
*****
Offline Offline

Posts: 913

Thank You
-Given: 606
-Receive: 265



« Reply #6 on: November 01, 2017, 01:55:26 13:55 »

my idea of memory would be to 512k x 8 and bank it to 64k x 8
Logged

laws of physics are not laws at all, just assumptions and formulas that work as long as we don't figure something new that wrecks the calculations. the infinite onion try to peel that one
pickit2
Moderator
Hero Member
*****
Offline Offline

Posts: 4647

Thank You
-Given: 826
-Receive: 4207


There is no evidence that I muted SoNsIvRi


« Reply #7 on: November 01, 2017, 04:08:11 16:08 »

Last time I used pal/gal was 40 years ago. we used them to decode system status in an alarm unit.
we replaced them with Pic84's

you could also test your Gedec fuse map in Proteus
I would use gals as pal are one time program.

http://ece-research.unm.edu/jimp/310/slides/8086_memory2.html
« Last Edit: November 01, 2017, 04:10:32 16:10 by pickit2 » Logged

Note: I stoped Muteing bad members OK I now put thier account in sleep mode
Sideshow Bob
Cracking Team
Hero Member
****
Offline Offline

Posts: 982

Thank You
-Given: 230
-Receive: 960



« Reply #8 on: November 01, 2017, 04:26:02 16:26 »

I remember we used a program language named ABEL for those PAL chips. An ABEL truth table would probaly have solved this task. However that was about 20 years back in time since i last used ABEL
 https://en.wikipedia.org/wiki/Advanced_Boolean_Expression_Language
@sphinx What kind of prgrams do you use for Z80 codeing/debugging?
Logged

I have come here to chew bubblegum and kick ass... and I'm all out of bubblegum
sphinx
Hero Member
*****
Offline Offline

Posts: 913

Thank You
-Given: 606
-Receive: 265



« Reply #9 on: November 01, 2017, 04:46:12 16:46 »

i have a  "monitor program" written in assembler and i found an old iar z80 c compiler
Logged

laws of physics are not laws at all, just assumptions and formulas that work as long as we don't figure something new that wrecks the calculations. the infinite onion try to peel that one
UncleBog
Active Member
***
Offline Offline

Posts: 131

Thank You
-Given: 165
-Receive: 170


« Reply #10 on: November 01, 2017, 06:08:53 18:08 »

ABEL is built into the Lattice software that I referenced earlier.
Logged
kreutz
Active Member
***
Offline Offline

Posts: 183

Thank You
-Given: 983
-Receive: 125


« Reply #11 on: November 01, 2017, 08:11:41 20:11 »

You can also use a parallel EPROM (or EEProm) as address (CS) decoder or make your own, for simple address decoders, using standard TTL/CMOS logic gates. Sometimes it is easier to find or make a simple programer for the former. For more info take a look at: http://research.cs.tamu.edu/prism/lectures/mbsd/mbsd_l16.pdf
Logged
h0nk
Senior Member
****
Offline Offline

Posts: 256

Thank You
-Given: 208
-Receive: 230



« Reply #12 on: November 01, 2017, 10:42:14 22:42 »


Hello sphinx,

You could simply use a 74(X)154 and decode A5 to A2 with it.
It will give over all 16 /CS-Outputs where only 8 Outputs are used for Your address ranges.
Some additional logic is required for the "Chip Select Inputs" of the 74(X)154 to
limit the decoding to the range 0xd0 to 0xff and to /IORQ and so on.


Best Regards
Logged
Dgtslot
Inactive

Offline Offline

Posts: 3

Thank You
-Given: 1
-Receive: 1


« Reply #13 on: December 20, 2017, 05:04:40 17:04 »

Hy all,
i think that PAL,GAL and ABEL belong to the past.
I suggest sphinx to use a very basic CPLD/FPGA eval board that permit to view all you want.
For example with a MAX10 you could use the Signal Tap Logic Analizer function to trig and acquire any events on your address and data bus. If you want only use it like "bus analizer" you do not need to write any vhdl code.
For example: www.digikey.com/product-detail/en/altera/EK-10M08E144/544-3042-ND/4976140
I know well altera device but there are a lot of other alternatives.

Best regards
Luca


Logged
tumbleweed
Newbie
*
Offline Offline

Posts: 34

Thank You
-Given: 57
-Receive: 41


« Reply #14 on: December 31, 2017, 11:46:29 11:46 »

Does anyone even make small, cheap CPLD devices (ie 22v10 class) anymore?

Once in a while I need some simple glue logic.
Logged
weetit
Newbie
*
Offline Offline

Posts: 17

Thank You
-Given: 18
-Receive: 9


« Reply #15 on: December 31, 2017, 03:30:44 15:30 »

I think you can start with small and cheap FPGA board.  If you are a student, look for a student discount from digilent website.  PAL/GAL is almost obsolete, or if you need something that non-volatile maybe Altera Max10.
Logged
PICker
Active Member
***
Offline Offline

Posts: 162

Thank You
-Given: 207
-Receive: 109


« Reply #16 on: January 01, 2018, 07:17:19 07:17 »

I'm starting to study FPGAs with internal analog peripherals (ADC, DAC, DSP etc.). If you are interested in this kind of devices I suggest you to start with a low cost demo board like the SmartFusion Evaluation Kit (https://www.microsemi.com/products/fpga-soc/design-resources/dev-kits/smartfusion/smartfusion-evaluation-kit#overview) for less than 100$.
It uses a A2F200M3F-FGG484, a SmartFusion Customizable System-on-Chip (cSoC); you can find a complete datasheet here: http://pdf1.alldatasheet.com/datasheet-pdf/view/526114/MICROSEMI/A2F200M3F-FGG484.html.
Logged
weetit
Newbie
*
Offline Offline

Posts: 17

Thank You
-Given: 18
-Receive: 9


« Reply #17 on: January 01, 2018, 12:22:49 12:22 »

@PICker  A2F200M3F-FGG484 with analog programmable is very interesting.  I have never checked out Microsemi before, I should get one of this.  Do you use them a lot?
Logged
PICker
Active Member
***
Offline Offline

Posts: 162

Thank You
-Given: 207
-Receive: 109


« Reply #18 on: January 06, 2018, 08:17:37 08:17 »

@weetit, I'm just starting my experience with this module. As first impression, tHe level of complexity is higher in comparison with standard MCUs I usually use (MSP,PIC, AVR).
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC