自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 CUDA自学笔记02—矩阵转置

这个笔记是在自学过程的一些记录,中间包含了很多个人的理解以及问AI的回答,因为找不到很系统的教程,官方文档有时候不会讲的特别细,比方说某个指标的具体计算过程网上也没找到什么资料,所以在这里记录下,后续自己有了新的理解或者发现写的不对的地方都会在这不断更新,如有不对的地方,还请指正。CUDA朴素版本和CPU版本思路一致,只是分配了多个线程,每个线程负责一个元素的读取和写入,这里有个问题是我们在读取矩阵元素的时候是按行优先读取的,写入的时候是按列优先写入,导致读取是合并访存,但写入不是。

2026-06-09 10:35:54 196

原创 CUDA自学笔记01—Reduction规约求和

这里我举了s=1和s=16时的索引,可以看到s=1时,idx和idx+s都是间隔2的索引,就是一个2-way的bank conflict,一个warp就需要2次transactions,依次类推s=2时4-way的bank conflict需要4次transactions,而到了s=16时,注意tid=16时,idx已经到了512,索引已经超出了,超出的这部分是无效的,虽然这个warp是32-way的,但是我只需要发送16次transactions就满足了,后续迭代以此类推。迭代完后第一个数就是求和结果。

2026-06-07 20:47:24 209

原创 反卷积算法学习笔记

本文总结了三种反卷积算法:1) 转置卷积将卷积运算转为矩阵乘法实现逆向操作;2) 维纳滤波在频域最小化均方误差,适用于含噪声图像复原;3) Richardson-Lucy算法基于泊松噪声模型,通过EM迭代优化最大似然估计。三种方法分别适用于不同场景:转置卷积用于机器学习,维纳滤波处理已知噪声特性图像,而Richardson-Lucy擅长处理低信噪比生物医学图像。

2025-11-19 20:43:23 638

原创 机器学习学习笔记01-决策树

决策树(Decision Tree)是一种常见的分类和回归算法,它通过树形结构展示决策规则和分类结果。决策树的每个内部节点表示一个属性上的测试,每个分支代表一个测试输出,每个叶节点代表一种类别。我理解就是对输入的特征不断做划分。

2025-11-08 17:45:02 637

原创 N步最小二乘提取相位公式推导

令AbcosϕB−bsinϕAbcosϕB−bsinϕIiaAcosδiBsinδiIi​aAcosδi​Bsinδi​定义残差平方和res∑i1NIi−a−Acosδi−Bsinδi2resi1∑N​Ii​−a−Acosδi​−Bsinδi​2。

2025-11-01 15:19:10 600

原创 Circuits-Sequential Logic-Counters

目录1、Four-bit binary counter2、Decade counter3、Decade counter again4、Slow decade counter5、Counter 1-126、Counter 10007、4-digit decimal counter8、12-hour clock参考资料:https://hdlbits.01xz.net/1、Four-bit binary counterBuild a 4-bit binary counter that counts fro

2021-07-22 10:36:47 295

原创 Circuits-Sequential Logic-Latches and Flip-Flops

目录1、D flip-flop2、D flip-flops3、DFF with reset4、DFF with reset value5、DFF with asynchronous reset6、DFF with byte enable7、D Latch8、DFF9、DFF10、DFF+gate11、MUX and DFF12、MUX and DFF13、DFFs and gates14、Create circuit from truth table15、Detect an edge16、Detect bo

2021-07-20 15:35:05 720

原创 Circuits-Combinational Logic-Karnaugh Map to circuit

目录1、3-variable2、4-variable3、4-variable4、4-variable5、Minimum SOP and POS6、Karnaugh map7、Karnaugh map8、K-map implemented with a multiplexer参考资料:https://hdlbits.01xz.net/1、3-variablemodule top_module( input a, input b, input c, output out

2021-07-19 10:33:09 244

原创 Circuits-Combinational Logic-Arithmetic Circuits

目录1、Half adder2、Full adder3、3-bit binary adder4、Adder5、Signed addition overflow6、100-bit binary adder7、4-digit BCD adder参考资料:https://hdlbits.01xz.net/1、Half adderCreate a half adder. A half adder adds two bits (with no carry-in) and produces a sum and c

2021-07-17 21:07:39 260

原创 Circuits-Combinational Logic-Multiplexers

目录1、2-to-1 multiplexer2、2-to-1 bus multiplexer3、9-to-1 multiplexer4、256-to-1 multiplexer5、256-to-1 4 bit multiplexer参考资料:https://hdlbits.01xz.net/1、2-to-1 multiplexerCreate a one-bit wide, 2-to-1 multiplexer. When sel=0, choose a. When sel=1, choose b.

2021-07-17 20:13:34 346

原创 Circuits-Combinational Logic-Basic Gates

目录1、Wire2、GND3、NOR4、Another gate5、Two gates6、More logic gates7、7420 chip8、Truth tables9、Two-bit equality10、Simple circuit A11、Simple circuit B12、Combine circuits A and B13、Ring or vibrate14、Thermostat15、3-bit population count16、Gates and vectors17、Even lon

2021-07-17 10:55:09 460

原创 Verilog Language-More Verilog Features

目录1、Conditional ternary operator2、Reduction operators3、Reduction: Even wider gates4、Combinational for-loop: Vector reversal 25、Combinational for-loop: 255-bit population count6、Generate for-loop: 100-bit binary adder 27、Generate for-loop: 100-digit BCD add

2021-07-16 15:06:39 373

原创 Verilog Language-Modules:Hierarchy

目录1、Modules2、Connecting ports by position3、Connecting ports by name4、Three modules5、Modules and vectors6、Adder17、Adder28、Carry-select adder9、Adder-subtractor1、ModulesConnecting Signals to Module PortsThere are two commonly-used methods to connect a wi

2021-06-18 20:09:40 817

原创 Verilog Language-Vectors

目录1、Vectors2、Vectors in more detail3、Vector part select4、Bitwise operators5、Four-input gates6、Vectors concatenation operator7、Vector reversal 18、Replication operator9、More replication1、VectorsVectors are used to group related signals using one name to ma

2021-06-17 19:30:34 448

原创 Verilog Language-Basics

目录1、Simple wire2、Four wires3、Inverter4、AND gate5、NOR gate6、XNOR gate7、Declaring wires8、7458 chip1、Simple wireUnlike physical wires, wires (and other signals) in Verilog are directional. This means information flows in only one direction, from (usually on

2021-06-17 16:51:26 404

原创 Verilog Language-Procedures

HDLBits个人学习笔记Verilog Language-Procedures目录Always blocks(combinational)Always blocks(clocked)If statementIf statement latchesCase statementPriority encoderPriority encoder with casezAvoiding latchesAlways blocks(combinational)Combinational always

2021-06-10 21:46:18 564

空空如也

空空如也

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

TA关注的人

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