Skip to content

Instantly share code, notes, and snippets.

@kdpatino
kdpatino / efm32.cfg
Last active September 7, 2019 00:00
interface ftdi
ftdi_vid_pid 0x0403 0x6014
# 0x000f -> TMS, TCK, TDI, TDO
# 0x4000 -> ^LED
# 0x0010 -> GPIOL0 (grey)
# 0x0020 -> GPIOL1 (purpe)
# 0x0040 -> GPIOL2 (white)
# 0x0080 -> GPIOL3 (blue)
register[0] = 0
register[1] = 0
register[2] = 0
register[3] = 0
register[4] = 0
register[5] = 0
register[6] = 0
register[7] = 0
register[8] = 0
register[9] = 0
Successfully read diagram <SystemDBS> from BD file </home/kenny/UMN/NeuroTrial-Software/hw/build/DBSUMN/DBSUMN.srcs/sources_1/bd/SystemDBS/SystemDBS.bd>
update_compile_order -fileset sources_1
startgroup
set_property -dict [list CONFIG.PCW_QSPI_GRP_SINGLE_SS_ENABLE {1} CONFIG.PCW_SPI0_PERIPHERAL_ENABLE {1} CONFIG.PCW_SPI1_PERIPHERAL_ENABLE {1}] [get_bd_cells ps7]
endgroup
delete_bd_objs [get_bd_intf_nets axi_gpio_1_GPIO]
undo
INFO: [Common 17-17] undo 'delete_bd_objs [get_bd_intf_nets axi_gpio_1_GPIO]'
delete_bd_objs [get_bd_intf_nets axi_quad_spi_0_SPI_0]
set_property location {1137 97} [get_bd_intf_ports spi_rtl_0]
%%
clear;
clc;
fs = 16000;
t = 10;
A = importdata('test.dat');
X = A(1:end,1)/fs;
Y1 = A(1:end,2);
Y2 = A(1:end,3);
plot(X,Y1,X,Y2);