Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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

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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top