Exetools  

Go Back   Exetools > 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: 57
Rept. Given: 0
Rept. Rcvd 0 Times in 0 Posts
Thanks Given: 34
Thanks Rcvd at 10 Times in 10 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 online now
VIP
 
Join Date: Jul 2016
Posts: 725
Rept. Given: 35
Rept. Rcvd 48 Times in 30 Posts
Thanks Given: 666
Thanks Rcvd at 1,050 Times in 475 Posts
chants Reputation: 48
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: 57
Rept. Given: 0
Rept. Rcvd 0 Times in 0 Posts
Thanks Given: 34
Thanks Rcvd at 10 Times in 10 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 online now
VIP
 
Join Date: Jul 2016
Posts: 725
Rept. Given: 35
Rept. Rcvd 48 Times in 30 Posts
Thanks Given: 666
Thanks Rcvd at 1,050 Times in 475 Posts
chants Reputation: 48
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
Banned User
 
Join Date: Jul 2018
Posts: 30
Rept. Given: 0
Rept. Rcvd 4 Times in 4 Posts
Thanks Given: 77
Thanks Rcvd at 97 Times in 39 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
How to decompile xbox 360 exe files? jonwil General Discussion 4 12-17-2020 11:07
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 18:18.


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX, chessgod101
( 1998 - 2024 )