Logic Help Please

This is the place for any magazine-related discussions that don't fit in any of the column discussion boards below.
paulsantangelo
Posts: 75
Joined: Mon Aug 29, 2005 1:01 am
Contact:

Re: Logic Help Please

Post by paulsantangelo »

Hey there:

I'm sort of using an old circuit to drive the LED's and there are ten of them to indicate the wind speed. What I need the logic for is to select the appropriate wind speed to cut another circuit. I figure, I could use a 4066 chip with the CTL connected to the eprom, then when an LED is lit, that potential will then go to a what was a relay STDP, which now will be a set of 4066 and an inverter wired up as a STDP switch. This is where the cutoff switch is.

I'm sure you guys would come up with something better but its what I thought about after reading some of the posts.

Gorgon

The 22v10 sound perfect, the size seems right. Remember I'm still rusty and counters, well lets say I dont get them yet! I have read about them. I was hoping that a counter could have solved my 8 bit problem that you helped me with. But it seems that counters only have 1 output except for the 7 segment counter which has 7 outputs, why couldnt they make an off the shelf 8 bit output? Anyway thats something else. I'm afraid I would need a little more schooling to grasp your double 8 bit output. But the concept is cool, thats for sure.

I think if I read your response, all I would need is two eproms, if I didnt use the one that we worked on anymore.

This chip, how would you make the pins output? Is it more of the address maniplation, or is it something more?

Thanks to you guys for all the help!

-paul
paulsantangelo
Posts: 75
Joined: Mon Aug 29, 2005 1:01 am
Contact:

Re: Logic Help Please

Post by paulsantangelo »

Hey:

I found a GAL 22v10 at digikey, part number ATF22v10CQZ-20PC-ND.

Do you think an A-Pro programmer will be able to program it? Acording to the datasheet, any PLD programmer will work. Just what driver do I use? This is an ATMEL chip and I know I have SGS thompson drivers at work, wonder if they are compatible?

More to do at work.

-paul
Gorgon
Posts: 325
Joined: Wed May 04, 2005 1:01 am
Location: Norway
Contact:

Re: Logic Help Please

Post by Gorgon »

Hi Paul,
Please note the the 22v10 and the multiplexed eprom output are two different solutions for your problem. If you want to use the 22v10 you don't need eproms at all, just 2 22v10 chips.

For the programming of the 22v10, you need to see in your programmer documentation for GAL compatibility. The progamming algorithms are normally different between the different brands.

You lost me on your comments on counters, I can't make the connection with what I understand of your present project.

It might be an idea to summarize the project for us, to let us get a total picture of your inputs, outputs and functionality?

TOK ;)
Gorgon the Caretaker - Character in a childrens TV-show from 1968. ;)
paulsantangelo
Posts: 75
Joined: Mon Aug 29, 2005 1:01 am
Contact:

Re: Logic Help Please

Post by paulsantangelo »

The programmer at work wont program a 22v10, I need the next model up, the Apro +. I did however find someone that does business with our company that does have a programmer that works with this chip. Go figure, huh!!

Sorry about the counter thing, before you suggested using an eprom, I was thinking of using a seven segment decoder. At the time I thought it could produce the binary code I was looking for. That was a mistake.

Now to the programming of the 22v10, Is it the same as the eprom? A 10 bit binary number has a three 3 digit hex value 3FF = 1111111111, so how would you enter the value at the address? If I remember my HEX disk editor days, its entered in reverse, 03FF would be entered FF03. Its a guess, its been a while. Then how do you configure the I/O pins to be output?

Thanks!
-paul
Gorgon
Posts: 325
Joined: Wed May 04, 2005 1:01 am
Location: Norway
Contact:

Re: Logic Help Please

Post by Gorgon »

Hi Paul,
No, you don't program the 22v10 the same way you do an eprom. I have never bothered to do all the details, but you can compare it to the programming of a large matrix.

If you want you can send me the input -> output tables and I can compile it for you.

Here is the datasheet for the 22v10. Here you can see the basics of the chip. I would suppose that your design can be done with combinatorial logic only. http://pdf.alldatasheet.co.kr/datasheet ... 22V10.html

