FPGA Central - World's 1st FPGA / CPLD Portal

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > VHDL

VHDL comp.lang.vhdl newsgroup / Usenet

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-23-2003, 12:29 PM
praveen
Guest
 
Posts: n/a
Default MOD function synthesis

Hi folks,

could any one suggest me what is the hardware taken for
implementing a MOD function in VHDL.

rgds,
praveen
Reply With Quote
  #2 (permalink)  
Old 09-24-2003, 01:45 AM
Allan Herriman
Guest
 
Posts: n/a
Default Re: MOD function synthesis

On 23 Sep 2003 04:29:09 -0700, [email protected] (praveen) wrote:

>Hi folks,
>
> could any one suggest me what is the hardware taken for
>implementing a MOD function in VHDL.


a <= b mod c

If c is a power of 2 (= 2 ** N), a will get the lower N bits of b,
with the upper bits zeroed.
IOW, there is no logic generated, just connections.

Most synthesis tools will issue an error if c is not static, or not a
power of 2.

Regards,
Allan.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
exp(-x) function andpaoli FPGA 4 04-05-2005 01:17 AM
Re: Exponential Function Ray Andraka FPGA 0 06-23-2004 09:00 PM
What is the difference between task and function in synthesis? Lee Verilog 0 06-09-2004 11:15 PM
SOS! newbie question about synthesizable VHDL : synthesis run successfully but post-synthesis failed... walala VHDL 4 09-09-2003 09:41 AM
function declaration help Greg Dunn VHDL 2 08-17-2003 07:13 AM


All times are GMT +1. The time now is 04:46 PM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright 2008 @ FPGA Central. All rights reserved