want a vhdl code for this logic

Status
Not open for further replies.

aapatel374

Member level 1
Joined
Mar 19, 2009
Messages
38
Helped
6
Reputation
12
Reaction score
1
Trophy points
1,288
Location
india
Activity points
1,445
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.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…