Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 1.42 KB

README.md

File metadata and controls

21 lines (16 loc) · 1.42 KB

Base

This tree contains the foundational RTL used by the rest of SURF. Top-level base/ruckus.tcl loads each base library area.

Layout

  • general/: common packages and generic utilities such as StdRtlPkg, arbiters, muxes, reset pipelines, gearboxes, counters, and watchdog/reset helpers.
  • sync/: clock-domain crossing, synchronizers, reset synchronizers, trigger-rate, status, and frequency measurement helpers.
  • fifo/: synchronous, asynchronous, muxing, cascade, FWFT, and output-pipeline FIFO blocks.
  • ram/: RAM selectors and inferred/Xilinx/Altera backend implementations. See ram/README.md for wrapper selection guidance.
  • delay/: fixed, RAM-backed, and FIFO-backed delay blocks.
  • crc/: CRC packages and implementations.

Most modules use SURF package aliases such as sl and slv, _G generics, _C constants, and the local RegType/REG_INIT_C registered-process style. Reuse these base modules rather than duplicating CDC, FIFO, RAM, reset, or CRC logic in higher-level subsystems.

StdRtlPkg.offsetBinaryToTwosComplement() and twosComplementToOffsetBinary() recode nonempty slv words while preserving their bounds and direction. The leftmost bit is the MSB; neither function resizes or justifies the result. adcConversion() is the real-valued simulation helper: it rounds and saturates to the selected output coding, including at positive full scale, and requires high > low and 1 through 30 output bits.