TOK ;)
Gorgon the Caretaker - Character in a childrens TV-show from 1968. ;)
paulsantangelo
Posts: 75
Joined: Mon Aug 29, 2005 1:01 am
Contact:

Re: Logic Help Please

Post by paulsantangelo »

Thanks Gorgon I really appreciate the help.

I tried my best to keep everything in the correct order, if there is any question please understand the the eprom is wired on my breadboard and outputs exactly as stated below, I used the same format for chip two.

Just a question, now I know you've been doing this for a while, but how would I be able to find out about these chips? Would they be covered in the CMOS cookbook or is there an EPROM book?

Below, the dots are just place holders.

This first one we already worked on..

pin Binary
.......Bit7 0
0.........10000011
1.........00000111
2.........00001110
3.........00011100
4.........00111000
5.........01110000
6.........11100000
7.........11000001


This is for the second chip

Pin Binary code
.......Bit9 0
0.........1111111111
1.........1111111110
2.........1111111100
3.........1111111000
4.........1111110000
5.........1111100000
6.........1111000000
7.........1110000000
8.........1100000000
9.........1000000000

Again thanks for the help, Is there a method or a madness here? I see what I can find out about programming a matrix!

Thanks agin, you've made me want to learn again...
-paul
paulsantangelo
Posts: 75
Joined: Mon Aug 29, 2005 1:01 am
Contact:

Re: Logic Help Please

Post by paulsantangelo »

Well I messed that up


Here it is again hopefully formated better

This first one we already worked on..

pin........Binary
.......Bit7......0
0.........10000011
1.........00000111
2.........00001110
3.........00011100
4.........00111000
5.........01110000
6.........11100000
7.........11000001


This is for the second chip

Pin......... Binary code
.......Bit9........0
0.........1111111111
1.........1111111110
2.........1111111100
3.........1111111000
4.........1111110000
5.........1111100000
6.........1111000000
7.........1110000000
8.........1100000000
9.........1000000000
paulsantangelo
Posts: 75
Joined: Mon Aug 29, 2005 1:01 am
Contact:

Re: Logic Help Please

Post by paulsantangelo »

Gorgon:

I've been looking for programming GAL (Generic Array Logic) chips. I was having no luck and then I ran into this site.

http://www.geocities.com/mwinterhoff/intro.htm

Which told me you need to create a JEDEC file, which seems to contain a kind of assembler langauge.

I was then able to find some files to look at. WOW, Remeber the SAT tests when your were a kid, well I'm not sure when they started, but when you were done, everything took on the shape of a bubble.

Looking at those 1's and 0's was a little perplexing. I figure one thing out, you reserve a space, L320 and fill that space with 1's and 0's in 40 bit sets.
paulsantangelo
Posts: 75
Joined: Mon Aug 29, 2005 1:01 am
Contact:

Re: Logic Help Please

Post by paulsantangelo »

I found this awsome guide to writing Jedec files. It really does explain a lot!

www.dcs.shef.ac.uk/intranet/teaching/pr ... f/u8as.pdf
Gorgon
Posts: 325
Joined: Wed May 04, 2005 1:01 am
Location: Norway
Contact:

Re: Logic Help Please

Post by Gorgon »

Hi Paul,
Just for the record. Bit9 on your 10bit output is always '1', so you really doesn't need this in your equation. I suppose that it is off when none of the inputs is active.

I must say that your need for learning is great if you hand-compile a 22v10 jedec file. I'm amazed :D . I'll try to get some time later this evening and setup your logic in the Palasm program I've got. Just for fun.

TOK ;)
Gorgon the Caretaker - Character in a childrens TV-show from 1968. ;)
paulsantangelo
Posts: 75
Joined: Mon Aug 29, 2005 1:01 am
Contact:

Re: Logic Help Please

Post by paulsantangelo »

I have a habit of reverse engineering things, ya know, I guess I got caught up in it last night.

Yes, I figure I'll put an on/off switch to Vcc of the 22v10 to turn the whole mechanism off.

-paul
paulsantangelo
Posts: 75
Joined: Mon Aug 29, 2005 1:01 am
Contact:

Re: Logic Help Please

Post by paulsantangelo »

Gorgon:

Did I forget to mention thanks!!

