What's the operation of SRA in VHDL?

Status
Not open for further replies.

triump.ar

Junior Member level 2
Joined
Dec 9, 2007
Messages
24
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,440
is there anyone who can explain me the operation of sra in vhdl.....its better if u will explain it with the help of example..thanx
 

Re: sra

what is sra?
 

Re: sra

shift right arithematic
 

Re: sra

Shifts register sX right by one place injecting the value of the carry flag

Added after 4 minutes:

SR0, SR1, SRX, SRA, RR of the shift and rotate group 358 all modify the contents of a single register sX to the right. SL0, SL1, SLX, SLA, RL all modify the contents of a single register sX to the left. These instructions effect the flags.

SR0/SL0—Shifts register sX right/left by one place injecting "0".

SR1/SL1—Shifts register sX right/left by one place injecting "1".

SRX/SLX—Shifts register sX right/left by one place injecting MSB/LSB.

SRA/SLA—Shifts register sX right/left by one place injecting the value of the carry flag.

RR/RL—Rotates register sX right/left by one place injecting LSB/MSB.
 

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