Menu

#1243 Support for $countdrivers

closed-accepted
nobody
5
2012-07-28
2012-07-10
No

This is split into two patches. The first patch reworks the vvp implementation of resolver networks to be akin to wide functors (as per my proposal on iverilog-devel), which allows all the driver values for a multiply-driven wire to be extracted by a VPI function. The second patch implements the $countdrivers function.

I have done some performance measurements on my new implementation of resolver networks, using a test case that instantiates wires with between 2 and 10 drivers. In all case, both run time and memory usage were slightly lower with the new implementation, so I'm reasonably confident that nobody is going to see a performance hit with this change.

The $countdrivers implementation does not yet support wires connected to island ports (it does output a suitable "sorry" message when it detects this case). This is going to take a bit more work.

Also attached is a patch for the test suite that adds a couple of tests for the $countdrivers functionality, and removes the check for the old warning message that $countdrivers was not supported.

Discussion

  • Martin Whitaker

    Martin Whitaker - 2012-07-10

    Test suite patch

     
  • Martin Whitaker

    Martin Whitaker - 2012-07-13

    Second test suite patch

     
  • Martin Whitaker

    Martin Whitaker - 2012-07-13

    I've attached a third patch which adds $countdrivers support for wires connected to islands. I believe the implementation of $countdrivers is now complete.

    Also attached is a second patch for the test suite, which adds some tests for the new functionality.

     
  • Martin Whitaker

    Martin Whitaker - 2012-07-26
    • summary: Initial support for $countdrivers --> Support for $countdrivers
     
  • Stephen Williams

    Applied to git master.

     
  • Stephen Williams

    Also applied to ivtest patches to git master.

     
  • Stephen Williams

    • status: open --> closed-accepted
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.