This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Clock forwarding for DAC. Single anded clock */ | |
| ODDR #( | |
| .DDR_CLK_EDGE("SAME_EDGE"), | |
| .INIT(1'b0), | |
| .SRTYPE("SYNC") | |
| )ODDR_CLKDAC( | |
| .Q(o_dac_clkout), | |
| .C(clk100mhz), | |
| .CE(1'b1), | |
| .D1(1'b0), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from pynq import Overlay | |
| import numpy as np | |
| from scipy import signal | |
| import matplotlib.pyplot as plt | |
| from pynq import MMIO | |
| # Configure the overlay | |
| overlay = Overlay("ultra96_bd_fir.bit") | |
| # Define the IP addresses and definition |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Buck model | |
| clc | |
| close all | |
| clear all | |
| pkg load control | |
| s = tf('s'); | |
| fs = 1e6; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| Module name: mv_avg_filter_8_v1_0 | |
| Author: P Trujillo (pablo@controlpaths.com) | |
| Date: Aug 2020 | |
| Description: 8th order moving average filter | |
| Revision: 1.0 Module created. | |
| **/ | |
| module mv_avg_filter_8_v1_0 ( | |
| input clk, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Project FFT through DMA */ | |
| /* DMA libraries */ | |
| #include "xaxidma.h" | |
| #include "xparameters.h" | |
| #include "xdebug.h" | |
| /* Math library */ | |
| #include "math.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| Module name: decimate_x4_v1_0 | |
| Author: P Trujillo (pablo@controlpaths.com) | |
| Date: Nov 2020 | |
| Description: Module to decimate by 4 increasing 1 bit resolution. | |
| Revision: 1.0 Module created. | |
| **/ | |
| module decimate_x4_v1_0 #( | |
| parameter pw_input_width = 14 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| %% Image frequencies | |
| clear all | |
| close all | |
| clc | |
| nSamples = 10; | |
| f0 = 1; | |
| % Angle generate |