Go Back   Velocity Reviews > Newsgroups > VHDL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

VHDL - New keyword 'OIF' and its implications

 
Thread Tools Search this Thread
Old 09-07-2007, 04:42 PM   #1
Default New keyword 'OIF' and its implications


Hi,
1. Based on the previous very benefitial discussions and my
observation on the topics, I decide to recant the following claim:
Whatever assertion onehot0() can do, 'orif' can do better.

2. In place of the above claim, I claim the following new one:
Whatever assertion onehot() can do, it can do better working together
with new keyword 'OIF'.

3. Rolin has indicated that orif has been used in 2006 version.

4. The following simplest example show why point 2 is justified. The
more equations, the more complicated added statements distributed over
the full entity to transfer the information to VHDL compiler.

METHOD 1:
if(TWindowLoad_E0_L_H and nC_BE_R0(3) = '0') then
TWindow_3(10 downto <= AD_R0(26 downto 24);


OIF(TWindowLoad_E0_H_H and nC_BE_R0(7) = '0') then
TWindow_3(10 downto <= AD_R0(58 downto 56);
end if;


METHOD 2: current VHDL-2006.

signal B2 : unsigned(1 downto 0);

B2(0) <= '1' when TWindowLoad_E0_L_H and nC_BE_R0(3) = '0' else '0';

B2(1) <= '1' when TWindowLoad_E0_H_H and nC_BE_R0(7) = '0' else '0';

assertion onehot0(B2);

if(B2(0) = '1') then
TWindow_3(10 downto <= AD_R0(26 downto 24);

orif(B2(1) = '1') then
TWindow_3(10 downto <= AD_R0(58 downto 56);
end if;

5. Thank you everone who paticipates on the topics.

Weng



Weng Tianxiang
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46