SystemVerilog 2017 Pre-processor, Parser, Elaborator, UHDM Compiler. Provides IEEE Design/TB C/C++ VPI and Python AST & UHDM APIs. Compiles on Linux gcc, Windows msys2-gcc & msvc, OsX
370
stars
69
forks
source link
Unsigned number are padded to the left with ones instead of zeros #3997
Open
RustamC opened 1 month ago
While testing synlig, I encountered a problem with a simple counter: https://github.com/chipsalliance/synlig/issues/2624 .
In this code:
integer literal
'h1
is expanded to4'b1111
instead of4'b0001
causing wrong synthesis.At the same time, if one specifies an optional size constant (
'h1
->4'h1
), integer literal will be expanded as expected to4'b0001
.