attributes in vhdl

Guest #1473509
Rate this post
useful
not useful
Your problems seems to be very urgent, as you even couldn't find the 
time to write a readable question :-)

Anyway, some attributes are supported for sythesis and others are not.
This is not a matter of including libraries or packages.

Tell us which attributes you would like to use and somebody can tell you 
if they are suitable or not.
The attributes 'stable or 'transaction, which you mentioned in another 
thread, are for testbenches only
OP (Company: CEET) #1473776
Rate this post
useful
not useful
thankx for all! i have very short time .here i place an example 
.attribute transactin and quiet are not supported by xilinx.i want to 
implement NMOS
transister.plz help me in this context. i m not getting the clear idea 
why some attributes  are not supported.

Entity test is
Port(B, C: in bit);
End test;
Architecture rtl of test is
Signal A, C_delayed5, A_trans:bit;
Signal A_stable5, A_quiet5: Boolean;
Begin
A <= B and C;
C_delayed5 <= C’delayed(5 ns);
A_trans <= A’transaction;
A_stable5 <= A’stable(5 ns);
A_quiet5 <= A’quiet (5 ns);
End rtl;
Guest #1473787
Rate this post
useful
not useful
> not supported by xilinx
> i want to implement NMOS transister
The Xilinx toolchain is designed for Xilinx FPGAs. Its not intended for 
ASIC design. You will never be able to synthesize a single transistor 
with this tools. So of course these attributes are not supported.

The only thing you can do with your code is simulation. But for this you 
should use a stand alone simulator (eg ModelSim), not a FPGA specific 
toolchain...
Guest #1473858
Rate this post
useful
not useful
> this simulation will not be supported by xilinx fpga
No simulation is supported by any FPGA.

Simulation is done in the simulator. This may be ModelSim or ISM or...
Of course in a Simulation you can use the attributes. But the only 
attribute supported for synthesis is 'EVENT for rising or falling edges 
of a clock signal.

So what do you want to do?
Do you want to target a FPGA?
Or do you "only" want to simulate your VHDL code?
OP (Company: CEET) #1473935
Rate this post
useful
not useful
thanks dear!
 initially  my task is to simulate the design on ise simulator and then 
implement on fpga i-e spartan 3 kit; what should i do!!xilinix 10.1 
version does not support this simulation .when i write code then error 
occurs,it will not simulate in test bench .vhdl?,thanks
Guest #1473995
Rate this post
useful
not useful
> my task is both simulation and implementation !!!
Keep in mind:
>> the only attribute supported for synthesis is 'EVENT
Then forget all other attributes for synthesis.

> what will be the solution!!
You are obviuosly on a wrong way. If you want to simulate a ROM then you 
should do it like all others all over the world are doing it. This is a 
ROM:
1
type ROM_type is array(0 to 7) of STD_LOGIC_VECTOR(7 downto 0);
2
signal ROM : ROM_type := {x"12", x"23", x"34", x"45", x"56", x"67", x"78", x"89");
You access it like this:
1
signal addr : STD_LOGIC_VECTOR(3 downto 0);
2
signal data : STD_LOGIC_VECTOR(7 downto 0);
3
:
4
   data <= ROM(to_integer(unsigned(addr)));



BTW:
It looks far more friendly when you don't use lots of exclamation marks 
at the end of a sentence.

BTW2:
> what will be the solution!!
This is a question. It should look like this:
> what will be the solution?

Reply

Please log in before posting.

or

Log in with Google account

Registration is free and takes only a minute.

Register now