Sign in

username:

password:



Not a member?

Search Comp.Arch.FPGA



Search tips

fpga by Keywords

Altera | ASIC | CPLD | Cyclone | DCM | DDR | DSP | Ethernet | ISE | JTAG | Linux | LVDS | Microblaze | ML310 | Modelsim | NIOS | OPB | PCI | Quartus | RocketIO | SDRAM | Spartan | Spartan3 | SRAM | Stratix | Verilog | VHDL | Virtex | Virtex-4 | Virtex-II | Xilinx | XST


Ads

See Also

DSPEmbedded SystemsElectronics

Comp.Arch.FPGA | ISE Design Suite 11 will not evaluate 2's comp

There are 2 messages in this thread.

You are currently looking at messages 0 to 2.

ISE Design Suite 11 will not evaluate 2's comp - shannon - 2010-06-03 13:48:00

If anyone out there uses Xilinx ISE Design Suite
11, I need your help!!

According to this information 
[link]http://www.fpgarelated.com/usenet/fpga/show/662-1.php[/link]
ISE 11 should be running verilog 2001, however when I try to run thearithmetic shift ">>>" it does not populate 1's for negative numbers as
itshould.

Does anyone have any advice on how to correct this problem?	   
					
---------------------------------------		
Posted through http://www.FPGARelated.com



Re: ISE Design Suite 11 will not evaluate 2's comp - Gabor - 2010-06-03 15:47:00

On Jun 3, 1:48=A0pm, "shannon"
<sesilver@n_o_s_p_a_m.n_o_s_p_a_m.gmail.com> wrote:
> If anyone out there uses Xilinx ISE Design Suite 11, I need your help!!
>
> According to this information
> [link]http://www.fpgarelated.com/usenet/fpga/show/662-1.php[/link]
> ISE 11 should be running verilog 2001, however when I try to run the
> arithmetic shift ">>>" it does not populate 1's for negative
numbers as i=
t
> should.
>
> Does anyone have any advice on how to correct this problem? =A0 =A0 =A0 =
=A0
>
> --------------------------------------- =A0 =A0 =A0 =A0
> Posted throughhttp://www.FPGARelated.com

There was a thread on this topic in comp.lang.verilog

You can always work around the problem using >> like:
 reg [15:0] signed_vector;

. . .
  some_vector <=3D {16{signed_vector[15]},signed_vector} >> shift_val;
 (where shift_val is less than or equal to 16)
. . .

to copy the MSB as you shift right.  Did you check if
this was fixed in 12.1?

Regards,
Gabor
______________________________
Join the blogging team on FPGARelated.com and earn rewards! Details Here.