Go Generic 入门笔记

Hashnode好读版本 类型安全 过往使用interface{} a和b的类型在执行时才会被检查,这就增加了出错的可能性。 func Add(a, b interface{}) interface{} { return a.(int) + b.(i
[SV学习笔记]#2 电路验证是什么?

前言 这一篇来介绍电路验证(Design Verification)又俗称DV,实际上System Verilog只是DV的其中一种工具而已,而想要把System Verilog学好就必须要了解到DV在做什么?所
Vue3 Computed Properties & Watchers

前言 这礼拜被这两个搞得晕头转向,因为是有样学样,不是扎实的学术派,所以一开始我只会到处watch,但在向别人提问后,不只1人说你这应该用computed比
【Flutter】笔记-Image应用

定义一个容器 在容器child放入图片 Image.networkImage.asset Center( child: Container( height: 150, width: 150, decoration: const BoxDecoration( color: Colors.yellow ), child:Image.network('h
【Flutter】笔记-Clipoval 圆形图片

ClipOval( child: Image.network( 'https://via.placeholder.com/150', width: 150, height: 150, fit: BoxFit.cover, ),
[SV学习笔记]#3 SV新增的资料型态

前言 相较于Verilog,SV加入了许多不同的资料类型,接下来我就来介绍这些资料类型要怎么使用,跟Verilog有什么不同。 - - - - - bit二值unsignedvariable1bitsbyte二
[SV学习笔记]#4 typedef/enum/struct的用法

前言 这一篇来介绍几个SV新增的语法typedef/enum/struct,这几个语法相信有学过C语言的人都不陌生,用法上基本上也都差不多,不过这几个语法不单可以用在
C++ lambda test code

#include algorithm#include iostream #include functional #include vector #include string.husing namespace std; void get_string_value(void *str_value) {vectorint32_t param(15, 99);string _str_value;auto