随笔分类 - HDLBits
练习时遇到不太懂的知识点,记录下来方便回顾
摘要:1. genvar 和 generate 的作用 genvar 是一种特殊的数据类型,用于在 generate 语句块中定义 循环变量。与普通变量不同的是,genvar 只能用于 generate 语句中,并且只能用于生成时刻(编译时)进行评估,而非仿真时。 generate 块用于生成硬件逻辑。它
阅读全文
摘要:优先编码器 (Priority Encoder) 是一种在 数字电路和计算机系统 中非常有用的逻辑电路,能够在多个输入信号中选择具有最高优先级的输入,并将其位置编码成输出信号。它在硬件设计和数字系统应用中有着广泛的用途。 优先编码器的主要用途 中断控制系统: 在微处理器中,中断(Interrupt)
阅读全文
摘要:HDLBits 练习题:实现32位加法器 原题 You are given a module add16 that performs a 16-bit addition. Instantiate two of them to create a 32-bit adder. One add16 modu
阅读全文
摘要:HDLBits 练习题:8 位移位寄存器 原题 This exercise is an extension of module_shift. Instead of module ports being only single pins, we now have modules with vector
阅读全文