News for hackers. Stuff that matters.
Re:Your Very First Microprocessor by jgw on Saturday December 15, 2012 @10:43PM (#4927243)
I took a quick look at the IEEE 1800-2009 LRM (SystemVerilog, a proper superset of Verilog), and I can't see any BNF production that allows this. I think this is a case of iverilog being somewhat permissive.

In looking it up, I did come across the keyword "alias", which I was not familiar with, that effectively does what you've done here.

That said, it doesn't detract from an enjoyable tutorial. It's nice to see a little ASIC content on HN - duly upvoted!

Re:Your Very First Microprocessor by PieSquared on Saturday December 15, 2012 @10:46PM (#4927246)
Thanks! Nice to know. I must've picked the habit up before from just reading code on the internet (as per my other comment in this thread), but I'll try to phase this out. This is what I love about Hacker News - people commenting really know their stuff, almost always well enough to teach me something :)
Re:Your Very First Microprocessor by jgw on Saturday December 15, 2012 @11:14PM (#4927303)
Well, apparently I don't know what I'm talking about at all - it does work in the 3 major simulators. Typo in my code. Ooops.

It appears to be valid, and does not require "assign".

This is what I like about HN - smart people keeping me on my toes!