F0 IIR Simulations » History » Version 3
Alexis Jeandet, 07/11/2016 07:35 PM
1 | 1 | Alexis Jeandet | # F0 IIR Simulations |
---|---|---|---|
2 | |||
3 | 2 | Alexis Jeandet | ## Context |
4 | 3 | Alexis Jeandet | Simulation made with VHD_Lib design Validation_IIR_f0_LFR **r643**. |
5 | To reproduce, run **generate.xsh** script with the number of iterations you want as parameter |
||
6 | 1 | Alexis Jeandet | |
7 | 2 | Alexis Jeandet | ```bash |
8 | ./generate.xsh 10 |
||
9 | ``` |
||
10 | |||
11 | 3 | Alexis Jeandet | Then to plot results open **plot_results** notebook. |
12 | 2 | Alexis Jeandet | |
13 | ## Notebook |
||
14 | |||
15 | 1 | Alexis Jeandet | ```python |
16 | import numpy as np |
||
17 | import matplotlib.pyplot as plt |
||
18 | import glob |
||
19 | import pandas as pds |
||
20 | ``` |
||
21 | |||
22 | ```python |
||
23 | for folder in glob.glob("./2016*"): |
||
24 | inputsig = pds.read_csv(folder+"/input.txt",sep=" ",header=None) |
||
25 | inputsig.columns=[ "CH{}".format(i) for i in range(inputsig.shape[1])] |
||
26 | outputsig = pds.read_csv(folder+"/output_fx.txt",sep=" ",header=None) |
||
27 | outputsig.columns=["Tstamp"]+[ "CH{}".format(i) for i in range(outputsig.shape[1]-1)] |
||
28 | f, axarr = plt.subplots(1,2,figsize=(14, 6)) |
||
29 | (outputsig.filter(regex="CH*")- inputsig*0.8912)[150:].plot(ax=axarr[0]) |
||
30 | axarr[0].legend(loc='upper right') |
||
31 | (outputsig.filter(regex="CH*")[:100]/0.8912).plot(ax=axarr[1]) |
||
32 | axarr[1].legend(loc='upper right') |
||
33 | plt.show() |
||
34 | ``` |
||
35 | |||
36 | |||
37 | ![png](output_2_0.png) |
||
38 | |||
39 | |||
40 | |||
41 | ![png](output_2_1.png) |
||
42 | |||
43 | |||
44 | |||
45 | ![png](output_2_2.png) |
||
46 | |||
47 | |||
48 | |||
49 | ![png](output_2_3.png) |
||
50 | |||
51 | |||
52 | |||
53 | ![png](output_2_4.png) |
||
54 | |||
55 | |||
56 | |||
57 | ![png](output_2_5.png) |
||
58 | |||
59 | |||
60 | |||
61 | ![png](output_2_6.png) |
||
62 | |||
63 | |||
64 | |||
65 | ![png](output_2_7.png) |
||
66 | |||
67 | |||
68 | |||
69 | ![png](output_2_8.png) |
||
70 | |||
71 | |||
72 | |||
73 | ![png](output_2_9.png) |
||
74 | |||
75 | |||
76 | |||
77 | ![png](output_2_10.png) |
||
78 | |||
79 | |||
80 | |||
81 | ![png](output_2_11.png) |
||
82 | |||
83 | |||
84 | |||
85 | ![png](output_2_12.png) |
||
86 | |||
87 | |||
88 | |||
89 | ![png](output_2_13.png) |
||
90 | |||
91 | |||
92 | |||
93 | ![png](output_2_14.png) |
||
94 | |||
95 | |||
96 | |||
97 | ![png](output_2_15.png) |
||
98 | |||
99 | |||
100 | |||
101 | ![png](output_2_16.png) |
||
102 | |||
103 | |||
104 | |||
105 | ![png](output_2_17.png) |
||
106 | |||
107 | |||
108 | |||
109 | ![png](output_2_18.png) |
||
110 | |||
111 | |||
112 | |||
113 | ![png](output_2_19.png) |
||
114 | |||
115 | |||
116 | |||
117 | ![png](output_2_20.png) |
||
118 | |||
119 | |||
120 | |||
121 | ![png](output_2_21.png) |
||
122 | |||
123 | |||
124 | |||
125 | ![png](output_2_22.png) |
||
126 | |||
127 | |||
128 | |||
129 | ![png](output_2_23.png) |
||
130 | |||
131 | |||
132 | |||
133 | ![png](output_2_24.png) |