[OT] bit-flip with NCSim

O

Olivier FAURAX

Guest
Sorry for off-topic but i really need help (and i don't know where to
find help).

How can I do a bit-flip on a value such as "\G/tmp[0]" ?

I can do it on a "simple" name such as "reset" :
deposit reset = [expr ~#reset] -after 0 ns -relative

I tried :
deposit {\G/tmp[0] } = [expr ~#{\G/tmp[0] }] -after 0 ns -relative
I get the ">" you see above. I tried to escape some character ("\\G...")
but I didn't find any solution.
The manual doesn't help at all.

Thanks in advance
Olivier
 
I asked someone, and they gave me two solutions.

You can escape every abnormal character in the name with a backslash
(including the opening backslash and closing space). This would be
rather unwieldy for your name: "\\G\/tmp\[0\]\ ".

Or you can use a super-escape of an @ character followed by enclosing
the escaped name in curly braces: "@{\G/tmp[0] }"

Alternately, you can use @_ if you need to allow curly braces in the
name, to tell it to terminate on a space. With VHDL you can use @\ in
the same situation to tell it to terminate on a backslash.
 
In case that wasn't clear, the simplest full solution would be

deposit {\G/tmp[0] } = [expr ~#@{\G/tmp[0] }]
 

Welcome to EDABoard.com

Sponsor

Back
Top