The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Apr 20th, 2024, 4:22am
Pages: 1
Send Topic Print
Warning signal with smash (Read 3983 times)
Lucas67
New Member
*
Offline



Posts: 3

Warning signal with smash
Jul 04th, 2008, 3:14am
 
Hello,

I begin in VHDL-AMS and I try to use the software SMASH.

I wrote a little program. When I compil it, I have one warning :

"WARNING: signal 'COUPLE' is not driven by any gate or process output."

What is the matter ?

This is my program :

>>> VHDL

library IEEE;
use IEEE.math_real.all;
use IEEE.mechanical_systems.all;
use IEEE.std_logic_1164.all;

ENTITY car IS
     GENERIC (M:mass:=1500.0);
     PORT (SIGNAL couple : IN REAL);
END ENTITY;

ARCHITECTURE behav OF car IS
     CONSTANT roue: real:=0.2;
     QUANTITY acc : acceleration ;
     QUANTITY vitesse : velocity ;
BEGIN
     acc == couple/(M*roue);
     vitesse'dot == acc;
END ARCHITECTURE behav;

ENTITY TB IS
END;
use WORK.ALL;
ARCHITECTURE One OF TB IS
SIGNAL couple : real ;
BEGIN
     voituretest : ENTITY car (behav)
     PORT MAP (couple);
     couple <= 50.0;
END ARCHITECTURE One;
Back to top
 
 
View Profile   IP Logged
alinalin19832007
New Member
*
Offline



Posts: 9
roman
Re: Warning signal with smash
Reply #1 - Jul 13th, 2008, 12:46pm
 
hi
I think u have to put the signal couple in a process in TB

Back to top
 
 
View Profile   IP Logged
Lucas67
New Member
*
Offline



Posts: 3

Re: Warning signal with smash
Reply #2 - Sep 16th, 2008, 12:30am
 
You're right. the signal couple is in a process in TB.

I changed that and the warning disappear.

Thank you very much for your help.
Back to top
 
 
View Profile   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.