business_kid
Newbie level 5
Stuck using Lattice isplever (with VHDL-93?) fo ispmach 4064V
My full code is at https://pastebin.com/Dc4mCFVc but here's the problem area
If anyone can tell me what's wrong, or how to watch for a rising edge on an input, I'd love to know. It seems I can only watch rising edges on clocks. The warnings & error ispLever throws are:
Don't take them too seriously - it's guessing :-(. I think it's line 73, but nothing I try there works.
My full code is at https://pastebin.com/Dc4mCFVc but here's the problem area
Code VHDL - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 -- 70 The Above provides FM timing -- Counting hbd(=pulse length)twice as fast as fm for 50% duty cycle. if (rising_edge (clock)) then if (hbd > 0) then hbd <= (hbd -1); dlyq <= '1'; else dlyq <= '0'; --This is the 5th occurrence of dlyq end if; if dlyq = lst then if (dlyq = '1') then hb <= "0101"; else hb <= "1010"; end if; -- 81 If dlyq is different to lst, it has changed state else hb <= "1100"; --Turns off all hbridge transistors for one cycle end if; lst <= dlyq; end if;
If anyone can tell me what's wrong, or how to watch for a rising edge on an input, I'd love to know. It seems I can only watch rising edges on clocks. The warnings & error ispLever throws are:
Code VHDL - [expand] 1 2 3 4 5 6 7 8 9 @W: CL117 :"C:\users\dec\projects\tranceiver\fmgen.vhd":58:1:58:2|Latch generated from process for signal dlyd(3 downto 0); possible missing assignment in an if or case statement. @W: CL117 :"C:\users\dec\projects\tranceiver\fmgen.vhd":58:1:58:2|Latch generated from process for signal start; possible missing assignment in an if or case statement. @W: CL179 :"C:\users\dec\projects\tranceiver\fmgen.vhd":73:1:73:2|Found combinational loop at hbd[0] @W: FX105 :"C:\users\dec\projects\tranceiver\fmgen.vhd":74:6:74:12|Found combinational loop at hbd18 @W: CL179 :"C:\users\dec\projects\tranceiver\fmgen.vhd":73:1:73:2|Found combinational loop at hbd[1] @W: CL179 :"C:\users\dec\projects\tranceiver\fmgen.vhd":73:1:73:2|Found combinational loop at hbd[2] @W: CL179 :"C:\users\dec\projects\tranceiver\fmgen.vhd":73:1:73:2|Found combinational loop at hbd[3] @W: FX105 :"C:\users\dec\projects\tranceiver\fmgen.vhd":73:1:73:2|Found combinational loop at dlyq @E: CL123 :"C:\users\dec\projects\tranceiver\fmgen.vhd":73:1:73:2|Logic for dlyq_5 does not match a standard flip-flop
Don't take them too seriously - it's guessing :-(. I think it's line 73, but nothing I try there works.
Last edited by a moderator: