EmbeddedRelated.com
Forums

Microprocessor question

Started by Harry July 25, 2007
In article <cBJpi.30208$C96.15085@newssvr23.news.prodigy.net>, Vladimir 
Vassilevsky <antispam_bogus@hotmail.com> writes
> > >Harry wrote: >> Assume that we have a 16-bit processor which is interfaced to memory >> of 32-bits wide(word length). >> The processor has to perform two read/write operations when it >>wants >> to read/write data respectively.How does it know the word length of >> memory it is interfaced to? > >You have two legs. Car has four wheels. How do you manage to drive the car?
Call a Taxi? PS if you know say so else shut up! :-) -- \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ \/\/\/\/\ Chris Hills Staffs England /\/\/\/\/ /\/\/ chris@phaedsys.org www.phaedsys.org \/\/\ \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
Chris Hills wrote:
> In article <cBJpi.30208$C96.15085@newssvr23.news.prodigy.net>, Vladimir > Vassilevsky <antispam_bogus@hotmail.com> writes >> >> >> Harry wrote: >>> Assume that we have a 16-bit processor which is interfaced to memory >>> of 32-bits wide(word length). >>> The processor has to perform two read/write operations when it wants >>> to read/write data respectively.How does it know the word length of >>> memory it is interfaced to? >> >> You have two legs. Car has four wheels. How do you manage to drive the >> car? > > Call a Taxi? > > PS if you know say so else shut up! :-)
No, you shut up!! :-)
On Jul 25, 11:00 pm, Vladimir Vassilevsky <antispam_bo...@hotmail.com>
wrote:
> Harry wrote: > > Assume that we have a 16-bit processor which is interfaced to memory > > of 32-bits wide(word length). > > > The processor has to perform two read/write operations when it wants > > to read/write data respectively.How does it know the word length of > > memory it is interfaced to? > > You have two legs. Car has four wheels. How do you manage to drive the car? > > VLV
I don't know! Maybe I've to be bit polite so 2to4 just might work out of blues. ali
In article <KM6dnbHgAJcjDTrbnZ2dnUVZ_vninZ2d@omsoft.com>, Jim Stewart 
<jstewart@jkmicro.com> writes
>Chris Hills wrote: >> In article <cBJpi.30208$C96.15085@newssvr23.news.prodigy.net>, >>Vladimir Vassilevsky <antispam_bogus@hotmail.com> writes >>> >>> >>> Harry wrote: >>>> Assume that we have a 16-bit processor which is interfaced to memory >>>> of 32-bits wide(word length). >>>> The processor has to perform two read/write operations when it wants >>>> to read/write data respectively.How does it know the word length of >>>> memory it is interfaced to? >>> >>> You have two legs. Car has four wheels. How do you manage to drive >>>the car? >> Call a Taxi? >> PS if you know say so else shut up! :-) > >No, you shut up!! :-)
I said it first! :-) (Don't you just love intellectual conversations :-) -- \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ \/\/\/\/\ Chris Hills Staffs England /\/\/\/\/ /\/\/ chris@phaedsys.org www.phaedsys.org \/\/\ \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
On Jul 25, 8:00 am, Vladimir Vassilevsky <antispam_bo...@hotmail.com>
wrote:
> Harry wrote: > > Assume that we have a 16-bit processor which is interfaced to memory > > of 32-bits wide(word length). > > > The processor has to perform two read/write operations when it wants > > to read/write data respectively.How does it know the word length of > > memory it is interfaced to? > > You have two legs. Car has four wheels. How do you manage to drive the car? > > VLV
Bi-quad filter? Bob
On Jul 26, 2:26 am, Bob <StephensDigi...@gmail.com> wrote:
> On Jul 25, 8:00 am, Vladimir Vassilevsky <antispam_bo...@hotmail.com> > wrote: > > > Harry wrote: > > > Assume that we have a 16-bit processor which is interfaced to memory > > > of 32-bits wide(word length). > > > > The processor has to perform two read/write operations when it wants > > > to read/write data respectively.How does it know the word length of > > > memory it is interfaced to? > > > You have two legs. Car has four wheels. How do you manage to drive the car? > > > VLV > > Bi-quad filter? > > Bob
I had to use that statement because why you think that it is a home work or even if it is a home work why don't you people help even though i am not a student. Anyways I appologize to everyone for behaving so rude........I am so sorry. It's just a discussion and it.s not a homw work or interview question as you all think.
Harry wrote:

>>>> Assume that we have a 16-bit processor which is interfaced to memory >>>> of 32-bits wide(word length...How does it know the word length of >>>> memory it is interfaced to? > > It's just a discussion and it.s not a homw work or interview question > as you all think.
Look up the instruction set for the processor. You'll find it has instructions something like mov.b, mov.w etc., and maybe mov.l for 8 bit, 16 bit and 32 bit accesses. So the programmer decides what word length to use, while the hardware decides the 16 bit (and maybe the 32 bit) byte order. If it hasn't got long operators, you are free to choose how you access the 32 bits. But probably the compiler (which has a good memory for object sizes) will choose for you. This was an issue in the old days when we designed with 68000s. That had a 16 bit data bus, with no steering logic to make 8 bit accesses all appear on the lower half of the bus. I knew of at least one STE bus (that shows how long ago it was) 68000 CPU board that could only access odd (or was it even?) addresses through the bus. Paul Burke