On 01/05/2011 16:34, Herbert Graf wrote: > On Sun, 2011-05-01 at 05:31 +0100, Oli Glaser wrote: >> > On 30/04/2011 19:34, V G wrote: >>> > > But I don't understand what a "reg" does and >>> > > what it really does inside the chip. >> > =20 >> > A reg is short for register, e.g. a place to store bits, usually one = or >> > more D type flip-flops. > Actually that is not really true. reg does indeed stand for register, > but it doesn't necessarily mean storage in synthesized hardware. What it > actually means is the simulator running that code needs storage to > implement the logic writing that net. Yes, sorry - what I wrote was misleading. I was trying to keep it as=20 simple as possible by painting a rough picture, but this was probably a=20 bad idea in this case. I did say "usually" though.. :-) --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .