Error: cannot perform flatten hierarchy

From: vanessa goyal (vanessa_goyal@rediffmail.com)
Date: Thu Sep 27 2001 - 14:52:51 MDT

  • Next message: Roderick Bloem: "Re: cannot perform flatten herarchy"

    Sir,
    For the following code while operating "INIT" command,
    error coming is "cannot perform flatten herarchy.
    Please tell me what's the problem with the code?

    VIS supports using both posedge and negedge in the same code or not?
    *******************************************************momodule main(clk,load,add,sub);
    input load,clk;
    output add,sub;
    wire load,clk;
    reg loadl;
    reg[3:0] add,sub;

    initial begin add=0;sub=0;end

    always@ (posedge clk)
    begin
            loadl=load;
    end

    always@ (posedge clk)
    begin
       if(loadl) begin add=5;sub=5;end
    end

    always@ (posedge clk)
    begin
    add=add+1;
    sub=sub-1;
    end

    endmodule

    Thanking you
    Vanessa
     



    This archive was generated by hypermail 2b30 : Thu Sep 27 2001 - 14:45:33 MDT