Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
Avisos
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

Need A Vhdl Code

Altera_Forum
Colaborador Distinguido II
926 Vistas

hi, i want a vhdl code for following logic.  

i have 20 signed numbers,like.  

-2 -2 0 0 0 0 -2 -2 0 0 0 0 2 2 0 0 0 0 2 2  

1) i want to put them in group of 4 numbers like,  

-2-200 00-2-2 0000 2200 0022  

2)i want sum of that all each group internally like  

-2+-2+0+0 = -4  

0+0+-2+-2= -4  

0+0+0+0=0  

2+2+0+0=4  

0+0+2+2=4  

3) i want put this answers in seperate memory  

like,  

-4 -4 0 4 4  

last i want this signed vector in memory.  

 

can anyone help me?  

 

thank u. 

 

regards, 

AAP
0 kudos
0 Respuestas
Responder