OpenASIC
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • \[\[global:header.users\]\]
    • \[\[global:header.groups\]\]
    • \[\[global:header.search\]\]
    • Register
    • Login

    H265 2.0代码存在BUG

    Scheduled Pinned Locked Moved 交流讨论 | General Discussion
    3 Posts 2 Posters 10.8k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L Offline
      lunning
      last edited by

      rtl/rec/rec_tq/mod.v:
      此模块输入qp,计算qp % 6,并进一步按照公式计算量化中需要的参数
      如果输入qp=6,正确的计算应该为6 % 6 = 0。但是此模块计算6 % 6 = 6,
      这会导致后续参数计算全部为0,量化后系数也全部为0。

      问题原因:
      always@(*) begin
      next_state=IDLE;
      case(state)
      IDLE:
      if((qp_r != qp)&&(qp>6))
      next_state=MODE_STATE;
      else
      next_state=IDLE;
      MODE_STATE:
      if(opi<6+6)
      next_state=IDLE;
      else
      next_state=MODE_STATE;
      endcase
      end

      此always块中的“if((qp_r != qp)&&(qp>6))”语句有误,当qp=6时不会进行mod操作以及状态跳转,建议修改。

      1 Reply Last reply Reply Quote 0
      • B Offline
        bo
        last edited by

        非常感谢!!
        近期我们会将2.0版本代码放到github托管,到时候一并更新!

        1 Reply Last reply Reply Quote 0
        • L Offline
          lunning
          last edited by

          我发了pull request,请查收

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          Copyright © 2016 OpenASIC.XinKai
          VIP Lab @Fudan University | XK Silicon