有符号数处理摘要
摘要:在FPGA设计中,一般的算数运算符都是按照无符号数进行的。那么需要有符号数计算的时候,该怎么办呢? 很久很久以前也就是Verilog-2001还没有出现时,是手动操作的,也就是说,对于一个8位的无符号数,比如reg [7:0] a; 我们手动把最高位当做符号位,剩余的7位则是数值位,整个二进制以补码
阅读全文
posted @
2019-10-18 11:44
IC_learner
阅读(1309)
推荐(1)
加减法器
摘要:Module addsub(来自HDLbits) An adder-subtractor can be built from an adder by optionally negating one of the inputs, which is equivalent to inverting the
阅读全文
posted @
2019-10-12 11:16
IC_learner
阅读(692)
推荐(0)