On Thu, May 5, 2011 at 2:40 PM, V G wrote: > On Thu, May 5, 2011 at 1:26 AM, Xiaofan Chen wrote: >> I am a beginner as well (and my object is more modest than you -- >> just to learn some ABCs, not going to do coding). I think the following >> URL has a good explanation. >> http://www.asic-world.com/tidbits/wire_reg.html > > I've been linked to that site many times through various sources, and > read it, but for some reason it still doesn't help me. I think one thing is that you need to use reg for sequential logic. "Something that we need to know about reg is that it can be used for modeling both combinational and sequential logic. Reg data type can be driven from initial and always block." > I guess I'm the kind of guy who needs to know *exactly* what's going > on at the gate level to really understand it. I'll see how it works in > a simulator or Synplify or something. > > It's like, no matter how hard you try, you can't *really* teach C to > someone without teaching them how a computer works at the assembler > level, and how things are pushed onto the stack and so on. Just like > that, I can't just take it as a fact that I need to use a reg and not > a wire, I need to see how the gates are routed and what exactly is > going on. Or maybe you need to have some ABCs of digital electronics before going into Verilog. But I think you know quite a bit already, just not formal training, like my programming side -- I lack formal trainings on C programming even though I learn a bit by myself and can write some simple programs, but I do not know very well about programming. --=20 Xiaofan --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .