Solving Ordinary Differential Equations using numerical methods
We used verilog language in our simulation.
you will need IDE to run the simulation code (etc Modelsim)
open Modelsim and navigate to the verilog-dofiles folder to run the scripts you want in the command line of the Modelsim
We used python to simulate the multiplier and adder modules.
Use the package manager pip to install numpy and click.
pip install numpy
pip install click
To run the program in the command line navigate to the python-code folder and write help to see the options.
python run.py --help
Example
python run.py -m multiplier -f 0000000000111001 -s 0000001010100100
##Euler Euler's testbench is used on small range integers which results using Adder & Multiplier modules still in the range. ###Generate Testbench To generate random testbench do file run the following command:
python Euler_Testbench_Generator.py <testcases_number>
this will result stress_testbench.do do file. You can use it in ModelSim.
##Hardware
0 => N
1 => M
2 => Count
3 => Mode
4 => H
5 => L
6 => PerMode
7 => A
2507 => B
5007 => X0
5057 => T
5107 => U0
5157 => U1
5207 => Euler Operating X (Need to be prepared)
5257 => Euler Operating U (Need to be prepared)
5307 => Euler Temp1
5357 => Euler Temp2
5407 => Euler Resulting X (The location of the output)
5457 => h Temp