Skip to content

SV: real-valued delays use the IEEE bit pattern as the delay #1707

Closed

Description

@tignear

Part of #1123. Since real landed in #1666, a real delay value is converted by reinterpreting its bits:

  • shortreal r = 1.5; initial #r ... waits 1069547520 (0x3FC00000) ticks.
  • real r = 1.5; #r, #(r) and #(0.5 + 1) fail with "simulation delay overflows the simulation time range".

A real delay is scaled to the time unit and rounded to the time precision. Icarus waits 2 for 1.5 at a precision of 1. Negative and NaN cases need a defined behaviour and a test.

Activity

  1. added
    bug
    on Oct 22, 2026
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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions