摘要: echo: 用于字符串的输出。命令格式: echo "It is a test" //可以省略双引号; 显示转义字符 echo "\"It is a test\"" //可以省略双引号; 变量 #!/bin/sh read name echo "$name It is a test" read是一个 阅读全文
posted @ 2020-09-02 09:12 Kraken 阅读(156) 评论(0) 推荐(0) 编辑
摘要: Ch05 基本运算符 原生bash不支持简单的数学运算,但是可以通过其他命令来实现,例如 awk 和 expr,expr 最常用。 expr 是一款表达式计算工具,使用它能完成表达式的求值操作。 #!/bin/bash val=`expr 2 + 2` echo "两数之和为 : $val" 输出结 阅读全文
posted @ 2020-09-01 23:31 Kraken 阅读(165) 评论(0) 推荐(0) 编辑
摘要: Ch03.传递参数 向脚本传递三个参数,并分别输出,其中 $0 为执行的文件名(包含文件路径) #!/bin/bash # author:菜鸟教程 # url:www.runoob.com echo "Shell 传递参数实例!"; echo "执行的文件名:$0"; echo "第一个参数为:$1 阅读全文
posted @ 2020-08-25 23:11 Kraken 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 菜鸟教程上看到的bash教程:https://www.runoob.com/linux/linux-shell.html Ch01 shell的 "Hello World!",如下: #!/bin/bash echo "Hello World !" 其中,是一个约定的标记,它告诉系统这个脚本需要什么 阅读全文
posted @ 2020-08-24 10:47 Kraken 阅读(182) 评论(0) 推荐(0) 编辑
摘要: pip 列出所有安装的库 pip list 列出所有过期的库 pip list --outdated 安装pip-review。 pip install pip-review pip-review --local --interactive pip-review ERROR: Could not i 阅读全文
posted @ 2020-08-17 21:41 Kraken 阅读(927) 评论(0) 推荐(0) 编辑
摘要: 前几天在eetop上看到了有人发的华大九天的EDA,本来想自己装着试一下。系统是centOS 7,阿里云下载的。 安装流程:https://wenku.baidu.com/view/2bed58405727a5e9846a6125.html Q1.开机直接是命令行,没有登录界面。 A1:安装的时候选 阅读全文
posted @ 2020-07-11 20:19 Kraken 阅读(414) 评论(0) 推荐(0) 编辑
摘要: 81.A D flip-flop is a circuit that stores a bit and is updated periodically, at the (usually) positive edge of a clock signal. D flip-flops are create 阅读全文
posted @ 2020-06-17 16:26 Kraken 阅读(6975) 评论(0) 推荐(0) 编辑
摘要: 知乎上有个详细的解答专栏:https://zhuanlan.zhihu.com/c_1131528588117385216 73.Implement the circuit described by the Karnaugh map below. module top_module( input a 阅读全文
posted @ 2020-06-10 18:07 Kraken 阅读(2462) 评论(0) 推荐(0) 编辑
摘要: 66.Create a half adder. A half adder adds two bits (with no carry-in) and produces a sum and carry-out. module top_module( input a, b, output cout, su 阅读全文
posted @ 2020-06-09 12:02 Kraken 阅读(3161) 评论(0) 推荐(0) 编辑
摘要: 61.Create a one-bit wide, 2-to-1 multiplexer. When sel=0, choose a. When sel=1, choose b. module top_module( input a, b, sel, output out ); assign out 阅读全文
posted @ 2020-06-08 07:59 Kraken 阅读(3268) 评论(0) 推荐(0) 编辑
摘要: 44.Implement the following circuit: in-->out module top_module ( input in, output out); assign out=in; endmodule 45.Implement the following circuit: m 阅读全文
posted @ 2020-06-07 08:05 Kraken 阅读(4216) 评论(0) 推荐(0) 编辑
摘要: [注]这个网站比较神奇的一点就在于,不解出来就不让你看答案。所以经常一个错误卡好久。。不过有大佬在GitHub发过答案了: https://github.com/M-HHH/HDLBits_Practice_verilog 31.Build a 2-to-1 mux that chooses bet 阅读全文
posted @ 2020-06-05 09:42 Kraken 阅读(7995) 评论(0) 推荐(1) 编辑
摘要: 16.Given several input vectors, concatenate them together then split them up into several output vectors. There are six 5-bit input vectors: a, b, c, 阅读全文
posted @ 2020-05-19 21:34 Kraken 阅读(7587) 评论(0) 推荐(0) 编辑
摘要: 听别人推荐了一个Verilog刷题网站:https://hdlbits.01xz.net/wiki/Main_Page 01.Build a circuit with no inputs and one output. That output should always drive 1 (or lo 阅读全文
posted @ 2020-05-11 22:33 Kraken 阅读(3197) 评论(6) 推荐(1) 编辑
摘要: 01.检索: https://www.baiten.cn/ https://www.soopat.com/ https://www.rainpat.com/ http://www.innojoy.com/search/ 02.注意: 1.第2部分和第4部分,一定要写的全面、清楚。 2.英文缩写有中文 阅读全文
posted @ 2020-04-25 11:35 Kraken 阅读(4288) 评论(0) 推荐(0) 编辑
摘要: Chapter10 2020-04-11 20:09:04 程序崩溃可不好,但让用户看到traceback也不是好主意。如果用户怀有恶意,他会通过traceback获悉你不希望他知道的信息。有时候,训练有素的攻击者可根据这些信息判断出可对你的代码发起什么样的攻击。 try-except 代码块 执行 阅读全文
posted @ 2020-04-13 15:49 Kraken 阅读(230) 评论(0) 推荐(0) 编辑
摘要: Chapter07 用户输入和while 循环 input() age = input("How old are you? ") print(age) #默认为字符串 age = int(age) print(age) #强制类型转换 while current_number = 1 while c 阅读全文
posted @ 2020-04-11 18:55 Kraken 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 目的主要是提取下TFT的电学模型,应用于Hspice的仿真。基于level61或level62或者verilog-A编辑的模型。 2020.04.06 建个数据库: utmost4 user Manuel:2.2 Creating a Database On Windows, you can dou 阅读全文
posted @ 2020-04-08 11:31 Kraken 阅读(2369) 评论(2) 推荐(0) 编辑
摘要: 参考资料: https://www.runoob.com/linux/linux-tutorial.html https://baijiahao.baidu.com/s?id=1635968681987520772&wfr=spider&for=pc .PS:准备把旧电脑系统换成Ubuntu,先屯一 阅读全文
posted @ 2020-04-08 10:40 Kraken 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 参考文献: (1)HSPICE® User Guide:Simulation and Analysis-Chapter29 Using Verilog-A (2)Verilog-AMS Language Reference ManualAnalog & Mixed-Signal Extensions 阅读全文
posted @ 2020-03-23 10:22 Kraken 阅读(4723) 评论(0) 推荐(0) 编辑