Creating and Simulating a Python Golden Model
Before writing the SV code, we build a python model that will serve as the golden model reference for the SV implmentation. Go through the jupyter notebook.
The code will:
- Creates a floating point model for the piecewise linear function
- Creates a python simulation of a fixed point version with configurable number of bits
- Measures the approximation error as a function of the number of bits
- Creates test vectors that can be used to verify the SV model