Skip to content

Solving Ordinary Differential Equations using numerical methods

Notifications You must be signed in to change notification settings

AhmedMahmoud98/ODE-Solver

 
 

Repository files navigation

ODE-Solver

Solving Ordinary Differential Equations using numerical methods

Verilog Code

We used verilog language in our simulation.

Installation

you will need IDE to run the simulation code (etc Modelsim)

Run

open Modelsim and navigate to the verilog-dofiles folder to run the scripts you want in the command line of the Modelsim

Python Simulation

We used python to simulate the multiplier and adder modules.

Installation

Use the package manager pip to install numpy and click.

pip install numpy
pip install click

Run

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

Preserved Addresses (Starting Locations)

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

About

Solving Ordinary Differential Equations using numerical methods

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Verilog 96.0%
  • Stata 2.7%
  • Python 1.3%