Reply by Paul Burke July 26, 20072007-07-26
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
Reply by Harry July 26, 20072007-07-26
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.
Reply by Bob July 25, 20072007-07-25
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
Reply by Chris Hills July 25, 20072007-07-25
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 \/\/\ \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
Reply by Ali July 25, 20072007-07-25
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
Reply by Jim Stewart July 25, 20072007-07-25
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!! :-)
Reply by Chris Hills July 25, 20072007-07-25
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 \/\/\ \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
Reply by Vladimir Vassilevsky July 25, 20072007-07-25

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
Reply by Grant Edwards July 25, 20072007-07-25
On 2007-07-25, Harry <gehariprasath@gmail.com> wrote:

>>>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 to tell it. Or not -- it may already know.
>> Homework? >> >> You will not get any help here unless you show your attempt to >> solve the problem
> If you know you can reply or else just shut up!
Well, that's certainly not going to help. -- Grant Edwards grante Yow! I'm definitely not at in Omaha! visi.com
Reply by Tim Wescott July 25, 20072007-07-25
On Wed, 25 Jul 2007 04:32:20 -0700, Harry wrote:

> On Jul 25, 2:43 pm, Chris Hills <ch...@phaedsys.org> wrote: >> In article <1185355115.509566.232...@z24g2000prh.googlegroups.com>, >> Harry <geharipras...@gmail.com> writes >> >> >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? >> >> Homework? >> >> You will not get any help here unless you show your attempt to solve the >> problem >> >> -- >> \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ >> \/\/\/\/\ Chris Hills Staffs England /\/\/\/\/ >> /\/\/ ch...@phaedsys.org www.phaedsys.org\/\/\ >> \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ > > If you know you can reply or else just shut up!
If you want to get short shrift on a professional newsgroup, the best way is to pose a problem that's phrased just exactly like a homework problem. The second best way is to be rude to people who do normally accepted newsgroup things, like telling you they won't do your homework. Those of us that are professionals don't want to work with or for people who got their degrees fraudulently. Those of us who are students don't want to compete for grades with people who do so fraudulently. If it's _not_ homework, then say so, and back it up with a comment on your situation. Most of us will be understanding. -- Tim Wescott Control systems and communications consulting http://www.wescottdesign.com Need to learn how to apply control theory in your embedded system? "Applied Control Theory for Embedded Systems" by Tim Wescott Elsevier/Newnes, http://www.wescottdesign.com/actfes/actfes.html