![]() |
|
|
|||||||
![]() |
VHDL - a unsupported feature error problem for help |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
hi all:
i have been trapped for a VHDL problem. it look like very simple, but i really can't fix it. please give me a hand. the problem is: i want a process wait a constant period about 100000ns. i write " wait for 100000ns; " but it give me error like, " unsupported feature error: condition clause and timeout clause together in a wait statment is not support " my whole code is: LIBRARY ieee; use ieee.std_logic_1164.all; use ieee.std_logic_unsigned.all; use ieee.std_logic_arith.all; ENTITY decode1 IS PORT( clk, hold, data0, data1 : in std_logic; UID : OUT STD_LOGIC; BIT0_STATE : OUT STD_LOGIC; BIT25_STATE : OUT STD_LOGIC); END decode1; ARCHITECTURE a OF decode1 IS BEGIN PROCESS(clk) BEGIN if hold = '0' then if (clk'event and clk='0') then if data0 = '0' then BIT0_STATE <= '0'; elsif data1 = '0' then BIT0_STATE <= '1'; end if; end if; end if; end process; PROCESS(clk) BEGIN if hold = '0' then wait for 100000 ns; if (clk'event and clk='0') then if data0 = '0' then uid <= '0'; elsif data1 = '0' then uid <= '1'; end if; end if; end if; end process; PROCESS(clk) BEGIN if hold = '0' then wait for 8400000 ns; if (clk'event and clk='0') then if data0 = '0' then BIT25_STATE <= '0'; elsif data1 = '0' then BIT25_STATE <= '1'; end if; end if; end if; end process; END a; ariesxyg@yahoo.com.cn |
|
|
|
|
#2 |
|
Posts: n/a
|
writes:
> " wait for 100000ns; " > but it give me error like, > " unsupported feature error: condition clause and timeout clause > together in a wait statment is not support " > > [...] > > PROCESS(clk) > > BEGIN > if hold = '0' then > wait for 100000 ns; > if (clk'event and clk='0') then > if data0 = '0' then uid <= '0'; > elsif data1 = '0' then uid <= '1'; > end if; > end if; > end if; > end process; You cannot have a wait statement in a process with sensitivity list. -- Marcus Marcus Harnisch |
|
|
|
#3 |
|
Posts: n/a
|
wrote:
> hi all: > i have been trapped for a VHDL problem. > it look like very simple, but i really can't fix it. please give me a > hand. > the problem is: i want a process wait a constant period about 100000ns. > i write > " wait for 100000ns; " > but it give me error like, > " unsupported feature error: condition clause and timeout clause > together in a wait statment is not support " > > my whole code is: > > LIBRARY ieee; > use ieee.std_logic_1164.all; > use ieee.std_logic_unsigned.all; > use ieee.std_logic_arith.all; > > ENTITY decode1 IS > PORT( > clk, hold, data0, data1 : in std_logic; > UID : OUT STD_LOGIC; > BIT0_STATE : OUT STD_LOGIC; > BIT25_STATE : OUT STD_LOGIC); > END decode1; > > ARCHITECTURE a OF decode1 IS > > BEGIN > > PROCESS(clk) > BEGIN > if hold = '0' then > if (clk'event and clk='0') then > if data0 = '0' then BIT0_STATE <= '0'; > elsif data1 = '0' then BIT0_STATE <= '1'; > end if; > end if; > end if; > end process; > > PROCESS(clk) > > BEGIN > if hold = '0' then > wait for 100000 ns; > if (clk'event and clk='0') then > if data0 = '0' then uid <= '0'; > elsif data1 = '0' then uid <= '1'; > end if; > end if; > end if; > end process; > > PROCESS(clk) > > BEGIN > if hold = '0' then > wait for 8400000 ns; > if (clk'event and clk='0') then > if data0 = '0' then BIT25_STATE <= '0'; > elsif data1 = '0' then BIT25_STATE <= '1'; > end if; > end if; > end if; > end process; > END a; "i want a process to wait a constant period about 100000ns" While "WAIT FOR some_time_period" will work for simulation, it will not be synthesized into hardware. You will need a clock and a counter. HTH -Dave Pollum Dave Pollum |
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| The Wizard of Speed and Time | Clare Quilty | DVD Video | 11 | 12-22-2007 10:09 AM |
| dvd position memory feature - yamaha dvx-s120 | SS | DVD Video | 6 | 02-18-2004 04:36 AM |
| MGM Horror DVD Double Feature Reviews @ GENRE ONLINE.NET! | Writer R5 | DVD Video | 1 | 10-07-2003 03:24 AM |
| New Releases: Dilbert, Law&Order, Vacation: Updated complete downloadable R1 DVD DVB & info lists | Doug MacLean | DVD Video | 1 | 07-24-2003 04:17 PM |
| New Releases: Paramount Discount, Fox Theme Packs: Updated complete downloadable R1 DVD DB & info lists | Doug MacLean | DVD Video | 0 | 07-22-2003 05:33 AM |