Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

error in vhdl (is controlled by a clock but does not appear to be a valid sequential)

Status
Not open for further replies.

electronical

Advanced Member level 4
Full Member level 1
Joined
Nov 4, 2011
Messages
104
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,298
Visit site
Activity points
1,975
Hello.
I have a problem with this program . this program are complied correcty in modelsim without any error,but when I use ISE ,I face with this error?
how can I resolve this error?
who can help me?
the error:
Logic for signal <i> is controlled by a clock but does not appear to be a valid sequential description.

Code:
process(clk,reset,clk_external)
    variable  i,s,a,c :int:=0;
    begin 
      if reset ='1' then 
        s:=0;i:=0;multiple_sign:=1;
      else
        if (clk 'event and clk='1' )then
          if (clk_external 'event and clk_external='1' ) then
           i:=1;s:=0;--multiple_sign:=1;
          else
           i:=i+1;
          end if;
        end if;
 

You can't nest edge sensitive events for synthesizable VHDL. The edge sensitive evaluation of a signal represents a FF in hardware, each FF can have only one clock input, so for each signal assigned in a clocked process, there must be one and only one edge sensitive statement.

As an additional remark, although the code seems to compile in Modelsim, it most likely won't work. The nested condition will be only true, if both clock edges fall in the same simulation delta cycle.

P.S.:
how can I resolve this error?
As a first step try to describe the intended behaviour in regard to both clocks, e.g. in a timing diagram. How they are related?
 
Last edited:
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top