Skip to content

Converting CSAPP Y86 assembly output to memory initialization file in Quartus

License

Notifications You must be signed in to change notification settings

phoeagon/csapp-y86-toolchain-quartus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Patching Y86 Toolchains for use with Quartus
=================================================

Zhe Qiu (phoeagon)

This patch help dump binary file generated by CSAPP Y86 toolchain,
so that they can be flashed to dev. boards with Quartus.

+ Instructions:

1. Download sim.tar from the official site of CSAPP:
http://csapp.cs.cmu.edu/public/sim.tar

MD5sum: d23b8a90b97f1631c0ed57faeb4fa76c  sim.tar
SHA1sum: a6cca35c3ad45b5e625726ae5ddce4eb44a27e76  sim.tar

2. untar it to some directory, e.g. "/run/shm/sim"
3. Go to terminal,
cd /run/shm/sim
patch -s -p1 </path/to/the/patch/file/y86-patch
4. install srecord on Ubuntu. (Or corresponding packages if you are on
other distros.)

+ Use:
make a.mif
The command above would make the toolchain look for a.yas (the
y86-assembly), which is assembled to a.yis and then a.mif (which
can be used to flash using Quartus.)

About

Converting CSAPP Y86 assembly output to memory initialization file in Quartus

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published