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 01-17-2007, 03:58 PM
Rama
Guest
 
Posts: n/a
Default synthesis equivalent statement/code/suggestions ?


Hello,

I have this quesiton - on writing a synthesis equivalent code -

Question on how to write a synthesis equivalent code in VHDL for the
below code -

Counter is a synchronous with Clock and has a synchro. reset inside.

************************************************** *******************************
signal CNT_OUT : unsigned ( 9 downto 0 );

begin

counter_dut : count1 ( clk => CLK,
reset => reset,
cntout => CNT_OUT );

---- this statement is what my question is about really
-- How does the synthesis engine interpret this statement.
-- is it okay to give a decimal integer value here on the right side of
the comparison ?


MISER_PLL_RESETN <= '1' when (CNT_OUT >= 50 and CNT_OUT <= 100) else

'0' ;

Appreciate any help / suggestions on this. Thanks.

Regards,
Rama

Reply With Quote
  #2 (permalink)  
Old 01-19-2007, 04:57 PM
mysticlol
Guest
 
Posts: n/a
Default Re: synthesis equivalent statement/code/suggestions ?

use to_integer() or conv_integer()

Regards,
JK

On Jan 17, 8:58 pm, "Rama" <[email protected]> wrote:
> Hello,
>
> I have this quesiton - on writing a synthesis equivalent code -
>
> Question on how to write a synthesis equivalent code in VHDL for the
> below code -
>
> Counter is a synchronous with Clock and has a synchro. reset inside.
>
> ************************************************** *******************************
> signal CNT_OUT : unsigned ( 9 downto 0 );
>
> begin
>
> counter_dut : count1 ( clk => CLK,
> reset => reset,
> cntout => CNT_OUT );
>
> ---- this statement is what my question is about really
> -- How does the synthesis engine interpret this statement.
> -- is it okay to give a decimal integer value here on the right side of
> the comparison ?
>
> MISER_PLL_RESETN <= '1' when (CNT_OUT >= 50 and CNT_OUT <= 100) else
>
> '0' ;
>
> Appreciate any help / suggestions on this. Thanks.
>
> Regards,
> Rama


Reply With Quote
Reply

Bookmarks


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
Synthesis of 'task' statement with incomplete conditions dmitriym Verilog 10 03-06-2007 12:05 AM
Is this Code synthesizable and any suggestions Rama VHDL 7 01-18-2007 03:39 AM
Using REPORT statement during synthesis xipn VHDL 5 10-27-2006 09:16 AM
Coding style, wait statement, sensitivity list and synthesis. AG VHDL 45 01-06-2006 09:02 PM
break statement functionality in non-blocking verilog code newsreader Verilog 3 05-21-2004 04:09 PM


All times are GMT +1. The time now is 12:03 PM.


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