0%

你好,欢迎来到我的博客。
关于我:24岁,属虎,目前在西南某一所不知名双非院校攻读研究生学位,有一位挚爱的女友。平常我会在这里记录自己生活中的日常琐事和一些学习到的知识。如果对我分享的内容有所疑问或者有什么需要我帮助的地方,你可以通过邮件与我取得联系,邮件地址是thebestzhihao@foxmail.com

Here's something encrypted, password is required to continue reading.
阅读全文 »

Gates4

Description

Build a combinational circuit with four inputs, in[3:0].

There are 3 outputs:

out_and: output of a 4-input AND gate.
out_or: output of a 4-input OR gate.
out_xor: output of a 4-input XOR gate.
To review the AND, OR, and XOR operators, see andgate, norgate, and xnorgate.

阅读全文 »

Bitwise vs. Logical Operators

Description

Earlier, we mentioned that there are bitwise and logical versions of the various boolean operators (e.g., norgate). When using vectors, the distinction between the two operator types becomes important. A bitwise operation between two N-bit vectors replicates the operation for each bit of the vector and produces a N-bit output, while a logical operation treats the entire vector as a boolean value (true = non-zero, false = zero) and produces a 1-bit output.
Look at the simulation waveforms at how the bitwise-OR and logical-OR differ.

1664459730.jpg

阅读全文 »

HDLBits刷题

Exams/ece241 2013 q12

Introduction
In this question, you will design a circuit for an 8x1 memory, where writing to the memory is accomplished by shifting-in bits, and reading is “random access”, as in a typical RAM. You will then use the circuit to realize a 3-input logic function.

First, create an 8-bit shift register with 8 D-type flip-flops. Label the flip-flop outputs from Q[0]…Q[7]. The shift register input should be called S, which feeds the input of Q[0] (MSB is shifted in first). The enable input controls whether to shift. Then, extend the circuit to have 3 additional inputs A,B,C and an output Z. The circuit’s behaviour should be as follows: when ABC is 000, Z=Q[0], when ABC is 001, Z=Q[1], and so on. Your circuit should contain ONLY the 8-bit shift register, and multiplexers. (Aside: this circuit is called a 3-input look-up-table (LUT)).

阅读全文 »

为树莓派3B+编译OpenWrt固件

1. 源码获取

1.1 获取OpenWrt源代码

1
git clone https://github.com/coolsnowwolf/lede.git

1.2 获取插件源代码

方法一:联网获取

1
2
3
4
1. sed -i '$a src-git kenzo https://github.com/kenzok8/openwrt-packages' feeds.conf.default
2. sed -i '$a src-git small https://github.com/kenzok8/small' feeds.conf.default
3. git pull
4. ./scripts/feeds update -a && ./scripts/feeds install -a
阅读全文 »

OpenWrt系统编译

OpenWrt 可以被描述为一个嵌入式的 Linux 发行版。(主流路由器固件有 dd-wrt,tomato,openwrt,padavan四类)对比一个单一的、静态的系统,OpenWrt的包管理提供了一个完全可写的文件系统,从应用程序供应商提供的选择和配置,并允许您自定义的设备,以适应任何应用程序。

注意

  1. 不要用 root 用户进行编译。
  2. 国内用户编译前准备好科学上网工具,有很多资源需要从国外网站下载。
  3. 默认登陆IP 192.168.1.1 密码 password。
阅读全文 »