Need help with wincupl

alex3331

Aug 28, 2024
1
Joined
Aug 28, 2024
Messages
1
The code below cannot be compiled: [0018ca] intermediate var not assigned an expression : clk.
Does anybody know how to make this work?

Name SimpleCounter;
Device g22v10;

PIN 1 = CLK; // Clock input
PIN 2 = RST; // Reset input
PIN 23 = Q0; // Output bit 0

Q0.D = !Q0 & !RST; // Toggle Q0 on each clock cycle, reset on RST
Q0.CLK = 'CLK'; // Use single quotes around the clock signal
Q0.AR = RST;
 

Harald Kapp

Moderator
Moderator
Nov 17, 2011
14,270
Joined
Nov 17, 2011
Messages
14,270
Show us the complete design file.
Which version of Wincupl do you use?
 
Top