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 are shadow registers and what is their purpose?

Status
Not open for further replies.

kaushikrvs

Member level 5
Joined
Jan 27, 2017
Messages
82
Helped
0
Reputation
0
Reaction score
0
Trophy points
6
Activity points
613
what are shadow registers and what is their purpose? it was asked earlier but the replies were not so clear.... Is it something like a masking register?
 

depends on the context. are we talking about razor-like techniques? so if the first register doesn't meet timing, the second one might be able to?
 

At least in my experience shadow registers are typically used where you need need to shadow (copy) a value that you have instant access to, which is otherwise stored in say a RAM that has to be accessed with a read enable, address, etc.

If it makes it easier it's kind of like a FF based cache of some other memory location.

There are a number of google results about shadow registers including an edaboard answer:
https://www.edaboard.com/threads/206090/

https://electronics.stackexchange.com/questions/86032/what-actually-is-a-shadow-register
 

Context is everything but....

1. for preparing data prior to using it when the bits of the data may not all be updated simultaneously. Typically used when outputting data only when all the bits are ready. For example, when bits in an output port are set by different routines in code and therefore at different times, writing directly to the port would result in it holding each intermediate step as the intended data was constructed and that could cause problems. Building the data in a shadow register until it is complete then transferring it to the port ensures all the bits change simultaneously.

2. during interrupt servicing where registers may be used for other purposes but have to be restored to their original values as the ISR finishes. The 'shadow' is copies of the register contents at the start of the ISR and they are copied back to their original locations before returning to the main program flow.


Brian.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top