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

Reply

VHDL - Different logic?

 
Thread Tools Search this Thread
Old 11-04-2004, 07:07 PM   #1
Default Different logic?


Please see the processes below. Are they equivalent in logic? If not, why not?
The synthesis tool is giving me different interpretations. Thank you very much!

Process #1:
P_WR_EN : process (TCM_NR_INS)
begin
if (TCM_NR_INS = "11111") then
RAM_WR_EN <= '0';
elsif (TCM_NR_INS(1 downto 0) /= "00") then
RAM_WR_EN <= '0';
else
RAM_WR_EN <= '1';
end if;
end process P_WR_EN;

Process #2:
P_WR_EN : process (TCM_NR_INS)
begin
if (TCM_NR_INS /= "11111") then
if (TCM_NR_INS(1 downto 0) = "00") then
RAM_WR_EN <= '1';
else
RAM_WR_EN <= '0';
end if;
else
RAM_WR_EN <= '0';
end if;
end process P_WR_EN;

- Paulo Valentim


Paulo Valentim
  Reply With Quote
Old 11-04-2004, 07:22 PM   #2
mike_treseler
 
Posts: n/a
Default Re: Different logic?
Consider running a simulation to verify that
the descriptions are equivalent.

-- Mike Treseler



mike_treseler
  Reply With Quote
Old 11-04-2004, 07:30 PM   #3
Pieter Hulshoff
 
Posts: n/a
Default Re: Different logic?
Paulo Valentim wrote:
> Please see the processes below. Are they equivalent in logic? If not, why
> not? The synthesis tool is giving me different interpretations. Thank you
> very much!


Logically, they seem similar. If you use multi level logic though (including
'Z', 'H', 'L', etc.) they will not behave 100% the same. I'm sure synthesis
will come up with different circuits, but it's likely that formal
verification would show these two as equivalent.

Regards,

Pieter Hulshoff



Pieter Hulshoff
  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

Similar Threads
Thread Thread Starter Forum Replies Last Post
2007/11/29 Boris 7 new programs, Logic Studio 8 for Mac, MicrosoftVisual Studio 2008 Professional Edition, Microsoft Windows Vista UltimateNov-2007.Win32/64, other new programs ola@mail.gr DVD Video 0 11-29-2007 06:15 AM
Pro Logic II or DTS Neo 6? Harsol DVD Video 2 01-03-2005 02:08 PM
A+ Test is unfair Scott Davies A+ Certification 25 02-16-2004 03:18 PM
Re: Landing on the Moon Abraxas DVD Video 14 12-12-2003 01:55 AM
Indiana Jones: Moved up to Oct. 21. Scot Gardner DVD Video 1 08-12-2003 07:27 PM




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