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.

How to concatenate 8Bit binary EEPROM files to get a 32Bit binary file.

Mehdi1357

Member level 2
Joined
Jan 18, 2008
Messages
47
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,286
Location
the Earth
Activity points
1,651
Hi
I am working on a reverse engineering project based on the MC68020 Motorola 32Bit processor. The program is stored in 4x8Bit EEPROM as the instruction memory. However, my EEPROMs only have 8bits data output, but I want my instructions to be 32bits long.

How can I combine these four binary files horizontally to get a 32-bit binary file?
Do you know any trusted tools or software?
 

KlausST

Super Moderator
Staff member
Joined
Apr 17, 2014
Messages
19,284
Helped
4,272
Reputation
8,547
Reaction score
4,236
Trophy points
1,393
Activity points
127,990
Hi,

Just to confirm: You have 4 EEPROM ICs each with n x 8 bit data memory?
You have the EEPROMs or do you have files?

If I remember right, then there was a software (GUI) option to choose which byte (significance) to program into the EEPROM.
I guess there was an according way back.
So what programmer and what programming software do you use?

Klaus
 

Mehdi1357

Member level 2
Joined
Jan 18, 2008
Messages
47
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,286
Location
the Earth
Activity points
1,651
Hi,

Just to confirm: You have 4 EEPROM ICs each with n x 8 bit data memory?
You have the EEPROMs or do you have files?
Klaus

I have 4 binary files read backed from EEPROMs.
I used "XELTEK SUPERPRO 3000U" programmer to read back EEPROMs, but I did not find any option or tools to merge horizontally these files.
 

dick_freebird

Advanced Member level 5
Joined
Mar 4, 2008
Messages
7,199
Helped
2,114
Reputation
4,232
Reaction score
1,963
Trophy points
1,393
Location
USA
Activity points
57,751
You might find it easier to use 2^Nx8 PROMs
in parallel, just like the data is? I had a hard
time finding fast, wide, deep EPROMs last I
looked, and x8 made the most sense at the
next level assembly. Just put 4 in parallel
across the address field, and arrange
outputs in byte-weight-order?

Now if you needed the output as x1 serial,
that wouldn't play so well (without some
added serializer). But think about how to
best slice the bologna.
 

ZASto

Advanced Member level 3
Joined
Jan 9, 2008
Messages
768
Helped
149
Reputation
303
Reaction score
137
Trophy points
1,323
Location
Messy Corner, 44°47'31.56"N, 20°28'9.16"E
Activity points
5,238
Dick, you missed a point.
OP wants to combine 4 binary files into one, not with concatenation (one after the other). Concatenation can easily be done in CMD:
Code:
copy /b File1.bin+File2.bin+File3.bin+File4.bin File32bit.bin
As I understood from OP's first post, 32-bit file should be something like this:
Code:
Byte(0) from File1.bin, Byte(0) from File2.bin, Byte(0) from File3.bin, Byte(0) from File4.bin
.
.
.
Byte(EOF-1) from File1.bin, Byte(EOF-1) from File2.bin, Byte(EOF-1) from File3.bin, Byte(EOF-1) from File4.bin
 

betwixt

Super Moderator
Staff member
Joined
Jul 4, 2009
Messages
14,823
Helped
4,839
Reputation
9,696
Reaction score
4,628
Trophy points
1,393
Location
Aberdyfi, West Wales, UK
Activity points
126,175
... or even
Code:
Byte(0) from File4.bin, Byte(0) from File3in, Byte(0) from File2.bin, Byte(0) from File1.bin
.
.
.
Byte(EOF-1) from File4.bin, Byte(EOF-1) from File3.bin, Byte(EOF-1) from File2.bin, Byte(EOF-1) from File1.bin
depending on which 'endian' it is.

What is more important is the format of the result, what should it be and for what purpose is it needed?

Brian.
 

FvM

Super Moderator
Staff member
Joined
Jan 22, 2008
Messages
48,214
Helped
14,210
Reputation
28,679
Reaction score
12,904
Trophy points
1,393
Location
Bochum, Germany
Activity points
279,300
srec_cat -unsplit option should be able to perform the intended operations.
 

ZASto

Advanced Member level 3
Joined
Jan 9, 2008
Messages
768
Helped
149
Reputation
303
Reaction score
137
Trophy points
1,323
Location
Messy Corner, 44°47'31.56"N, 20°28'9.16"E
Activity points
5,238
Brian, of course, I just gave the example :)
As the OP wrote, he is reverse engineering a contraption so it is easy to figure the position of bytes in long (just a DMM with beeper ON) ;)
 
Last edited:

LaTeX Commands Quick-Menu:

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top