Go Back   Home > Forums > Source & Line > Digital Source
Home Forums Rules Articles Store Gallery Blogs Register Donations FAQ Calendar Search Today's Posts Mark Forums Read

Digital Source Digital Players and Recorders: CD , SACD , Tape, Memory Card, etc.

Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Reply
 
Thread Tools Search this Thread
Old 14th November 2006, 05:38 PM   #1
diyAudio Member
 
Join Date: Sep 2005
Default VHDL and synthesizable models

I posted this question on an EDA board (because it's not exactly audio), but I had good luck with this forum, so here goes:

I am new to VHDL, and I understand that not all VHDL code examples are synthesizable into an actual working circuit. In my first project, my goal is to ultimately download the working code into a (cheap) FPGA just to get my hands dirty with the entire process.

Is there a list of commands that I should not use because they are not synthesizable? I don't exacly know how to pick out the commands that will result in a circuit, and the ones that are in VHDL simply to act as models (i.e. unsynthesizable). For instance, in my current code, I use lots of IF THEN statements, and I don't have a clock at all (do I need one, or can I make one using delay statements like "after"?).

Thank you!
-RT

P.S. I'm using quartus II free edition from Altera.
  Reply With Quote
Old 30th April 2007, 09:23 PM   #2
diyAudio Member
 
Join Date: Jul 2005
Location: NJ
RT,

This thread is a bit old, but I'll answer it in case you're still interested. The list of commands that are not synthesizeable can vary depending on the synthesis software you use. Some of the commands that you generally can't synthesize would be commands like 'wait' and some math commands. For example, the divide '/' may synthesize if it's a simple divider (power of 2) because it will result in a shift operation. Most synthesis engines will not make up a divider if you need something to be divided by '5'.

Regarding your if/then statements. These are no problem but will result in a priority decode if both cases are possible (i.e. the if will be checked before then). If the if/then conditions are mutually exclusive, then the resulting logic will be flattened.

You will need a clock.

-F
  Reply With Quote

Reply


Hide this!Advertise here!

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

BB 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
new Nirvana models freddi Full Range 50 14th March 2010 03:04 PM
Delta method for PWM in VHDL lorenaiulia Digital Source 1 30th April 2007 09:30 PM
help with models. bogdan_borko Solid State 7 11th November 2006 02:19 PM
mje models? bogdan_borko Solid State 2 29th May 2006 11:37 PM
transistor models ghammond Parts 0 26th May 2006 02:28 AM


New To Site? Need Help?

All times are GMT. The time now is 03:53 AM.

Page generated in 0.07647 seconds (76.99% PHP - 23.01% MySQL) with 10 queries

Copyright ©1999-2012 diyAudio