U
Uwe Bonnes
Guest
Recent version of Xilinx sythesis xst tool flag e.g. following code sample
reg [7:0] cnt;
always @(posedge clk)
cnt <= cnt +1,
with
WARNING:HDLCompiler:413 - "xxx" Line yyy: Result of 9-bit expression is
truncated to fit in 8-bit target.
You can silence the warning like
reg [7:0] cnt;
wire [8:0] adder = cnt + 1;
always @(posedge clk)
cnt <= adder[7:0];
Does the warning make sense? Does the effort to silence the warning make
sense? Any better way?
Thanks
--
Uwe Bonnes bon@elektron.ikp.physik.tu-darmstadt.de
Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
reg [7:0] cnt;
always @(posedge clk)
cnt <= cnt +1,
with
WARNING:HDLCompiler:413 - "xxx" Line yyy: Result of 9-bit expression is
truncated to fit in 8-bit target.
You can silence the warning like
reg [7:0] cnt;
wire [8:0] adder = cnt + 1;
always @(posedge clk)
cnt <= adder[7:0];
Does the warning make sense? Does the effort to silence the warning make
sense? Any better way?
Thanks
--
Uwe Bonnes bon@elektron.ikp.physik.tu-darmstadt.de
Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------