EXETOOLS FORUM  

Go Back   EXETOOLS FORUM > General > General Discussion

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 09-03-2018, 01:41
eychei eychei is offline
Friend
 
Join Date: Mar 2018
Posts: 42
Rept. Given: 0
Rept. Rcvd 0 Times in 0 Posts
Thanks Given: 28
Thanks Rcvd at 6 Times in 6 Posts
eychei Reputation: 0
Microblaze decompile

Hello everyone,

i do have a microblaze binary which I can disassemble without problems.
But this code is to hard to read.
Does anyone know a decompiler for microblaze and picoblaze softcores from xilinx?

Thanks all.

-e
Reply With Quote
  #2  
Old 09-03-2018, 02:25
chants chants is offline
Friend
 
Join Date: Jul 2016
Posts: 204
Rept. Given: 0
Rept. Rcvd 9 Times in 8 Posts
Thanks Given: 149
Thanks Rcvd at 193 Times in 100 Posts
chants Reputation: 9
Most FPGA are using these cores AFAIK, and there is both a GitHub project (already referenced in your other thread) and even a Codeproject article on a somewhat related task to have C code that can program that FPGA from the bitstream.

Reverse-engineering tools for FPGA bitstreams, Altera and Xilinx:
Quote:
https://github.com/djn3m0/debit
Convert Xilinx FPGA/CPLD to C Source:
Quote:
https://www.codeproject.com/Articles/177990/Convert-Xilinx-FPGA-CPLD-to-C-Source

Last edited by chants; 09-03-2018 at 02:40.
Reply With Quote
The Following 3 Users Say Thank You to chants For This Useful Post:
eychei (09-05-2018), niculaita (09-03-2018), SinaDiR (09-03-2018)
  #3  
Old 09-05-2018, 16:30
eychei eychei is offline
Friend
 
Join Date: Mar 2018
Posts: 42
Rept. Given: 0
Rept. Rcvd 0 Times in 0 Posts
Thanks Given: 28
Thanks Rcvd at 6 Times in 6 Posts
eychei Reputation: 0
Thank you for the link.

I am working on a Artix-7 bitstream. This is not supported by most of the github codes.

The second link you send me is for programming the FPGA.

What I have right now is microblaze opcodes and therefore the asm instructions. I have disassembled it with a microblaze plugin for IDA.

Now reading asm is difficult and I would like to decompile to C.
The Microblaze is a 32-Bit Risc-Microcontroller.
Maybe there are other RISC decompilers out there? I couldnt find anything for microblaze.

thanks for the help everyone.

-e
Reply With Quote
  #4  
Old 09-07-2018, 07:04
chants chants is offline
Friend
 
Join Date: Jul 2016
Posts: 204
Rept. Given: 0
Rept. Rcvd 9 Times in 8 Posts
Thanks Given: 149
Thanks Rcvd at 193 Times in 100 Posts
chants Reputation: 9
The Xilinx Virtex 7 FPGA bitstream has been reverse engineered by Clifford Wolf:
Quote:
https://github.com/SymbiFlow/prjxray
Note especially here:
Quote:
Tools & Libs
Tools & libs are useful tools (and libraries) for converting the resulting bitstreams into various formats.
Binaries in the tools directory are considered more mature and stable then those in the utils directory and could be actively used in other projects.
Probably the only project, and an active one at that for this particular architecture. But some of the tools in there might convert the bitstream into something readable enough, or at least readable by another tool.
Reply With Quote
  #5  
Old 09-07-2018, 08:27
Megin Megin is offline
Friend
 
Join Date: Jul 2018
Posts: 28
Rept. Given: 0
Rept. Rcvd 4 Times in 4 Posts
Thanks Given: 61
Thanks Rcvd at 71 Times in 28 Posts
Megin Reputation: 4
More documentation here:
Code:
https://prjxray.readthedocs.io/en/latest/
Highlevel Bitstream Architecture:
Code:
http://prjxray.readthedocs.io/en/latest/architecture/overview.html
Reply With Quote
The Following User Says Thank You to Megin For This Useful Post:
silver (09-27-2018)
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Q: about decompile apk & Recompile apk Utshiha General Discussion 7 12-17-2016 23:07
Decompile .OBJ files? FEARHQ General Discussion 2 08-12-2003 15:31


All times are GMT +8. The time now is 07:43.


ICP05004977
Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX