Skip to content

Verilator bug in extending $signed #733

Description

@veripoolbot

Author Name: Clifford Wolf (@cliffordwolf)
Original Redmine Issue: 733 from https://www.veripool.org
Original Date: 2014-04-06


The following module should output 4'b1111 but Verilator GIT 14fcfd8 outputs 4'b0001 instead.

module issue_005(y);
  wire [3:0] a;
  output [3:0] y;
  assign a = 4'b0010;
  assign y = $signed(|a);
endmodule

A self-contained test can be found here:

http://svn.clifford.at/handicraft/2014/verilatortest/ test003.{v,cc,sh}

Activity

  1. veripoolbot commented on Apr 7, 2014

    @veripoolbot
    ContributorAuthor

    Original Redmine Comment
    Author Name: Wilson Snyder (@wsnyder)
    Original Date: 2014-04-07T02:02:04Z


    This was caused by the fix for #�, and did not exist in previous versions.

    Please see notes in #�.

  2. veripoolbot commented on Apr 8, 2014

    @veripoolbot
    ContributorAuthor

    Original Redmine Comment
    Author Name: Wilson Snyder (@wsnyder)
    Original Date: 2014-04-08T01:34:08Z


    Fixed in git; never in release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions