自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(24)
  • 收藏
  • 关注

原创 Inter FPGA配置管理SDM(Secure Device Manager)与配置理解

包括外围设备、加密IP和传感器、引导ROM、三冗余锁步处理器以及SDM框图中所示的其他模块。SDM执行并管理以下安全功能:•配置位流验证:在配置状态期间,SDM验证Intel生成的配置固件和配置位流,确保配置位流来自可信源。所有Intel Agilex都支持身份验证。•加密:加密保护配置位流或机密数据免受未经授权的第三方访问。•侧通道攻击保护:侧通道攻击防护在非侵入性攻击下保护AES密钥和机密数据。•完整性检查:完整性检查验证意外事件没有损坏配置位流。此功能处于活动状态,即使您未启用身份验证。...

2022-08-12 11:42:05 1200

原创 AXI总线信号讲解与使用

aclk系统时钟aresetn系统低有效awid写地址IDawaddr写起始地址awlen突发长度:一次突发传输的传输次数awsize突发传输中每次传输的字节大小awburst突发类型

2022-03-01 17:00:19 1631

原创 AXI DMA笔记

Block DMA直接寄存器模式(分散-聚集引擎被禁用)提供了一种配置,用于在需要较少FPGA资源利用率的MM2S和S2MM通道上进行简单DMA传输。通过访问DMACR、源地址或目标地址以及长度寄存器来启动传输。传输完成后,DMASR.IOC_Irq将为相关通道断言,如果启用,将生成中断输出。......

2021-09-22 13:57:48 1096

原创 回调函数理解

假设场景甲方要实现对数据作相应计算和处理,然后对计算后的数据进行加密或者加数据头的功能。此时甲方把对数据进行计算和处理、数据加头的部分业务外包给乙方,然而数据头由甲方掌握,且格式不固定。而此时乙方又不愿意向甲方提供源代码,或者甲方不愿意操作乙方的代码,解决此问题由两种方法:1、甲方在拿到乙方程序提供的数据之后重新分拆加数据头;2、乙方直接使用甲方提供的数据头直接把数据加头成为甲方想要的格式。其中,方法1是我们所说的常规模式,方法2就是所说的回调函数模型。定义以指针方式调用函数。个人理解函数提

2020-12-31 13:05:37 198 1

原创 Linux系统TCP传输文件示例

客户端代码#include <stdio.h>#include <stdlib.h>#include <string.h>#include <errno.h>#include <sys/types.h>#include <sys/socket.h>#include <netinet/in.h>#include <arpa/inet.h>#include <unistd.h>i

2020-11-12 18:37:15 157

原创 VS建立dll工程示例

建立工程。打开VS -> 新建项目 -> Visual C++ -> Win32 -> Win32项目。 输入项目名称 -> 确定 -> 下一步,直接到“应用程序设置”页面选择 “DLL” 和 “空项目” -> 完成。 示例代码头文件head_dll.h//HEAD为项目名称#ifdef HEAD_EXPORTS//HEAD_API: 用于标注要导出的函数或参数#define HEAD_API __declspec(dllexport)#else

2020-09-11 16:33:37 324

原创 Windows下使用gcc编译并使用DLL

DLL函数源代码dll.c#include <stdio.h>#include "dll.h"EXPORT void fun1(){ printf("This is fun1\n");}EXPORT void fun2(){ printf("This is fun2\n");}导出DLL的头文件dll.h#ifdef BUILD_DLL#define EXPORT __declspec(dllexport)#else#define EXPO

2020-07-08 17:42:32 4736 2

原创 解决VS code打开新文件覆盖当前文件问题

点击VS code左下角,管理 -> 设置搜索“enable Preview”去掉打钩,OK

2020-05-06 15:38:27 818 1

原创 C++基础学习代码

#include <iostream>using namespace std;//父类class Father{public: //函数重载 void work(int num) { std::cout << "This is Father @ " << num << endl; } ...

2020-02-20 14:56:26 760

原创 petalinux2018.3安装步骤

本次操作在Ubuntu2018.4系统环境下:1、先检查系统更新情况sudo apt-get update2、安装软件依赖库sudo apt-get install -y gcc git make net-tools libncurses5-dev tftpd zlib1g-dev libssl-dev flex bison libselinux1 gnupg wget di...

2019-11-20 09:50:26 1599

原创 C语言演示Windows系统开线程

