Comparison of hex numbers (32'h and 0x) in tcl script -


I am writing a text script (in Qwestishim) which compares below but values ​​are the same but still do not match Any indicator will be helpful for this.

Code snippet:

  set XAPADR 0xffff0000 set edit "SIM: / TB_top / dot_top / m1 / m2 / m3 / acer" set actual edder "[check -HEX $ ADR] "If {$ realm == $ XAPDR} {" ADRD match detected @ time [XPR $ now / 1000000.0] puts us ") {other" ADRAD matches do not know @ time [ XPR $ now / 1000000.0] puts us "$ put $ $ $ XAPRR"  

Result:

ADDA Match No @ time 145.99 Real Address: 44'Hat 000FFF 000000 Expected Address: 0xffff0000

Address must be decoded. This is a work for scans , one of Tcl's lightweight arbitrary superheroes!

[check -hex $ addr] "% dh% x" bitwidth Actual

You can now get numeric comparison ( == < / Code>) should be able to compare with 0xffff0000. As a bonus, you get the number of actual bits in the value (stored in the bitwidth variable).


Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -