<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[ngany的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/ngany</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; ngany]]></copyright><item><title><![CDATA[以太坊的状态树 Merkle Patricia Tree]]></title><link>https://blog.csdn.net/ngany/article/details/122764315</link><guid>https://blog.csdn.net/ngany/article/details/122764315</guid><author>ngany</author><pubDate>Tue, 01 Feb 2022 15:28:37 +0800</pubDate><description><![CDATA[Merkle Patricia Tree
Merkle树
https://www.cnblogs.com/fengzhiwu/p/5524324.html

Merkle Tree，通常也被称作Hash Tree，顾名思义，就是存储hash值的一棵树。Merkle树的叶子是数据块(例如，文件或者文件的集合)的hash值。非叶节点是其对应子节点串联字符串的hash。Merkle Tree的主要作用是当我拿到Top Hash的时候，这个hash值代表了整颗树的信息摘要，当树里面任何一个数据发生了变动，都会导致T]]></description><category></category></item><item><title><![CDATA[gitignore更新方法]]></title><link>https://blog.csdn.net/ngany/article/details/121971980</link><guid>https://blog.csdn.net/ngany/article/details/121971980</guid><author>ngany</author><pubDate>Thu, 16 Dec 2021 12:37:53 +0800</pubDate><description><![CDATA[gitignore 不起作用的解决办法
解决办法
git rm -r --cached .
git add .
git commit -m ‘update .gitignore’   //windows 使用的命令是
git commit -m “update .gitignore”  需要使用双引号
.gitignore文件,具体的规则一搜就有.我在使用GIT的过程中,明明写好了规则,但问题不起作用,每次还是重复提交,无法忍受.其实这个文件里的规则对已经追踪的文件是没有效果的.所以我们需要使用rm命令清除]]></description><category></category></item><item><title><![CDATA[MATLAB/Simulink 使用记录]]></title><link>https://blog.csdn.net/ngany/article/details/120149716</link><guid>https://blog.csdn.net/ngany/article/details/120149716</guid><author>ngany</author><pubDate>Tue, 07 Sep 2021 08:47:55 +0800</pubDate><description><![CDATA[1.InitFcn

仿真模块全局变量初始化，启动Run之后可以添加至工作区。

右键——Model Perprities——Callbacks——InitFcn



2. 子模块参数输入

右键模块——Mask——Edit Mask...——Parameter&amp;Dialog选项卡——编辑参数。

双击子模块输入参数值。

子模块内部的块Main选项卡的名称要与参数编辑的命名一致。







3. 示波器Scope波形的上传到工作区

运行后打开示波器波形，菜单栏View—— Confi...]]></description><category></category></item><item><title><![CDATA[linux 编译程序的四个过程]]></title><link>https://blog.csdn.net/ngany/article/details/120009750</link><guid>https://blog.csdn.net/ngany/article/details/120009750</guid><author>ngany</author><pubDate>Tue, 31 Aug 2021 09:04:29 +0800</pubDate><description><![CDATA[一、预编译

他的命令是gcc -E main.c -o main.o  假设当前要编译的文件是main.c

1.将所有的#define删除，并展开所有的宏定义；

2.处理所有的预编译指令，例如：#if,#elif,#else,#endif;

3.处理#include预编译指令，将被包含的文件插入到预编译指令的位置；

4.添加行号信息文件名标识，便于调试；

5.删除所有的注释：

6.保留所有的#pragma编译指令，因为在编写程序的时候,我们经常要用到#pragma指令来设定编译器的...]]></description><category></category></item><item><title><![CDATA[HDLBits练习 132-134 FSM（4）]]></title><link>https://blog.csdn.net/ngany/article/details/119887249</link><guid>https://blog.csdn.net/ngany/article/details/119887249</guid><author>ngany</author><pubDate>Tue, 24 Aug 2021 13:43:22 +0800</pubDate><description><![CDATA[132fsm_onehot

Given the following state machine with 1 input and 2 outputs:



Suppose this state machine uses one-hot encoding, wherestate[0]throughstate[9]correspond to the states S0 though S9, respectively. The outputs are zero unless otherwise sp...]]></description><category></category></item><item><title><![CDATA[HDLBits练习 128-131 FSM（3）]]></title><link>https://blog.csdn.net/ngany/article/details/119884541</link><guid>https://blog.csdn.net/ngany/article/details/119884541</guid><author>ngany</author><pubDate>Tue, 24 Aug 2021 12:12:07 +0800</pubDate><description><![CDATA[128lemmings1

The gameLemmingsinvolves critters with fairly simple brains. So simple that we are going to model it using a finite state machine.

In the Lemmings' 2D world, Lemmings can be in one of two states: walking left or walking right. It will swi...]]></description><category></category></item><item><title><![CDATA[HDLBits练习 123-127 FSM（2）]]></title><link>https://blog.csdn.net/ngany/article/details/119868764</link><guid>https://blog.csdn.net/ngany/article/details/119868764</guid><author>ngany</author><pubDate>Tue, 24 Aug 2021 10:31:19 +0800</pubDate><description><![CDATA[三段式状态机 三段式分别指

