verilogでループ命令を使用せずにループを実装しようとしているので、カウンターモジュールを作成し、シミュレーションは完全に実行されましたが、FPGAに実装しようとすると、このようなマッピングで多くのエラーが発生しました
ERROR:MapLib:979 - LUT4 symbol
"Inst_Count/Mcompar_GND_1105_o_xcount[7]_LessThan_25_o_lut<0>" (output
signal=Inst_Count/Mcompar_GND_1105_o_xcount[7]_LessThan_25_o_lut<0>) has
input signal "Inst_Count/Madd_x[9]_GND_1105_o_add_0_OUT_cy<0>" which will be
trimmed. See Section 5 of the Map Report File for details about why the input
signal will become undriven.
これらのエラーは、このモジュールをループ命令モジュールに置き換えたときにのみ発生したので、このモジュールの何が問題になっているのでしょうか。
これにあなたの時間を与えてくれてありがとう:)
module average( input rst , output reg [7:0]
reg [7:0] count;
reg [7:0] prv_count;
reg clk;
initial
begin
count = 8'd0;
end
always @ (posedge rst)
begin
clk = 1'b0;
end
always @ (clk)
begin
prv_count = count ;
count = prv_count + 1'b1;
end
always @ (count)
begin
if (count == 8'd255)
G_count= count;
else
begin
clk = ~clk;
G_count= count;
end
end
endmodule