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
 generic(
 R : resistance := 1.0 -- [Ohm]
);
 port(
 terminal t1, t2 : electrical
);
end entity resistor;
architecture simple of resistor is
 quantity v across t1 to t2;
 quantity i through t1 to t2;
begin
 v==i*R;
end architecture simple;
Can ayone please help me......
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
 generic(
 R : resistance := 1.0 -- [Ohm]
);
 port(
 terminal t1, t2 : electrical
);
end entity resistor;
architecture simple of resistor is
 quantity v across t1 to t2;
 quantity i through t1 to t2;
begin
 v==i*R;
end architecture simple;
Can ayone please help me......