This is a basic empty project for using Visual Studio Code to write assembly for the CV-8052 Soft Processor to be run on an Altera DE0-CV. This means you don't have to use CrossIDE as your editor if you don't want to. Compilation and flashing can be done from within VS Code (through custom tasks) although you do need CrossIDE installed.
- CrossIDE
- Quartus
- Install CrossIDE and Quartus if you haven't already (try to make sure these are installed in folders without spaces - I haven't tested this on an install with spaces in the paths)
- Clone the repo
- Open the root folder in VS Code
- Open the
.vscode/tasks.json
file - Update the paths to your CrossIDE and Quartus installation if they differ from what's already there:
"env": {
// Modify these paths to match the install locations for CrossIDE and Quartus on your system
// Don't include trailing slashes
"CROSSIDE_PATH": "C:\\CrossIDE",
"QUARTUS_PATH": "C:\\intelFPGA_lite\\18.1\\quartus"
}
- Open the assembly file you want to assemble / flash
- Open the task runner (Ctrl+Alt+T is the default shortcut)
- Choose
Assemble (A51)
- Open the task runner again
- Choose
Flash (Quartus SignalTap II)
Note: You can assemble in one step (assuming you have the default shortcuts) by hitting Ctrl+Shift+B
You can install this extension: https://marketplace.visualstudio.com/items?itemName=junwatu.8051 to get syntax highlighting on the 8051 assembly (doesn't seem to support all the A51 assembler directives though)