最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

verilog - Incorrect outputs for the 8-bit fixed-point - Stack Overflow

programmeradmin1浏览0评论

Accroding to the Wikipedia Fixed-point arithmetic. I'm doing a fixed-point implementation with 8-bit integers. Numbers are originally floating point numbers (like -0.125). Due to implementation on hardware, there is no floating point numbers, it must be represented by an integer, I already been converted to integers. For example, if Q(6,3) becomes -0.125 * (2^3) = -1 or Q(2,6) = -0.125*(2^6) = -8.

Below is the correct output for five different input cases. For example, when

发布评论

评论列表(0)

  1. 暂无评论