Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics 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.

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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top