D
Dan Charette
- Jan 1, 1970
- 0
Hi all...
I'm trying to implement a set of latches with readback capability into
an Atmel CLPD, an ATF1504. I'm using their Prochip software and the
Protel schematic entry with it to drawup and compile the design. I'm
having a problem that I can't seem to figure out how to deal with. It
has to do with the actual programming language functions.
What I have in a simple test circuit is a single data line coming in
to two seperate D flip flops. These each have their own gate signal
and both of them share a read/write signal and an output enable
signal. Each gate has it's own output pin. Summerized pins:
Data in
R/W
OE
Gate1
Gate2
Output1
Output2
Now, the outputs of each of the flip flops run through an enableable
output buffer and the outputs of these two buffers tie back onto the
Data line. There is decoding logic to turn these on based on the
condition of R/W and the Gate 1 and 2 signals. The problem is this.
Whenever the software compiles this design, I get a compilation error
as follows:
"The variable (either an intermediate or output variable) was
previously assigned an expression. Use APPEND to make multiple
expression assignments for the same variable."
Now, I've tried using the APPEND statement and all this does is ORs
the two output buffers together which is not what I want. This design
is perfectly viable in discrete logic but getting this programmed is
another story. Does anyone have any ideas or tricks that I may be
able to use in the CUPL language that would allow me to tell the
compiler that these two output buffers do tie to the same data bus,
but only when their respective enable lines are engaged?
Thanks for any help.
Dan Charette {[email protected]}
Remove the "FUZZ"
from my e-mail address
to contact me.
"I may not always be right, but I'm never wrong."
I'm trying to implement a set of latches with readback capability into
an Atmel CLPD, an ATF1504. I'm using their Prochip software and the
Protel schematic entry with it to drawup and compile the design. I'm
having a problem that I can't seem to figure out how to deal with. It
has to do with the actual programming language functions.
What I have in a simple test circuit is a single data line coming in
to two seperate D flip flops. These each have their own gate signal
and both of them share a read/write signal and an output enable
signal. Each gate has it's own output pin. Summerized pins:
Data in
R/W
OE
Gate1
Gate2
Output1
Output2
Now, the outputs of each of the flip flops run through an enableable
output buffer and the outputs of these two buffers tie back onto the
Data line. There is decoding logic to turn these on based on the
condition of R/W and the Gate 1 and 2 signals. The problem is this.
Whenever the software compiles this design, I get a compilation error
as follows:
"The variable (either an intermediate or output variable) was
previously assigned an expression. Use APPEND to make multiple
expression assignments for the same variable."
Now, I've tried using the APPEND statement and all this does is ORs
the two output buffers together which is not what I want. This design
is perfectly viable in discrete logic but getting this programmed is
another story. Does anyone have any ideas or tricks that I may be
able to use in the CUPL language that would allow me to tell the
compiler that these two output buffers do tie to the same data bus,
but only when their respective enable lines are engaged?
Thanks for any help.
Dan Charette {[email protected]}
Remove the "FUZZ"
from my e-mail address
to contact me.
"I may not always be right, but I'm never wrong."