如何修复“错误-[ICPSD]驱动程序的无效组合”?

codewarrior453

我正在尝试调试下面显示的代码。我对SystemVerilog相当陌生,希望我可以从中学到东西。让我知道任何建议。

**我收到的错误是:

  Error-[ICPSD] Invalid combination of drivers
  Variable "Q" is driven by an invalid combination of structural and 
  procedural drivers. Variables driven by a structural driver cannot have any 
  other drivers.
  "divide.v", 13: logic [7:0] Q;
  "divide.v", 16: divide8bit testcase1(x, y, clk, Q, R);
  "divide.v", 23: Q = 8'b0;

  Error-[ICPSD] Invalid combination of drivers
  Variable "R" is driven by an invalid combination of structural and 
  procedural drivers. Variables driven by a structural driver cannot have any 
  other drivers.
  "divide.v", 13: logic [7:0] R;
  "divide.v", 16: divide8bit testcase1(x, y, clk, Q, R);
  "divide.v", 24: R = y;

**我的SystemVerilog代码是:

module divide8bit(
  input logic [7:0] x,y,
  input logic clk,
  output logic [7:0] Q,R);

  always_ff @(posedge clk)
    begin
      R <= R-x;
      Q <= Q + 8'd1;
    end
endmodule

module test1;

  logic [7:0] x,y,Q,R;
  logic clk;

  divide8bit testcase1 (x,y,clk,Q,R);

  initial 
    begin
            x = 8'd2;
            y = 8'd8;
            Q = 8'd0;
            R = y;
            clk = 1'd0;
            while(x <= R)
                begin
                    #5 clk = ~clk;
                end
            #5 $finish; 
        end
endmodule
有里

同样的问题在这里:您要分配给QR内部module test1同时module testcase1也在努力向QR不要分配给Q和R in test1

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

如何修复hostapd无效/未知驱动程序'nl80211'错误?

SV:程序驱动程序的错误合法组合

如何修复不良的显示驱动程序?

如何将多个驱动程序与RxSwift正确组合?

如何修复ryzen处理器的驱动程序错误(代码32)?

如何使用python修复Selenium Web驱动程序``异常错误''

如何修复错误的驱动器标签?

修复Verilog中的“多个驱动程序”错误

如何修复无效文字的错误 - 函数

如何修复JAVAC无效标志错误?

如何修复JqGrid exportToExcel无效的xml错误?

如何修复此错误参数无效

如何修复 matplotlip 无效的语法错误?

我如何应用maas错误修复程序?

如何向后移植错误修复程序?

如何修复程序中的格式错误

内核升级后如何修复ATI fglrx驱动程序

使用 nvidia 驱动程序启动后如何修复黑屏?

如何修复“找不到适用于jdbc:mysql // localhost:3306 / gaming_site的驱动程序”错误

如何清除fglrx驱动程序错误?

Ojdbc驱动程序错误

错误 [37000] [IBM][CLI 驱动程序] CLI0118E 无效的 SQL 语法。SQLSTATE=37000

使用 Datastax Cassandra 驱动程序时出现无效类型错误

尝试为HFS +安装Paragon ufsd Professional驱动程序时,内核配置无效错误

修复或重建驱动程序存储

如何在C#中将组合框与可移动驱动程序列表结合

如何启用驱动程序?

如何修复与IF组合相关的错误并选择以下功能?

如何修复此代码中的“错误无效参数/选项 - 'Live'”?