H.E.Tjelum
Newbie level 6
Hi
I have more than 500 pcs. of unused PALCE20v8 and want to use them for some projects.
I use Atmels WinCUPL and have made some combinatoric projects, which works great.
But i have trouble getting the internal D-FFs to work. For some reason i can not compile, when i try with a registered output.
I have made a small program for making a simple D-FF, but i can't understand what i am doing wrong.
The code is:
/* *************** INPUT PINS *********************/
PIN 1 = CLK ;
PIN 2 = Out_E ;
PIN 3 = Data_in ;
/* *************** OUTPUT PINS *********************/
PIN 18 = CLK_out ;
PIN 17 = Enable_O ;
PIN 16 = Data_out ;
PIN 15 = Data_out_L ;
/* ************* Logic equations *******************/
CLK_out = CLK ;
Enable_O = Out_E ;
Data_out = Data_in ;
Data_out_L = Data_in ;
/* Data_out_L.d = Data_in ; */
/* Data_out_L.D = Data_in ; */
Data_out_L.OE = Out_E ;
The posted program works fine...
When i use one of the .d or .D equ. and note out the Data_out_L = Data_in ; WinCupl says fatal failure.
I have attached the .PLD file as a .TXT file.
I really hope to get these oldies to work. It would be a shame to throw them away.
Friendly regards
H.E.Tjelum
I have more than 500 pcs. of unused PALCE20v8 and want to use them for some projects.
I use Atmels WinCUPL and have made some combinatoric projects, which works great.
But i have trouble getting the internal D-FFs to work. For some reason i can not compile, when i try with a registered output.
I have made a small program for making a simple D-FF, but i can't understand what i am doing wrong.
The code is:
/* *************** INPUT PINS *********************/
PIN 1 = CLK ;
PIN 2 = Out_E ;
PIN 3 = Data_in ;
/* *************** OUTPUT PINS *********************/
PIN 18 = CLK_out ;
PIN 17 = Enable_O ;
PIN 16 = Data_out ;
PIN 15 = Data_out_L ;
/* ************* Logic equations *******************/
CLK_out = CLK ;
Enable_O = Out_E ;
Data_out = Data_in ;
Data_out_L = Data_in ;
/* Data_out_L.d = Data_in ; */
/* Data_out_L.D = Data_in ; */
Data_out_L.OE = Out_E ;
The posted program works fine...
When i use one of the .d or .D equ. and note out the Data_out_L = Data_in ; WinCupl says fatal failure.
I have attached the .PLD file as a .TXT file.
I really hope to get these oldies to work. It would be a shame to throw them away.
Friendly regards
H.E.Tjelum