C Puzzles

yet another place for C puzzles

Friday, February 16, 2007

 

a minor memory issue

Q. we have identified a problem in our hardware memory.


|<--------------32-bit---------->|

+--------------------------------+
| A |
+--------------------------------+
| B |
+--------------------------------+
| C |
+--------------------------------+
| D |
+--------------------------------+
| E |
+--------------------------------+
| F |
+--------------------------------+

Whenever we give instruction to write something to A it writes to B. and vice versa.

it occurs in a similar pattern for rest of the memory. like C to D, D to C, E to F, F to E, and so on.

write a workaround(in a single line).

Comments:
XOR the address with 4 for memory access?
 
Post a Comment

Subscribe to Post Comments [Atom]





<< Home

Archives

July 2005   August 2005   October 2005   December 2005   March 2006   June 2006   July 2006   December 2006   February 2007   June 2007   March 2010   May 2010  

This page is powered by Blogger. Isn't yours?

Subscribe to Posts [Atom]