Just for fun, huh? Can't wait to see it, in the meantime, will the ATMEL chip do or are you writing this for Lattice?

Thanks again!!
Gorgon
Posts: 325
Joined: Wed May 04, 2005 1:01 am
Location: Norway
Contact:

Re: Logic Help Please

Post by Gorgon »

Hi Pauls,
I'm not sure the forum will take all this text but I'll try:

Jed-file 1:

PALASM4 PAL ASSEMBLER - MARKET Version 1.2 (5-31-91)
(C) - COPYRIGHT ADVANCED MICRO DEVICES INC., 1991


TITLE :pauls gal1 AUTHOR :Gorgon
PATTERN : COMPANY:
REVISION:1.00 DATE :11/11/05


PAL22V10
_PAULS1*
QP24*
QF5828*
G0*F0*
L0000 00000000000000000000000000000000000000000000*
L0044 11111111111111111111111111111111111111111111*
L0088 10111011111111111111111111111011111111111111*
L0132 00000000000000000000000000000000000000000000*
L0176 00000000000000000000000000000000000000000000*
L0220 00000000000000000000000000000000000000000000*
L0264 00000000000000000000000000000000000000000000*
L0308 00000000000000000000000000000000000000000000*
L0352 00000000000000000000000000000000000000000000*
L0396 00000000000000000000000000000000000000000000*
L0440 11111111111111111111111111111111111111111111*
L0484 10111011101111111111111111111111111111111111*
L0528 00000000000000000000000000000000000000000000*
L0572 00000000000000000000000000000000000000000000*
L0616 00000000000000000000000000000000000000000000*
L0660 00000000000000000000000000000000000000000000*
L0704 00000000000000000000000000000000000000000000*
L0748 00000000000000000000000000000000000000000000*
L0792 00000000000000000000000000000000000000000000*
L0836 00000000000000000000000000000000000000000000*
L0880 00000000000000000000000000000000000000000000*
L0924 11111111111111111111111111111111111111111111*
L0968 11111011101110111111111111111111111111111111*
L1012 00000000000000000000000000000000000000000000*
L1056 00000000000000000000000000000000000000000000*
L1100 00000000000000000000000000000000000000000000*
L1144 00000000000000000000000000000000000000000000*
L1188 00000000000000000000000000000000000000000000*
L1232 00000000000000000000000000000000000000000000*
L1276 00000000000000000000000000000000000000000000*
L1320 00000000000000000000000000000000000000000000*
L1364 00000000000000000000000000000000000000000000*
L1408 00000000000000000000000000000000000000000000*
L1452 00000000000000000000000000000000000000000000*
L1496 11111111111111111111111111111111111111111111*
L1540 11111111101110111011111111111111111111111111*
L1584 00000000000000000000000000000000000000000000*
L1628 00000000000000000000000000000000000000000000*
L1672 00000000000000000000000000000000000000000000*
L1716 00000000000000000000000000000000000000000000*
L1760 00000000000000000000000000000000000000000000*
L1804 00000000000000000000000000000000000000000000*
L1848 00000000000000000000000000000000000000000000*
L1892 00000000000000000000000000000000000000000000*
L1936 00000000000000000000000000000000000000000000*
L1980 00000000000000000000000000000000000000000000*
L2024 00000000000000000000000000000000000000000000*
L2068 00000000000000000000000000000000000000000000*
L2112 00000000000000000000000000000000000000000000*
L2156 11111111111111111111111111111111111111111111*
L2200 11111111111110111011101111111111111111111111*
L2244 00000000000000000000000000000000000000000000*
L2288 00000000000000000000000000000000000000000000*
L2332 00000000000000000000000000000000000000000000*
L2376 00000000000000000000000000000000000000000000*
L2420 00000000000000000000000000000000000000000000*
L2464 00000000000000000000000000000000000000000000*
L2508 00000000000000000000000000000000000000000000*
L2552 00000000000000000000000000000000000000000000*
L2596 00000000000000000000000000000000000000000000*
L2640 00000000000000000000000000000000000000000000*
L2684 00000000000000000000000000000000000000000000*
L2728 00000000000000000000000000000000000000000000*
L2772 00000000000000000000000000000000000000000000*
L2816 00000000000000000000000000000000000000000000*
L2860 00000000000000000000000000000000000000000000*
L2904 11111111111111111111111111111111111111111111*
L2948 11111111111111111011101110111111111111111111*
L2992 00000000000000000000000000000000000000000000*
L3036 00000000000000000000000000000000000000000000*
L3080 00000000000000000000000000000000000000000000*
L3124 00000000000000000000000000000000000000000000*
L3168 00000000000000000000000000000000000000000000*
L3212 00000000000000000000000000000000000000000000*
L3256 00000000000000000000000000000000000000000000*
L3300 00000000000000000000000000000000000000000000*
L3344 00000000000000000000000000000000000000000000*
L3388 00000000000000000000000000000000000000000000*
L3432 00000000000000000000000000000000000000000000*
L3476 00000000000000000000000000000000000000000000*
L3520 00000000000000000000000000000000000000000000*
L3564 00000000000000000000000000000000000000000000*
L3608 00000000000000000000000000000000000000000000*
L3652 11111111111111111111111111111111111111111111*
L3696 11111111111111111111101110111011111111111111*
L3740 00000000000000000000000000000000000000000000*
L3784 00000000000000000000000000000000000000000000*
L3828 00000000000000000000000000000000000000000000*
L3872 00000000000000000000000000000000000000000000*
L3916 00000000000000000000000000000000000000000000*
L3960 00000000000000000000000000000000000000000000*
L4004 00000000000000000000000000000000000000000000*
L4048 00000000000000000000000000000000000000000000*
L4092 00000000000000000000000000000000000000000000*
L4136 00000000000000000000000000000000000000000000*
L4180 00000000000000000000000000000000000000000000*
L4224 00000000000000000000000000000000000000000000*
L4268 00000000000000000000000000000000000000000000*
L4312 11111111111111111111111111111111111111111111*
L4356 10111111111111111111111110111011111111111111*
L4400 00000000000000000000000000000000000000000000*
L4444 00000000000000000000000000000000000000000000*
L4488 00000000000000000000000000000000000000000000*
L4532 00000000000000000000000000000000000000000000*
L4576 00000000000000000000000000000000000000000000*
L4620 00000000000000000000000000000000000000000000*
L4664 00000000000000000000000000000000000000000000*
L4708 00000000000000000000000000000000000000000000*
L4752 00000000000000000000000000000000000000000000*
L4796 00000000000000000000000000000000000000000000*
L4840 00000000000000000000000000000000000000000000*
L4884 00000000000000000000000000000000000000000000*
L4928 00000000000000000000000000000000000000000000*
L4972 00000000000000000000000000000000000000000000*
L5016 00000000000000000000000000000000000000000000*
L5060 00000000000000000000000000000000000000000000*
L5104 00000000000000000000000000000000000000000000*
L5148 00000000000000000000000000000000000000000000*
L5192 00000000000000000000000000000000000000000000*
L5236 00000000000000000000000000000000000000000000*
L5280 00000000000000000000000000000000000000000000*
L5324 00000000000000000000000000000000000000000000*
L5368 00000000000000000000000000000000000000000000*
L5412 00000000000000000000000000000000000000000000*
L5456 00000000000000000000000000000000000000000000*
L5500 00000000000000000000000000000000000000000000*
L5544 00000000000000000000000000000000000000000000*
L5588 00000000000000000000000000000000000000000000*
L5632 00000000000000000000000000000000000000000000*
L5676 00000000000000000000000000000000000000000000*
L5720 00000000000000000000000000000000000000000000*
L5764 00000000000000000000000000000000000000000000*
L5808 01010101010101010101*
C56F6*
172B
End of file 1

