Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

[SOLVED] a VHDL error "Operator"+"is not defined for s

Status
Not open for further replies.
A

ahmadagha23

Guest
a VHDL error

Hi;
I want to use some symbols as delay time for signal assignements. So I use the following lines for this purpose:

constant Tbuff : integer:=5;
constant Tcable : integer:=7;
begin
a <= b after Tbuff +Tcable;

but I receive these error messages when I compile them. Would you please help me to resolve this errors?

ERROR:"Operator "+" is not defined for such operands."
ERROR:"Time expression expected."


Regards
 

dcreddy1980

Full Member level 5
Joined
Dec 3, 2004
Messages
243
Helped
46
Reputation
92
Reaction score
21
Trophy points
1,298
Location
Munich, Germany
Activity points
1,532
a VHDL error

You have to provide "a <= b after (Tbuff+Tcable) ns";

Change "ns" to what ever time scale unit
 

A

ahmadagha23

Guest
Re: a VHDL error

I did it but the following error message arised:

ERROR: "Keyword "when" expected"
 

dcreddy1980

Full Member level 5
Joined
Dec 3, 2004
Messages
243
Helped
46
Reputation
92
Reaction score
21
Trophy points
1,298
Location
Munich, Germany
Activity points
1,532
a VHDL error

put up your complete code so that it will be clear at which line it is pointing?
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top