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

Reply

VHDL - Configurable hardware thro' VHDL

 
Thread Tools Search this Thread
Old 08-13-2003, 02:33 PM   #1
Default Configurable hardware thro' VHDL


Hi Friends,

Suppose my VHDL design has different functional modes and separate
hardware logic for each modes. I have a enum type defined and
each mode is represented by an enum literal.

Something like,
type operMode is (mode1, mode2, mode3, mode4) ;

Now the design is targeted towards different application and each
application has a subset of the operating modes. I want to keep
my VHDL code common and generate different hardwares for different
application. One possible way is to use constants and perform
conditional compilation.

My design has lot of constructs as follows

case FuncMode is -- FuncMode variable of type operMode

when mode1 =>
< logic for 1 > -- combinational logic
when mode2 =>
< logic for 2 >
when mode3 =>
< logic for 3 >
when mode4 =>
< logic for 4 >
end case ;

Say target application 1 supports only mode1 and mode2. To remove
h/w logic specific to mode3 and mode4 we can use constants like

if (Target_Appl2 = true) then -- boolean type constant
Target_Appl2 will be
< logic for 3 > -- false during Target Appl 1
< logic for 4 > -- Separate constants defined for
Target Appl 1
end if ;

But in this way I have to write this constant qualifiers with if
statements
in lot of places in the code. I am trying for better solution which
is more
cryptic (if possible).

Basicaly I'm trying to use the knowledge that some modes are not
possible
for particular target application(this is static, not dynamic). So
if I use some constants during assignment of FuncMode such that some
modes are not at all possible, will the logic for this modes be
optimised by the tool automaticaly (i.e. without writing the if as
mentioned before) ?

Pls suggest if there is a better and efficient way to do this.

Dutta


dutta
  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
How to execute an external software from VHDL? And how to interface VHDL with JAVA? becool_nikks Software 0 03-06-2009 07:08 PM
Juniper hardware license ipmiracle Hardware 0 01-23-2008 03:08 PM
Help on auto conversion from Matlab to vhdl on filter design hardheart Hardware 0 12-07-2007 09:19 AM
ARRAY(n DOWNTO 0) OF STD_LOGIC_VECTOR(m DOWNTO 0) - VHDL freitass Hardware 0 11-01-2007 03:44 PM
High Definition and the future of viewing. Allan DVD Video 3 03-09-2005 12:56 AM




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