Mar 12, 2010 #1 S shethpurak Junior Member level 1 Joined Nov 15, 2005 Messages 15 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Activity points 1,399 reg Var1; initial begin Var1<= "-" end In
Mar 12, 2010 #2 RBB Full Member level 5 Joined Jul 2, 2007 Messages 303 Helped 71 Reputation 142 Reaction score 36 Trophy points 1,308 Location USA Activity points 2,560 I'm not sure. A reg can only be a 1, 0, X or Z, so I'm not sure what assigning it to a "-" will do. May depend on the simulator.
I'm not sure. A reg can only be a 1, 0, X or Z, so I'm not sure what assigning it to a "-" will do. May depend on the simulator.
Mar 14, 2010 #3 J johanlo Junior Member level 1 Joined Jan 25, 2010 Messages 16 Helped 2 Reputation 4 Reaction score 2 Trophy points 1,283 Location Norway Activity points 1,374 I believe that Var1 will be assigned bit 0 of the 8 bit ASCII value of the character -. The simulator or the synth. tool should give a warning about truncating.
I believe that Var1 will be assigned bit 0 of the 8 bit ASCII value of the character -. The simulator or the synth. tool should give a warning about truncating.
Mar 15, 2010 #4 W windzjy Newbie level 5 Joined Nov 12, 2007 Messages 8 Helped 1 Reputation 2 Reaction score 0 Trophy points 1,281 Activity points 1,307 why not to test it?
Mar 31, 2010 #5 K k12345k12345 Junior Member level 3 Joined Dec 12, 2003 Messages 31 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,286 Activity points 110 it is mostly simulator dependent. I ran got it to be 1
Apr 2, 2010 #6 S Syswip Advanced Member level 4 Joined Nov 11, 2009 Messages 119 Helped 12 Reputation 24 Reaction score 4 Trophy points 1,298 Activity points 1,859 it is mostly simulator dependent. Click to expand... It should not be simulator dependent. It will take ASCII value and assign LSB bit to Var1.
it is mostly simulator dependent. Click to expand... It should not be simulator dependent. It will take ASCII value and assign LSB bit to Var1.