上班无聊,试着看了看Windows系统线程,代码简单,不作过多解释。先上代码#include <stdio.h>#include <windows.h>#include <process.h>DWORD WINAPI thread_worker(LPVOID pArguments){ printf("No.%d : I'm son thr...

2019-11-14 17:42:04 455

原创 js打印玫瑰花

&lt;!DOCTYPE html&gt;&lt;html&gt;&lt;head&gt; &lt;meta http-equiv="content-type" content="text/html; charset=utf-8" /&gt; &lt;title&gt;3D(Darren)&lt;/title&gt;&lt;/head&amp

2019-03-12 10:07:51 411

原创 Linux系统C语言计时

#include &lt;stdio.h&gt;#include &lt;sys/time.h&gt;#include &lt;math.h&gt;#include &lt;time.h&gt;void do_func(){ int k; for(int i=0;i&lt;1000;i++) for(int j=0;j&lt;1000;j++) ...

2018-10-08 18:33:44 1763 2

原创 Linux系统下C语言线程

先上代码/* * gcc multiple_thread.c -lpthread -o multiple_thread*/#include <stdio.h>#include <pthread.h>#include <unistd.h>#include <signal.h>#include <sys/param.h>...

2018-10-02 14:50:33 240

原创 petalinux安装

sudo apt-get update安装依赖库sudo apt install gawk chrpath socat autoconf libtool git texinfo zlib1g-dev gcc-multilib libsdl1.2-dev libglib2.0-dev openssl zlib1g:i386 xvfb zlib1g-dev libncurses5-dev ...

2018-09-06 18:38:07 494

原创 Linux命令

查看默认shell,选择“否”切换bashls -l /bin/shsudo dpkg-reconfigure dash查看WiFi/网络账号密码cd /etc/NetworkManager/system-connections

2018-09-06 18:04:04 146

原创 petalinux常用命令

配置环境变量启动petalinuxsource /home/userroot/os/petalinux/settings.sh基于bsp文件创建petalinux-create -t project -s xilinx-zc706-v2017.4-final.bsp -n myproject从零开始创建项目petalinux-create -t project --tem...

2018-09-06 18:01:20 4579

原创 内部类学习

可以将一个类的定义放在另一个类的定义内部,这就是内部类。public class Parcel2 { class Content { private int i = 11; public int value() { return i; } } class Destination { private String label; public Destinat

2018-06-16 09:37:03 100

原创 Windows系统精准计时

#include &lt;stdio.h&gt;#include "windows.h"//windows系统精确计时//BOOL QueryPerformanceFrequency(LARGE_INTEGER *lpFrequency);//BOOL QueryPerformanceCounter (LARGE_INTEGER *lpCount);void main() { /...

2018-04-26 17:49:54 232

原创 C语言IO学习

#include &lt;stdio.h&gt;#include &lt;stdlib.h&gt;int main(void) {// puts("!!!Hello World!!!"); /* prints !!!Hello World!!! */// FILE *fp;// char ch;//判断文件是否成功打开// if ((fp = fopen("demo.txt",...

2018-04-25 14:19:38 308

原创 Linux清理缓存命令

sudo apt-get autoclean 清理旧版本的软件缓存sudo apt-get clean 清理所有软件缓存sudo apt-get autoremove --purge 删除系统不再使用的孤立软件dpkg -l |grep ^rc|awk '{print $2}' |sudo xargs dpkg -P purge清除残余的配置文件dpkg --get-selec

2018-01-25 10:58:06 1645

原创 chrome设置开启GPU加速

chrome://flags/#enable-gpu-rasterization设置Force-enable for all layerschrome://flags/#enable-zero-copy设置enabledchrome://flags/#gpu-rasterization-msaa-sample-count设置16debian系chrome下载地址:https://dl....

2018-01-25 10:52:10 32047

原创 C语言指针

#include int main(){ int a = 10; int *p = &a; printf("\n%08X----%08X----%d----%d----%08X\n\n", &a, p, *p, sizeof(*p), &(*p)); return 0;}结果:CE32D064----CE32D064----10----4----CE32D06

2017-09-19 12:22:25 267

原创 Java垃圾回收之System.gc()方法

先看代码吧public class GC_Demo { public static void main(String[] args) { Runtime runtime = Runtime.getRuntime(); System.out.println(runtime.totalMemory() / 1024 / 1024); for (int i = 0; i < 10

2017-09-15 08:48:21 902

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除