Jed-file 2:

PALASM4 PAL ASSEMBLER - MARKET Version 1.2 (5-31-91)
(C) - COPYRIGHT ADVANCED MICRO DEVICES INC., 1991


TITLE :PAULS GAL2 AUTHOR :GORGON
PATTERN : COMPANY:
REVISION:1.00 DATE :11/11/05


PAL22V10
_PAULS2*
QP24*
QF5828*
G0*F0*
L0000 00000000000000000000000000000000000000000000*
L0044 11111111111111111111111111111111111111111111*
L0088 01111111111111111111111111111111111111111111*
L0132 00000000000000000000000000000000000000000000*
L0176 00000000000000000000000000000000000000000000*
L0220 00000000000000000000000000000000000000000000*
L0264 00000000000000000000000000000000000000000000*
L0308 00000000000000000000000000000000000000000000*
L0352 00000000000000000000000000000000000000000000*
L0396 00000000000000000000000000000000000000000000*
L0440 11111111111111111111111111111111111111111111*
L0484 10111011111111111111111111111111111111111111*
L0528 00000000000000000000000000000000000000000000*
L0572 00000000000000000000000000000000000000000000*
L0616 00000000000000000000000000000000000000000000*
L0660 00000000000000000000000000000000000000000000*
L0704 00000000000000000000000000000000000000000000*
L0748 00000000000000000000000000000000000000000000*
L0792 00000000000000000000000000000000000000000000*
L0836 00000000000000000000000000000000000000000000*
L0880 00000000000000000000000000000000000000000000*
L0924 11111111111111111111111111111111111111111111*
L0968 10111011101111111111111111111111111111111111*
L1012 00000000000000000000000000000000000000000000*
L1056 00000000000000000000000000000000000000000000*
L1100 00000000000000000000000000000000000000000000*
L1144 00000000000000000000000000000000000000000000*
L1188 00000000000000000000000000000000000000000000*
L1232 00000000000000000000000000000000000000000000*
L1276 00000000000000000000000000000000000000000000*
L1320 00000000000000000000000000000000000000000000*
L1364 00000000000000000000000000000000000000000000*
L1408 00000000000000000000000000000000000000000000*
L1452 00000000000000000000000000000000000000000000*
L1496 11111111111111111111111111111111111111111111*
L1540 10111011101110111111111111111111111111111111*
L1584 00000000000000000000000000000000000000000000*
L1628 00000000000000000000000000000000000000000000*
L1672 00000000000000000000000000000000000000000000*
L1716 00000000000000000000000000000000000000000000*
L1760 00000000000000000000000000000000000000000000*
L1804 00000000000000000000000000000000000000000000*
L1848 00000000000000000000000000000000000000000000*
L1892 00000000000000000000000000000000000000000000*
L1936 00000000000000000000000000000000000000000000*
L1980 00000000000000000000000000000000000000000000*
L2024 00000000000000000000000000000000000000000000*
L2068 00000000000000000000000000000000000000000000*
L2112 00000000000000000000000000000000000000000000*
L2156 11111111111111111111111111111111111111111111*
L2200 10111011101110111011111111111111111111111111*
L2244 00000000000000000000000000000000000000000000*
L2288 00000000000000000000000000000000000000000000*
L2332 00000000000000000000000000000000000000000000*
L2376 00000000000000000000000000000000000000000000*
L2420 00000000000000000000000000000000000000000000*
L2464 00000000000000000000000000000000000000000000*
L2508 00000000000000000000000000000000000000000000*
L2552 00000000000000000000000000000000000000000000*
L2596 00000000000000000000000000000000000000000000*
L2640 00000000000000000000000000000000000000000000*
L2684 00000000000000000000000000000000000000000000*
L2728 00000000000000000000000000000000000000000000*
L2772 00000000000000000000000000000000000000000000*
L2816 00000000000000000000000000000000000000000000*
L2860 00000000000000000000000000000000000000000000*
L2904 11111111111111111111111111111111111111111111*
L2948 10111011101110111011101111111111111111111111*
L2992 00000000000000000000000000000000000000000000*
L3036 00000000000000000000000000000000000000000000*
L3080 00000000000000000000000000000000000000000000*
L3124 00000000000000000000000000000000000000000000*
L3168 00000000000000000000000000000000000000000000*
L3212 00000000000000000000000000000000000000000000*
L3256 00000000000000000000000000000000000000000000*
L3300 00000000000000000000000000000000000000000000*
L3344 00000000000000000000000000000000000000000000*
L3388 00000000000000000000000000000000000000000000*
L3432 00000000000000000000000000000000000000000000*
L3476 00000000000000000000000000000000000000000000*
L3520 00000000000000000000000000000000000000000000*
L3564 00000000000000000000000000000000000000000000*
L3608 00000000000000000000000000000000000000000000*
L3652 11111111111111111111111111111111111111111111*
L3696 10111011101110111011101110111111111111111111*
L3740 00000000000000000000000000000000000000000000*
L3784 00000000000000000000000000000000000000000000*
L3828 00000000000000000000000000000000000000000000*
L3872 00000000000000000000000000000000000000000000*
L3916 00000000000000000000000000000000000000000000*
L3960 00000000000000000000000000000000000000000000*
L4004 00000000000000000000000000000000000000000000*
L4048 00000000000000000000000000000000000000000000*
L4092 00000000000000000000000000000000000000000000*
L4136 00000000000000000000000000000000000000000000*
L4180 00000000000000000000000000000000000000000000*
L4224 00000000000000000000000000000000000000000000*
L4268 00000000000000000000000000000000000000000000*
L4312 11111111111111111111111111111111111111111111*
L4356 10111011101110111011101110111011111111111111*
L4400 00000000000000000000000000000000000000000000*
L4444 00000000000000000000000000000000000000000000*
L4488 00000000000000000000000000000000000000000000*
L4532 00000000000000000000000000000000000000000000*
L4576 00000000000000000000000000000000000000000000*
L4620 00000000000000000000000000000000000000000000*
L4664 00000000000000000000000000000000000000000000*
L4708 00000000000000000000000000000000000000000000*
L4752 00000000000000000000000000000000000000000000*
L4796 00000000000000000000000000000000000000000000*
L4840 00000000000000000000000000000000000000000000*
L4884 11111111111111111111111111111111111111111111*
L4928 10111011101110111011101110111011101111111111*
L4972 00000000000000000000000000000000000000000000*
L5016 00000000000000000000000000000000000000000000*
L5060 00000000000000000000000000000000000000000000*
L5104 00000000000000000000000000000000000000000000*
L5148 00000000000000000000000000000000000000000000*
L5192 00000000000000000000000000000000000000000000*
L5236 00000000000000000000000000000000000000000000*
L5280 00000000000000000000000000000000000000000000*
L5324 00000000000000000000000000000000000000000000*
L5368 11111111111111111111111111111111111111111111*
L5412 10111011101110111011101110111011101110111111*
L5456 00000000000000000000000000000000000000000000*
L5500 00000000000000000000000000000000000000000000*
L5544 00000000000000000000000000000000000000000000*
L5588 00000000000000000000000000000000000000000000*
L5632 00000000000000000000000000000000000000000000*
L5676 00000000000000000000000000000000000000000000*
L5720 00000000000000000000000000000000000000000000*
L5764 00000000000000000000000000000000000000000000*
L5808 11010101010101010101*
C6B96*
17BE
End of file 2.