状态跳转逻辑
	状态触发器实现
	输出逻辑
123fsm3comb

The following is the state transition table for a Moore state machine with one input, one output, and four states. Use the following state encoding: A=2'b00, B=2'b01, C=2'b10, D=2'b11.

Implement only the .]]></description><category></category></item><item><title><![CDATA[HDLBits练习 119-122 FSM（1）]]></title><link>https://blog.csdn.net/ngany/article/details/119802209</link><guid>https://blog.csdn.net/ngany/article/details/119802209</guid><author>ngany</author><pubDate>Mon, 23 Aug 2021 14:30:11 +0800</pubDate><description><![CDATA[119fsm1

This is a Moore state machine with two states, one input, and one output. Implement this state machine. Notice that the reset state is B.

This exercise is the same asfsm1s, but using asynchronous reset.



Hint...Yes, there are ways to do this ..]]></description><category></category></item><item><title><![CDATA[HDLBits练习 116-118 More Circuits]]></title><link>https://blog.csdn.net/ngany/article/details/119800884</link><guid>https://blog.csdn.net/ngany/article/details/119800884</guid><author>ngany</author><pubDate>Thu, 19 Aug 2021 14:56:35 +0800</pubDate><description><![CDATA[116rule90

Rule 90is a one-dimensional cellular automaton with interesting properties.

The rules are simple. There is a one-dimensional array of cells (on or off). At each time step, the next state of each cell is the XOR of the cell's two current neigh..]]></description><category></category></item><item><title><![CDATA[HDLBits练习 113-115 Shift Registers]]></title><link>https://blog.csdn.net/ngany/article/details/119799787</link><guid>https://blog.csdn.net/ngany/article/details/119799787</guid><author>ngany</author><pubDate>Thu, 19 Aug 2021 14:04:58 +0800</pubDate><description><![CDATA[113exams/m2014_q4k

Implement the following circuit:




module top_module (
    input clk,
    input resetn,   // synchronous reset
    input in,
    output out);
    
    reg r1,r2,r3,r4;

    always@(posedge clk)begin
        if(!resetn) begin
        .]]></description><category></category></item><item><title><![CDATA[HDLBits练习 107-112 Shift Registers]]></title><link>https://blog.csdn.net/ngany/article/details/119778072</link><guid>https://blog.csdn.net/ngany/article/details/119778072</guid><author>ngany</author><pubDate>Wed, 18 Aug 2021 15:59:25 +0800</pubDate><description><![CDATA[107shift4

Build a 4-bit shift register (right shift), with asynchronous reset, synchronous load, and enable.

areset: Resets shift register to zero.
	load: Loads shift register withdata[3:0]instead of shifting.
	ena: Shift right (q[3]becomes zero,q[...]]></description><category></category></item><item><title><![CDATA[HDLBits练习 105-106 Counters]]></title><link>https://blog.csdn.net/ngany/article/details/119775350</link><guid>https://blog.csdn.net/ngany/article/details/119775350</guid><author>ngany</author><pubDate>Wed, 18 Aug 2021 10:56:03 +0800</pubDate><description><![CDATA[105countbcd

Build a 4-digit BCD (binary-coded decimal) counter. Each decimal digit is encoded using 4 bits: q[3:0] is the ones digit, q[7:4] is the tens digit, etc. For digits [3:1], also output an enable signal indicating when each of the upper three di.]]></description><category></category></item><item><title><![CDATA[CORDIC算法详解及FPGA实现]]></title><link>https://blog.csdn.net/ngany/article/details/117401494</link><guid>https://blog.csdn.net/ngany/article/details/117401494</guid><author>ngany</author><pubDate>Sun, 30 May 2021 18:52:04 +0800</pubDate><description><![CDATA[CORDIC算法详解
1 平面坐标系旋转
CORDIC算法的思想是通过迭代的方法，使得累计旋转过的角度的和无限接近目标角度。它是一种数值计算逼近的方法，运算只有移位和加减。
通过圆坐标系可以了解CORDIC算法的基本思想，如图1所示，初始向量(x1,y1)\left( x_{1},y_{1} \right)(x1​,y1​)旋转θ\thetaθ角度之后得到向量(x2,y2)\left( x_{2},y_{2} \right)(x2​,y2​)，两者之间满足（公式1）关系。

