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
+2
View File
@@ -30,12 +30,14 @@ include $(BASE_DIR)/../sim/general/Makefile.srcs
include $(BASE_DIR)/../sim/axi/Makefile.srcs
include $(BASE_DIR)/../sim/control/Makefile.srcs
include $(BASE_DIR)/../sim/rfnoc/Makefile.srcs
include $(BASE_DIR)/../sim/packages/Makefile.srcs
INC_SRCS = $(abspath \
$(SIM_GENERAL_SRCS) \
$(SIM_AXI_SRCS) \
$(SIM_CONTROL_SRCS) \
$(SIM_RFNOC_SRCS) \
$(SIM_PACKAGES_SRCS) \
)
# Predeclare RFNOC_OOT_SRCS to make sure it's not recursively expanded