Just mark and copy all the text between start and end of each file, to a text file you name xx.jed. Then load and program. If it doesn't work PM me your email and I'll send all files to you. If you want the source files just holler. :)

TOK ;)
Gorgon the Caretaker - Character in a childrens TV-show from 1968. ;)
Gorgon
Posts: 325
Joined: Wed May 04, 2005 1:01 am
Location: Norway
Contact:

Re: Logic Help Please

Post by Gorgon »

Hi Paul,
Sorry, I forgot to post the pinout of the chips. Here is the source with the pinout and equations.

File1:
;PALASM Design Description

;---------------------------------- Declaration Segment ------------
TITLE pauls gal1
PATTERN
REVISION 1.00
AUTHOR Gorgon
COMPANY
DATE 11/11/05

CHIP _pauls1 PAL22V10

;---------------------------------- PIN Declarations ---------------
PIN 1 IP0 ; INPUT
PIN 2 IP1 ; INPUT
PIN 3 IP2 ; INPUT
PIN 4 IP3 ; INPUT
PIN 5 IP4 ; INPUT
PIN 6 IP5 ; INPUT
PIN 7 IP6 ; INPUT
PIN 8 IP7 ; INPUT
PIN 16 OP7 COMBINATORIAL ; OUTPUT
PIN 17 OP6 COMBINATORIAL ; OUTPUT
PIN 18 OP5 COMBINATORIAL ; OUTPUT
PIN 19 OP4 COMBINATORIAL ; OUTPUT
PIN 20 OP3 COMBINATORIAL ; OUTPUT
PIN 21 OP2 COMBINATORIAL ; OUTPUT
PIN 22 OP1 COMBINATORIAL ; OUTPUT
PIN 23 OP0 COMBINATORIAL ; OUTPUT

