Project

General

Profile

[logo] 
 
Home
News
Activity
About/Contact
Major Tools
  Dinotrace
  Verilator
  Verilog-mode
  Verilog-Perl
Other Tools
  BugVise
  CovVise
  Force-Gate-Sim
  Gspice
  IPC::Locker
  Rsvn
  SVN::S4
  Voneline
  WFH
General Info
  Papers

Issue #1380

Large numbers silently truncated

Added by Jonathan Kimmitt 3 months ago. Updated about 2 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Lint
% Done:

0%


Description

module bigint(input clk, output reg [128:0] cnt);

   always @(posedge clk)
     cnt = cnt + 129'hdeadbeefc001f00ddeadbeefc001f00ddeadbeefc001f00ddeadbeefc001f00d;

endmodule // bigint

In the above code no warnings are issued when the 256 bit number is silently truncated to 129 bits. However if the 129 is changed to 128, the correct message 'too many digits', is correctly issued. Feel free to use this for the regression suite if wanted.

History

#1 Updated by Wilson Snyder 3 months ago

  • Category set to Lint
  • Status changed from New to Resolved
  • Assignee set to Wilson Snyder

Fixed in git towards 4.010

#2 Updated by Wilson Snyder about 2 months ago

  • Status changed from Resolved to Closed

In 4.010.

Also available in: Atom