- 博客(10)
- 收藏
- 关注
原创 c++ 读取二进制 和 新版本python遇到的问题
c++读取二进制 要改掉 (char *) 的类型pythonnumpy在新的windows 版本出bugcv2 在jupyter如何显示图片国内源 -i https://pypi.tuna.tsinghua.edu.cn/simple显示图片的3种方式cv2.imshowplt.imshowim.show()resize的两种方式cv2.resize()resized = cv2.resize(img, dim, interpolation = cv2.INTER_AREA)im
2020-11-10 00:29:29 657
原创 HLS ug871学习
Interfacelab1IO blcok protocolap_ctrl_nonelab2No IO protocol. This is the default for inputsap_vld: Implemented with an associated output valid port. This isthe default for outputsap_ack: Implemented with an associated input acknowledge portlab3T
2020-11-03 23:48:16 262
原创 HLS ug871学习
C validationlab 1int16_t 可以仿真int32_t 可以仿真lab2int16 和 int32 不能仿真When using arbitrary precision types in an ANSI C design, the debug environment cannot be used and printf or fprintf statements must be used to debug the design.在ANSI C设计中使用任意精度类型时,不能使用调
2020-11-03 22:27:41 173
原创 体系结果 3.14c 答案
存储器引用1存储器引用2浮点运算1浮点运算2整数运算/分支LD F2,0(R1)LD F8,8(R1)---------------LD F14,16(R1)LD F20,24(R1)---------------LD F26,32(R1)LD F32,40(R1)--------------------MULD F4 ,F2 ,F0MULD F10,F8,F0----------LD F6,0(R2)MULD F16,F...
2020-11-01 17:05:18 327
原创 sv function task 使用
string" ".v文件无法使用logicunexpected “SystemVerilog keyword ‘logic’”, expecting IDENTIFIER or TYPE_IDENTIFIER or NETTYPE_IDENTIFIER or ‘=’.notepad++ 出现 logc单独成行function voidfunction void set_name(string s);//不能缺少分号 name = s;endfunctiontask 也需要分号、
2020-11-01 16:41:06 862
原创 使用Foreach产生数组
代码initial begin chn1_arr = new[100]; chn2_arr = new[100]; chn3_arr = new[100]; foreach(chn1_arr[i]) begin chn1_arr[i] = 'h00C0_0000 + i; chn2_arr[i] = 'h00C1_0000 + i; chn3_arr[i] = 'h00C2_0000 + i; endend
2020-10-31 23:25:47 433
原创 数值分析李庆杨第五章习题
数值分析李庆杨第五章习题第十八题计算实习题第三题分析结果计算实习题第四题第一问第二问收获第十八题学习条件数逆矩阵 矩阵转置特征向量、特征值的求法X = [100,99;99,98];Y = inv(X);B = transpose(X);A = B*A;%A=[19801,19602;19602,19405]e = eig(A);sqrt(e(2)/e(1));cond(X,2)cond(X,inf)计算实习题第三题题目:从理论结果和实际计算两方面分析线性方程组AX=B解的
2020-10-31 22:20:37 2403 4
原创 数值分析李庆杨第五版第七章习题
数值分析李庆杨第五版第七章习题7用牛顿法用xuan截法用抛物线法11普通牛顿法加m牛顿法求重根迭代法法7用牛顿法// An highlighted block syms x f(x) = x^3-3*x-1;; g = diff(f); %h = diff(g); x = zeros(10,1); x(1) = pi/2; i = 1; while 1 x(i+1) =-f(x(i))/feval(g,x(i))+x(i); i= i+1; if(abs
2020-10-31 14:56:26 1570
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人