;----------------------------------- Boolean Equation Segment ------
EQUATIONS

OP0 = IP0 + IP1 + IP7
OP1 = IP0 + IP1 + IP2
OP2 = IP1 + IP2 + IP3
OP3 = IP2 + IP3 + IP4
OP4 = IP3 + IP4 + IP5
OP5 = IP4 + IP5 + IP6
OP6 = IP5 + IP6 + IP7
OP7 = IP0 + IP6 + IP7

;----------------------------------- Simulation Segment ------------
SIMULATION

;-------------------------------------------------------------------
End file 1.

File 2:
;PALASM Design Description

;---------------------------------- Declaration Segment ------------
TITLE PAULS GAL2
PATTERN
REVISION 1.00
AUTHOR GORGON
COMPANY
DATE 11/11/05

CHIP _PAULS2 PAL22V10

;---------------------------------- PIN Declarations ---------------
PIN 1 IP0 ; INPUT
PIN 2 IP1 ; INPUT
PIN 3 IP2 ; INPUT
PIN 4 IP3 ; INPUT
PIN 5 IP4 ; INPUT
PIN 6 IP5 ; INPUT
PIN 7 IP6 ; INPUT
PIN 8 IP7 ; INPUT
PIN 9 IP8 ; INPUT
PIN 10 IP9 ; INPUT
PIN 14 OP9 COMBINATORIAL ; OUTPUT
PIN 15 OP8 COMBINATORIAL ; OUTPUT
PIN 16 OP7 COMBINATORIAL ; OUTPUT
PIN 17 OP6 COMBINATORIAL ; OUTPUT
PIN 18 OP5 COMBINATORIAL ; OUTPUT
PIN 19 OP4 COMBINATORIAL ; OUTPUT
PIN 20 OP3 COMBINATORIAL ; OUTPUT
PIN 21 OP2 COMBINATORIAL ; OUTPUT
PIN 22 OP1 COMBINATORIAL ; OUTPUT
PIN 23 OP0 COMBINATORIAL ; OUTPUT

