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;
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;