ysyx-workbench/nemu
tracer-ysyx 4946f6f435 > compile NEMU
ysyx_22040000 李心杨
Linux calcite 6.1.75 #1-NixOS SMP PREEMPT_DYNAMIC Thu Jan 25 23:27:52 UTC 2024 x86_64 GNU/Linux
 19:31:33  up 1 day  5:07,  2 users,  load average: 2.07, 1.22, 0.93
2024-02-08 19:31:33 +08:00
..
.metals > compile NEMU 2024-02-05 22:16:25 +08:00
.vscode > compile NEMU 2024-02-05 22:16:25 +08:00
configs > compile NEMU 2024-01-13 14:15:08 +08:00
include > compile NEMU 2024-02-08 19:31:24 +08:00
resource NJU-ProjectN/nemu ics2023 initialized 2023-12-21 00:20:36 +08:00
scripts > compile NEMU 2024-01-13 14:23:41 +08:00
src > compile NEMU 2024-02-08 19:31:33 +08:00
tests > compile NEMU 2024-01-19 21:02:07 +08:00
tools NJU-ProjectN/nemu ics2023 initialized 2023-12-21 00:20:36 +08:00
.clang-format > compile NEMU 2024-01-12 23:23:43 +08:00
.gitignore > compile NEMU 2024-01-13 11:18:05 +08:00
flake.lock > compile NEMU 2024-01-11 16:16:42 +08:00
flake.nix > compile NEMU 2024-01-15 16:04:14 +08:00
Kconfig NJU-ProjectN/nemu ics2023 initialized 2023-12-21 00:20:36 +08:00
LICENSE > compile NEMU 2024-01-12 23:23:43 +08:00
Makefile > compile NEMU 2024-01-15 22:25:33 +08:00
README.md NJU-ProjectN/nemu ics2023 initialized 2023-12-21 00:20:36 +08:00

NEMU

NEMU(NJU Emulator) is a simple but complete full-system emulator designed for teaching purpose. Currently it supports x86, mips32, riscv32 and riscv64. To build programs run above NEMU, refer to the AM project.

The main features of NEMU include

  • a small monitor with a simple debugger
    • single step
    • register/memory examination
    • expression evaluation without the support of symbols
    • watch point
    • differential testing with reference design (e.g. QEMU)
    • snapshot
  • CPU core with support of most common used instructions
    • x86
      • real mode is not supported
      • x87 floating point instructions are not supported
    • mips32
      • CP1 floating point instructions are not supported
    • riscv32
      • only RV32IM
    • riscv64
      • only RV64IM
  • memory
  • paging
    • TLB is optional (but necessary for mips32)
    • protection is not supported
  • interrupt and exception
    • protection is not supported
  • 5 devices
    • serial, timer, keyboard, VGA, audio
    • most of them are simplified and unprogrammable
  • 2 types of I/O
    • port-mapped I/O and memory-mapped I/O