Menu

#419 nbalanced pre process directive" Error

v1.0_(example)
open
nobody
None
5
2016-04-14
2016-03-21
Vinay Jain
No

Hi,
I am getting "unbalanced pre process directive" Error in one file and SVEDITOR stop indexing and building next file.
I actually complile whole project using Questa Tool and it does compile, I dont know why I am seeing error.
How to debug this? :( can you help

Related

Bugs: #419

Discussion

  • Erik Jessen

    Erik Jessen - 2016-03-21

    I suspect you have an ifdef that starts in one file and ends in another.
    While some tools might support it, its not good practice. The industry is
    moving to deprecate the practice.
    On Mar 21, 2016 9:37 AM, "Vinay Jain" vjain419@users.sf.net wrote:


    Status: open
    Group: v1.0_(example)
    Created: Mon Mar 21, 2016 04:37 PM UTC by Vinay Jain
    Last Updated: Mon Mar 21, 2016 04:37 PM UTC
    Owner: StevenAZ

    Hi,
    I am getting "unbalanced pre process directive" Error in one file and
    SVEDITOR stop indexing and building next file.
    I actually complile whole project using Questa Tool and it does compile, I
    dont know why I am seeing error.
    How to debug this? :( can you help


    Sent from sourceforge.net because you indicated interest in
    https://sourceforge.net/p/sveditor/bugs/419/

    To unsubscribe from further messages, please visit
    https://sourceforge.net/auth/subscriptions/

     

    Related

    Bugs: #419

  • Vinay Jain

    Vinay Jain - 2016-03-21

    Thanks Erik, but that wasnt not an issue :) I found the issue,seems like SVE breaks in below case

     `uvm_error(" DOUBLE EVENT", {"Double event was observed.", 
        //`uvm_warning(" DOUBLE EVENT", {"Double event was observed.", 
            $sformatf("\nvip_tx : 0x%0h\n", vip_tx),
            "Former : ", last_trans_log[i],
            "This   : ", trans.convert2string() //, gen_tx.convert2string(), last_gen_tx[i].convert2string()
            })
    

    the commented like inside `uvm_error if I remove that, "unbalanced pre process directive" Error goes away.

     
  • Vinay Jain

    Vinay Jain - 2016-03-21
    • Priority: 9 --> 5
     
  • StevenAZ

    StevenAZ - 2016-04-14
    • assigned_to: StevenAZ --> nobody
     
  • StevenAZ

    StevenAZ - 2016-04-14

    Looks like this is related to 318.

    Does the issue go away if you add a new line after the `endif at the end of your file?

     

Log in to post a comment.