[sv-bc] Interesting .* port connection ambiguity

From: Clifford E. Cummings <cliffc_at_.....>
Date: Tue Jun 16 2009 - 20:48:34 PDT
Hi, All -

While teaching a class this week, someone asked the question about 
ports connected to buses with the same name and size, but different 
indices and reversed indices.

For example, look at alu_accum5 module example just before clause 
23.3.3 in the ballot draft. If you change the declaration for the 
alu_out wire bus to:
wire [1:8] alu_out;
There are at least two implementations that make the .* connections 
and simulate the design just fine.

I don't know if we said whether or not this was legal or whether or 
not it should even be legal. The alu_out bus does match in name and 
size, so I guess it is legal. Is there any reason it should not be 
legal? Have we adequately described this possibility in the LRM? Too 
late to update now but we could put it into our Mantis todo list.

Regards - Cliff

----------------------------------------------------
Cliff Cummings - Sunburst Design, Inc.
14314 SW Allen Blvd., PMB 501, Beaverton, OR 97005
Phone: 503-641-8446 / FAX: 503-641-8486
cliffc@sunburst-design.com / www.sunburst-design.com
Expert Verilog, SystemVerilog, Synthesis and Verification Training


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Tue Jun 16 20:49:22 2009

This archive was generated by hypermail 2.1.8 : Tue Jun 16 2009 - 20:50:04 PDT