;----------------------------------- Boolean Equation Segment ------
EQUATIONS

OP0 = IP0
OP1 = IP0 + IP1
OP2 = IP0 + IP1 + IP2
OP3 = IP0 + IP1 + IP2 + IP3
OP4 = IP0 + IP1 + IP2 + IP3 + IP4
OP5 = IP0 + IP1 + IP2 + IP3 + IP4 + IP5
OP6 = IP0 + IP1 + IP2 + IP3 + IP4 + IP5 + IP6
OP7 = IP0 + IP1 + IP2 + IP3 + IP4 + IP5 + IP6 + IP7
OP8 = IP0 + IP1 + IP2 + IP3 + IP4 + IP5 + IP6 + IP7 + IP8
OP9 = IP0 + IP1 + IP2 + IP3 + IP4 + IP5 + IP6 + IP7 + IP8 + IP9

;----------------------------------- Simulation Segment ------------
SIMULATION

;-------------------------------------------------------------------
End file 2.

Now you've got everything :D

Enjoy!

TOK ;)
Gorgon the Caretaker - Character in a childrens TV-show from 1968. ;)
paulsantangelo
Posts: 75
Joined: Mon Aug 29, 2005 1:01 am
Contact:

Re: Logic Help Please

Post by paulsantangelo »

Hey Thanks:

The copy and paste seemed to work, the correct control codes seems to have held in place. I was worried about that.

Just so you know, I grabed from PALASM4 forward, until the final checksum for each file. I think thats what you wanted me to do.

Going over the source code, it looks pretty straight foward. I do have one question.

When choosing combinatorial for the output, does that mean cetain pins will go high based on the input?

I.e. File 2 OP1 = IP0 + IP1 This means when pin 2 goes high, then pin 23 and pin 22 will only go high?

Thanks

paul
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 3 guests