Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

bytes in a word? sram chip...

Status
Not open for further replies.

Marks256

New Member
I found a SRAM chip in one of my piles. I was just wondering how big it was (bytes? kb?)

it says that it is 8192 words x 8 bits, so how big would that be? I have heard different sizes for words, so i figure i would ask...

I have heard that a word is 2 bytes, 4 bytes, 8 bytes, 16 bytes, and even 32 bytes! Which one is it!?
 
Marks256 said:
I found a SRAM chip in one of my piles. I was just wondering how big it was (bytes? kb?)

it says that it is 8192 words x 8 bits, so how big would that be? I have heard different sizes for words, so i figure i would ask...

I have heard that a word is 2 bytes, 4 bytes, 8 bytes, 16 bytes, and even 32 bytes! Which one is it!?

I'm an antenna engineer, but I recall from my computer architecture course...

bit A binary digit: 0 or 1 byte 8 bits word 4 bytes = 32 bits so 8192 words =262144 bits

262144 bits x 8 bits =2097152 bits total. 2Mb of memory if i'm correct. but...I'm not really sure about the labeling. Those CE are bizzare folks.
 
So a word is 4 bytes? Ok.

Therefore it is a 32KB SRAM chip? (8192words * 4bytes_in_a_word = 32768 bytes. 32768bytes / 1024 = 32KB.) Then the chip is it is a 32kb x 8bit SRAM, right?
 
Marks256 said:
So a word is 4 bytes? Ok.

Therefore it is a 32KB SRAM chip? (8192words * 4bytes_in_a_word = 32768 bytes. 32768bytes / 1024 = 32KB.) Then the chip is it is a 32kb x 8bit SRAM, right?

That'd be my guess. What other info does it have? Maybe we can look it up.
 
I think the technical definition of a word is two bytes (that's what we learned in class when working the 68000). HOWEVER it seems to vary from chip to chip what is considered a word and sometimes it is 4.

EDIT:Yeah it varies.
https://en.wikipedia.org/wiki/Word_(computing)
 
Last edited:
Marks256 said:
I found a SRAM chip in one of my piles. I was just wondering how big it was (bytes? kb?)

it says that it is 8192 words x 8 bits, so how big would that be? I have heard different sizes for words, so i figure i would ask...

I have heard that a word is 2 bytes, 4 bytes, 8 bytes, 16 bytes, and even 32 bytes! Which one is it!?

Depends on the architecture. Different processors have different word lengths. Intel x86 used 16 bit words; MIPS and PowerPC used 32 bit words, etc. Some architectures have used variable-length words.

Does the chip have any other markings?


Torben
 
sorry guys, i was in a hurry and forgot to link to the datasheet.

komponenten.es.aau.dk/fileadmin/komponenten/Data_Sheet/Memory/HM6264.pdf


I checked wikipedia for an article on a word, but it never came up. How did you get that?
 
Marks256 said:
sorry guys, i was in a hurry and forgot to link to the datasheet.

komponenten.es.aau.dk/fileadmin/komponenten/Data_Sheet/Memory/HM6264.pdf

I've never used one, but I'd read that to mean it can store 8192 8-bit words, which would also match the 256 X 256 bit storage array shown in the block diagram.

I checked wikipedia for an article on a word, but it never came up. How did you get that?

I never use Wikipedia's search engine; I just type "<search term> wikipedia" into my Google box in Firefox. If I put in "word length wikipedia" it comes right up. Just putting in "word wikipedia" isn't too helpful though. Sometimes it takes a couple of tries to find terms which work well.


Torben
 
Mark,

Your memory chip is a 64k (actually 65,536) bit chip. It is arranged as 8K x 8. So, it should have 8 data pins and 12 address pins. If you connected it to a 16 bit processor then you would gain 4k words of memory. Connect it to a 32 bit one and you would add 2K words etc.

Mike.
 
I typed in something like "byte word" or "computer word" or "data word". Gotta be specific!
 
I looked up "Byte", "Bit", "Nibble", "Binary Number System", and the like, but none the the pages had "Word" as a "See also". I also did the disambiguation of "word", but nothing came up for "computer word"...

Oh well. I now know what i need to know for the moment... :)
 
Marks256 said:
I looked up "Byte", "Bit", "Nibble", "Binary Number System", and the like, but none the the pages had "Word" as a "See also". I also did the disambiguation of "word", but nothing came up for "computer word"...

Oh well. I now know what i need to know for the moment... :)
https://en.wikipedia.org/wiki/Word_%28computing%29
I found it in the "See Also" section of the Wikipedia Byte entry, near the bottom of the page.
I agree with Pommie.
 
'Generally' it goes like this:

Bit (one bit)
Byte (8 bits)
Word (16 bits - two bytes)
Longword (32 bits - four bytes)

Basically it comes from the fact that microprocessors tended to be 8 bit, then 16, then 32.

But you really have to UNDERSTAND what you're dealing with, for example a 'word' in a PIC 16F chip is only 14 bits - because that's actually the width of the memory, and some of the lower (and older chips) are only 12 bit.
 
Nigel Goodwin said:
Bit (one bit)
Byte (8 bits)
Word (16 bits - two bytes)
Longword (32 bits - four bytes)
Actually, I think that comes from the x86 platform.

In x86 assembly there are bytes, words (16-bit), double words (32-bit) and quadruple words (64-bit).

So it's true, because most CPUs these days are x86, that's normally the case and PICs are a totally different ball game.
 
Hero999 said:
Actually, I think that comes from the x86 platform.

In x86 assembly there are bytes, words (16-bit), double words (32-bit) and quadruple words (64-bit).

So it's true, because most CPUs these days are x86, that's normally the case and PICs are a totally different ball game.

No, it comes from pretty well any microprocessor (not just x86, which were pretty late comers) - the majority of which were 8 bit, but even 16 and 32 bit ones use the same, because they still handle a lot of data as 8 bit.

Going back before microprocessors, Octal was common instead of binary, because of the 'word' sizes used - but with the advent of 8 bit microprocessors Octal 'disappeared' and Hexadecimal took it's place, as much more suitable for the 8 bit data bus and 16 address bus that was common.
 
I generally associate the word size of a machine, with a Princeton architecture, with the width of the ALU pathway. This has an effect on the width of the pathway to and from memory. Prior to the existance of semiconductor memories word sizes that were not a multiple of 8 were common.

In a machine with a Harvard architecture, like the PIC, the definition of word size has at least two obvious answers. Most technical people are comfortable with with using the width of the ALU data path.

Marketing types, given a choice, will use the largest plausible number which in the case of the PIC would be the size of the instruction word.
 
So is it agreed upon that it is a 64k sram?
 
Marks256 said:
So is it agreed upon that it is a 64k sram?

Yes, although I think it makes far more sense to consider it an 8k one, as you don't use bits of memory, you use bytes - you could use 8 of those to give you a full 64K on your Z80! :p
 
MicroComputer: In Z80 terms it's an 8K SRAM. Your Z80 can address a total of 64K bytes total.

MicroController: EEPROMs (SPI & I2C) are generally referred to by total bits 1M = 64K bytes or 32K words BUT most microcontroller ROM / RAM are rated by bytes still.
Blame the marketing people.
 
Status
Not open for further replies.

New Articles From Microcontroller Tips

Back
Top