fpga: sim: Add PkgComplex, PkgMath, and PkgRandom

PkgComplex adds functions for doing complex arithmetic in SystemVerilog
simulation.

PkgMath provides mathematical operations and constants that aren't
built into SystemVerilog, such as a constant for pi and the function
round().

PkgRandom adds randomization functions beyond what standard Verilog
supports but that don't require any special licenses or simulators.


Original-commit: da4202e6f74796603072aa14544581604e81df02
This commit is contained in:
Wade Fife
2021-08-08 14:59:26 -05:00
parent 3a6961a3f4
commit acc8486ac1
5 changed files with 546 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
#
# Copyright 2021 Ettus Research, A National Instruments Brand
#
# SPDX-License-Identifier: LGPL-3.0-or-later
#
SIM_PACKAGES_SRCS = $(abspath $(addprefix $(BASE_DIR)/../sim/packages/, \
PkgMath.sv \
PkgComplex.sv \
PkgRandom.sv \
))