Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic 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.

Register Log in

Why 32 bit double word is read at addresses divisible by 4?

Status
Not open for further replies.

rectifier

Member level 5
Joined
Jun 4, 2005
Messages
90
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,288
Activity points
1,905
ADDRESSES DIVISIBLE BY 4

WHY IS IT NECESSARY THAT A 32 BIT DOUBLE WORD IS READ AT THE ADDRESSES DIVISIBLE BY 4?
 

techie

Advanced Member level 3
Joined
Feb 5, 2002
Messages
839
Helped
58
Reputation
116
Reaction score
9
Trophy points
1,298
Location
Pakistan
Activity points
7,799
ADDRESSES DIVISIBLE BY 4

because 32 bits take 4 bytes
 

echo47

Advanced Member level 5
Joined
Apr 7, 2002
Messages
3,942
Helped
636
Reputation
1,270
Reaction score
88
Trophy points
1,328
Location
USA
Activity points
33,183
ADDRESSES DIVISIBLE BY 4

Some processors (example Pentium) allow misaligned memory access, but performance usually suffers because it requires multiple memory accesses instead of just one.

Some processors (example Motorola 68000) don't allow it at all, and will trigger an exception (your program will crash).
 

rectifier

Member level 5
Joined
Jun 4, 2005
Messages
90
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,288
Activity points
1,905
Re: ADDRESSES DIVISIBLE BY 4

THANKS FOR THE HELP BUT COULD YOU PROVIDE MORE DETAILS TECHNO...
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top