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

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,650
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
18,750
Helped
4,181
Reputation
8,364
Reaction score
4,116
Trophy points
113
Activity points
123,328
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,650
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,037
Helped
2,055
Reputation
4,114
Reaction score
1,903
Trophy points
1,393
Location
USA
Activity points
56,409
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
749
Helped
148
Reputation
301
Reaction score
132
Trophy points
1,323
Location
Messy Corner, 44°47'31.56"N, 20°28'9.16"E
Activity points
5,066
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,586
Helped
4,781
Reputation
9,579
Reaction score
4,560
Trophy points
1,393
Location
Aberdyfi, West Wales, UK
Activity points
124,317
... 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
47,861
Helped
14,119
Reputation
28,495
Reaction score
12,800
Trophy points
1,393
Location
Bochum, Germany
Activity points
277,790
srec_cat -unsplit option should be able to perform the intended operations.
 

ZASto

Advanced Member level 3
Joined
Jan 9, 2008
Messages
749
Helped
148
Reputation
301
Reaction score
132
Trophy points
1,323
Location
Messy Corner, 44°47'31.56"N, 20°28'9.16"E
Activity points
5,066
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:

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top