PDA

View Full Version : CUPL language questions


Jiggy-Ninja
May25-11, 12:40 AM
Disclaimer: This is a little project for the final of one of my classes. Normally I wouldn't turn to a forum for help with this (since you're supposed to do it yourself), but there's a couple of issues that allow me to rationalize asking for help:

1) Our textbook teaches ABEL, but the only software my school uses is CUPL (WinCUPL, specifically). On top of that, our instructor isn't very familiar with CUPL. I already had to help him figure out how to do one of the labs. And because of that we only skimmed over sequential logic programming (which is what the final requires).

2) I'm not asking for help with the assignment itself, just answers to some details that I've been unable to answer on my own. I'll design the logic and the circuit myself.

3) This is a take-home project, so presumably some research is allowed.

These questions are using WinCUPL to program a GAL16V8.

1) Does the GAL16V8 have any internal nodes (pinnodes, or whatever they're called)? Something I read online suggests it doesn't. The device is a 2-bit state machine with decoded outputs. The state bits don't have to be on the outputs, so I'd like to know if there's a way to keep them internal. I have the program written and compiled just fine (testing won't happen until I get to school) with the state bits on a pair of output pins (12 & 13), so this is more for curiosity that anything.

2) When using state machine syntax ( SEQUENCE state_bits {... ), is it necessary to specify the clock for the state bits (something like Q0.ck = Clk;), or is that already implied with the use of the state machine format?

3) Is it okay to mix state machine with truth tables? I'm using truth table syntax to decode the state of the counter. That won't cause any unexpected interference or weird behavior, will it? As I said, the program compiles just fine.