imbichie
Full Member level 6
- Joined
- Jul 30, 2010
- Messages
- 381
- Helped
- 55
- Reputation
- 110
- Reaction score
- 54
- Trophy points
- 1,308
- Activity points
- 3,580
Hi All,
Can we use the real expression after WAIT FOR in VHDL.
For example,
...
signal delay : real;
...
delay <= 2.5;
...
process
begin
clk <= '1';
WAIT FOR delay;
clk <= '0';
WAIT FOR delay;
end process;
But when i am compiling the above expression i am getting error with Cadence NcSim saying that expecting an expression of type TIME.
When i googled i got one ebook from google book Digital System Design With Vhdl, here they are using the real type after the WAIT FOR.
ref : https://books.google.co.in/books?id...=y#v=onepage&q=ram memory in vhdl ams&f=false
Please anyone clarify this ?
Can we use the real expression after WAIT FOR in VHDL.
For example,
...
signal delay : real;
...
delay <= 2.5;
...
process
begin
clk <= '1';
WAIT FOR delay;
clk <= '0';
WAIT FOR delay;
end process;
But when i am compiling the above expression i am getting error with Cadence NcSim saying that expecting an expression of type TIME.
When i googled i got one ebook from google book Digital System Design With Vhdl, here they are using the real type after the WAIT FOR.
ref : https://books.google.co.in/books?id...=y#v=onepage&q=ram memory in vhdl ams&f=false
Please anyone clarify this ?