Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Xilinx PicoBlaze KCPSM3 processor #7511

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

CUB3D
Copy link

@CUB3D CUB3D commented Feb 16, 2025

This adds support for the Xilinx PicoBlaze KCPSM3 processor, as specified here as well as here

Example programs can be found here

Tested with the opbasm assember, which can be found here

By default binaries consist of 18-bit instructions, this plugin assumes instructions have been padded to 24-bit due to SLEIGH token alignment requirements which can be done like so:

opbasm <file>.psm -3 -x # assemble to HEX file
sed -i -e 's/^/0/' <file>.hex # pad each line with 0
xxd -r -p <file>.hex <out>.bin # convert to bin

Currently, as documented in the slaspec the 10-bit PC wraparound is not implemented as Ghidra doesn't support non byte-sized spaces.

Additionally, the rom space is defined as type ram_space as while documented here the rom_space type is not actually supported by the lexer here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant