vlsibank

Log in or Sign up.
Main EDA Embedded Systems ASIC FPGA VHDL Verilog CMOS Semiconductors DSP Mixed Signal Architecture Miscellaneous

<-- Previous Next -- > TOPIC: Compilation and simulation warning
Posted by: jasonkee111     2/24/2009 9:54:15 AM     Category: Verilog
Questions posted: 2         Comments Posted: 3
there are some warnings in my design during compilation and simulation.  For your information, i am using Altera Quartus II.

1. Compilation Warning (10230): Verilog HDL assignment warning at clk_generator.v(16): truncated value with size 32 to match size of target (13).
Question: I already declare the signal as 13 bits. Why do I still receive this kind of warnings? How to solve it?

2. Timing Simulation Warning: Can't display state machine states -- register holding state machine bit "|UART|C_receive:U_C_receive|ps.s1" was synthesized away

Question: May I know what is the reason to cause this kind of warning? How to solve it? The code is shown below

module C_receive (clk_1Mhz, reset, get_data, rdrf, r_x_ready_in, ready_in);

input clk_1Mhz, reset;
input get_data;
input rdrf;
output reg r_x_ready_in;
output reg ready_in;
reg [1:0] ps, ns;
parameter [1:0] s0 = 0, s1 = 1, s2 = 2, s3 = 3;

always @ (ps or get_data or rdrf)
begin
case (ps)
s0: begin r_x_ready_in = 1; ready_in = 0;

if (rdrf)
ns = s0;
else if (get_data)
ns = s1;
else
ns = s0;
end
//--------------------------------------------------------
s1: begin r_x_ready_in = 0; ready_in=0;

if (rdrf)
ns = s2;
else
ns = s1;

end
//----------------------------------------------------------
.
.

3. timing simulation: clock receiver waveform have lots of glitches in UART_comm which is intermediate module. However, there is no glitch in clock_generator module (lowest module)and UART(top module) when timing simulation were done. Can anyone explain on it?

4. Simulation warning:

Warning: Ignored node in vector source file. Can't find corresponding node name "UART_transmitter:U_UART_Transmitter|Transmitter_C U:U_Transmitter_CU|byte_ready" in design.

Background: There is something wrong in my simulation. So, in order to find it out , I try to check and insert the intermediate signal through node finder (subentities).
Question: Can somebody let me know the reason that can’t find the node.? it suppose should have. * Some of the intermediate signal can be shown in waveform.


Thanks a lot.

Posted by: jasonkee111     7/26/2010 10:38:16 PM
Comments Posted:3       Questions Posted:2

I have lost track of this problem d.  I can't find the source code.  Thanks for ur reply


Posted by: kumarshravan     7/26/2010 7:10:09 AM
Comments Posted:8       

The above solution is for 1st problem


Posted by: kumarshravan     7/26/2010 7:04:37 AM
Comments Posted:8       

you might have declared it as 13bit but while assigning the value u might have written it as a='b55 instead of that try it has 13'b55


Posted by: kumarshravan     7/26/2010 7:02:50 AM
Comments Posted:8       

Post the code that is having problem




You have to be logged in to be able to post a comment. To login click here. First time? Sign up. It just takes a few minutes to sign up.

Login to access the site

  Username:
  Password:
   Signup Forgot Password?    

Users with most replies

   User
 No. of Replies
100
86
77
76
70
66
61
57
54