VHDL AMS -smash software

Status
Not open for further replies.

snehal_rt

Newbie level 1
Joined
Feb 3, 2008
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
netherlands
Activity points
1,290
Hi everyone...

I am new to the software Smash....To get familiar with it i was trying to run some simple code.

when i was trying to run the code for resistor...
i get error saying unable to parse the device(syntax error).this error is in the first two lines
ie library ieee;use ieee.electrical_systems.all;

its quite strange ,i tried to check everthing but i dnt knw what the error can be.....

my code for resistor
library ieee;

use ieee.electrical_systems.all;

entity resistor is
&nbspgeneric(
&nbspR : resistance := 1.0 -- [Ohm]
);
&nbspport(

&nbspterminal t1, t2 : electrical
);
end entity resistor;

architecture simple of resistor is
&nbspquantity v across t1 to t2;
&nbspquantity i through t1 to t2;
begin
&nbspv==i*R;
end architecture simple;


Can ayone please help me......
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…