Skip to content

NibblesLab/mz80c_de0

Repository files navigation

MZ-80C on FPGA

What is this?

This is a implementation Sharp MZ-80 series to FPGA.

Requirements

  • Altera(Terasic) DE0 board
  • Quartus II (I use 11.0 sp1)
  • SD, SDHC or MMC card

How to reproduction project

  1. Download zip file.
  • Create folder to build project in your PC.
  • Put these files in zip to folder.
    • logic/
    • internal_sram_hw.tcl
    • internal_sram2_hw.tcl
    • internal_sram8_hw.tcl
    • mz80c.cdf
    • mz80c.pin
    • mz80c.qsf
    • mz80c.sdc
    • mz80c_de0.qpf
    • mz80c_de0_sopc.sopc
  • Start Quartus II.
  • Open project. File->Open Project...->mz80c_de0.qpf
  • Start SOPC Builder. Tools->SOPC Builder
  • Push Ganerate button in SOPC Builder.
  • When generate successfully, exit SOPC Builder.
  • Start Compilation at Quartus II.
  • Change SW11 to PROG, and power on. Program to DE0 board with mz80c.pof with Programmer.
  • Start NiosII EDS. Tools->Nios II Software Build Tools for Eclipse
  • When does PC ask workspace, push OK as it is.
  • Create new application and BSP. File->New->Nios II Application and BSP from Template
  • Set parameters and push Finish button.
    • SOPC Information File name:->mz80c_de0_sopc.sopcinfo
    • CPU name:->cpu_0
    • Project name:->mz80c_de0_soft
    • Project template->Hello World
  • Put these files in zip(software/mz80c_de0_soft/*) to software/mz80c_de0_soft folder.
    • diskio.c
    • diskio.h
    • ff.c
    • ff.h
    • ffconf.h
    • file.c
    • file.h
    • integer.h
    • key.c
    • key.h
    • menu.c
    • menu.h
    • mz80c_de0_main.c
    • mz80c_de0_main.h
    • mzctrl.c
    • mzctrl.h
  • Delete hello_world.c.
  • At Project Explorer, expand mz80c_de0_soft, then right-click and select Refresh(F5).
  • Build project. Project->Build All
  • Push power-sw to off, change SW11 to RUN, then power on. Start Flash Programmer. Nios II->Flash Programmer
  • Create new project. File->New...
  • Check "Get flash programmer system details from SOPC Information File"(already selected).
  • Set parameters and push OK button.
    • SOPC Information File name:->mz80c_de0_sopc.sopcinfo
    • Master CPU name:->cpu_0
    • (Flash memory:->cfi_flash_0)
  • Check ready for Hardware connection(USB cable).
  • At "Files for flash conversion" section, push "Add..." button, select mz80c_de0_soft.elf.
  • Push Start, and push Exit when process is suceeded.
  • Put the files in CARD folder to SD/MMC card.
    • ROM files(MONITOR, CG)
    • Programs(BASIC, Games, etc.)
    • SYSTEM.INI
  • Set card to slot, SW5 is ON(upper), then push power-switch off-on.

Special thanks to ...

About

MZ-80 series implementation for Altera DE0 board

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages