I would like to load a few data from .txt file into the testbench as input in order to run the simulation, but the data I wish to load in are real numbers.
For example:
0.00537667139546100
0.0182905843325460
-0.0218392122072903
0.00794853052089004
I found that $readmemh, or $readmemb are meant for hex or binary. Is there any method that can help me to load the data without convert it to binary or hex before loading it to the testbench?