I noticed a handy feature in the Xilinx verilog parser, I can name ports in calls to functions just like in calls to modules:
assign trn1_output = trn1(
.cid(16'hf00f),
.cstatus(3'b100),
.byte_count(12'b0)
);
This has been really handy for generating the bitfields for PCI express in a manner that makes it much more difficult to make errors. Its a bummer that Icarus Verilog doesn't have support for this.
Interesting, I thought this was already implemented in Icarus. Both functions and tasks should support named port calls but I just verified that they both fail. This is covered in section 13.5 of 1800-2012.
Then lets reclassify this from feature-request to bug report.
On 08/28/2013 10:02 AM, Cary R. wrote:
--
Steve Williams "The woods are lovely, dark and deep.
steve at icarus.com But I have promises to keep,
http://www.icarus.com and lines to code before I sleep,
http://www.picturel.com And lines to code before I sleep."
Related
Feature Requests: #48
This is a SystemVerilog addition so I think this can stay as a feature request since we don't profess Icarus to be a SystemVerilog simulator quite yet, though I do consider this a high priority feature request.