图1 CORDIC算法原理示意图]]></description><category></category></item><item><title><![CDATA[TI编译器下载地址]]></title><link>https://blog.csdn.net/ngany/article/details/113928152</link><guid>https://blog.csdn.net/ngany/article/details/113928152</guid><author>ngany</author><pubDate>Mon, 22 Feb 2021 08:38:10 +0800</pubDate><description><![CDATA[TI的C2000编译器下载地址：
https://www.ti.com/tool/C2000-CGT

]]></description><category></category></item><item><title><![CDATA[TI C2000系列DSP可配置逻辑块（CLB）设计说明]]></title><link>https://blog.csdn.net/ngany/article/details/113883022</link><guid>https://blog.csdn.net/ngany/article/details/113883022</guid><author>ngany</author><pubDate>Sat, 20 Feb 2021 15:12:31 +0800</pubDate><description><![CDATA[TI C2000系列DSP可配置逻辑块（CLB）设计说明CLB结构概述CLB输入CLB输出CLB的TILE块FLowchart流程图导出与导入导出导入
CLB结构概述
基本级别配置中存在的四个 CLB 模块中的每一个都由一个输入信号选择器、 一个 CLB 逻辑块和一个外设信号多路复用器组成。 输入信号选择器选择进入 CLB 逻辑块的八个信号， 外设信号多路复用器分配 CLB 逻辑块的八个输出。 在逻辑块本身内部， 将逻辑运算应用于八个输入（由配置寄存器的内容决定） ， 以生成八个输出信号。 这些逻辑运算可以]]></description><category></category></item><item><title><![CDATA[Python基础教程（八）matplotlib--支持的图类型。柱状图、饼图、K线图]]></title><link>https://blog.csdn.net/ngany/article/details/113812169</link><guid>https://blog.csdn.net/ngany/article/details/113812169</guid><author>ngany</author><pubDate>Sun, 14 Feb 2021 23:23:13 +0800</pubDate><description><![CDATA[编程字典Pandas教程 http://codingdict.com/article/8270
清华计算机博士带你学-Python金融量化分析 https://www.bilibili.com/video/BV1i741147LS?t
https://matplotlib.org/stable/index.html
支持的各种图形




函数
说明




plt.plot(x,y,fmt,…)
坐标图


plt.boxplot(data,notch,position)
箱型图


plt.bar(le]]></description><category></category></item><item><title><![CDATA[Python基础教程（七）matplotlib--plot介绍]]></title><link>https://blog.csdn.net/ngany/article/details/113807911</link><guid>https://blog.csdn.net/ngany/article/details/113807911</guid><author>ngany</author><pubDate>Sun, 14 Feb 2021 18:52:57 +0800</pubDate><description><![CDATA[编程字典Pandas教程 http://codingdict.com/article/8270
清华计算机博士带你学-Python金融量化分析 https://www.bilibili.com/video/BV1i741147LS?t
https://matplotlib.org/stable/index.html
1. 介绍
matplotlib.pyplot是一个有命令风格的函数集合，它看起来和MATLAB很相似。每一个pyplot函数都使一副图像做出些许改变，例如创建一幅图，在图中创建一个绘图区域，在]]></description><category></category></item><item><title><![CDATA[Python基础教程（六）Pandas--文件处理]]></title><link>https://blog.csdn.net/ngany/article/details/113807570</link><guid>https://blog.csdn.net/ngany/article/details/113807570</guid><author>ngany</author><pubDate>Sun, 14 Feb 2021 13:54:23 +0800</pubDate><description><![CDATA[编程字典Pandas教程 http://codingdict.com/article/8270
清华计算机博士带你学-Python金融量化分析 https://www.bilibili.com/video/BV1i741147LS?t
pandas文档 https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.read_csv.html
数据文件常用格式：csv（以某间隔符分割数据）
文件读取

read_csv    默认分隔符为逗]]></description><category></category></item><item><title><![CDATA[Python基础教程（五）Pandas--时间处理对象]]></title><link>https://blog.csdn.net/ngany/article/details/113804475</link><guid>https://blog.csdn.net/ngany/article/details/113804475</guid><author>ngany</author><pubDate>Sun, 14 Feb 2021 13:28:37 +0800</pubDate><description><![CDATA[编程字典Pandas教程 http://codingdict.com/article/8270
清华计算机博士带你学-Python金融量化分析 https://www.bilibili.com/video/BV1i741147LS?t

]]></description><category></category></item><item><title><![CDATA[Python基础教程（四）Pandas--DataFrame]]></title><link>https://blog.csdn.net/ngany/article/details/113802958</link><guid>https://blog.csdn.net/ngany/article/details/113802958</guid><author>ngany</author><pubDate>Sat, 13 Feb 2021 21:05:45 +0800</pubDate><description><![CDATA[DataFrame 表格型数据对象
DataFrame数据框架是一种二维数据结构，即数据按行和列的表格方式排列。
DataFrame的创建
可以使用以下构造函数创建一个pandas DataFrame -
pandas.DataFrame( data, index, columns, dtype, copy)





No
参数
说明




1
data
数据采用各种形式，如ndarray，序列，地图，列表，字典，常量和另一个DataFrame。


2
index
对于行标签，如果没有索引被传递，则要]]></description><category></category></item></channel></rss>