kcpu

所属分类:硬件设计
开发工具:Rust
文件大小:0KB
下载次数:0
上传日期:2022-05-15 11:19:11
上 传 者sh-1993
说明:  一个用于我的CPU架构的汇编程序和硬件模拟虚拟机,
(An assembler and hardware-simulating virtual machine for my CPU architecture,)

文件列表:
.cloc_lang_def.txt (42314, 2022-05-15)
.vscode/ (0, 2022-05-15)
.vscode/settings.json (1964, 2022-05-15)
Cargo.lock (52426, 2022-05-15)
Cargo.toml (895, 2022-05-15)
asm/ (0, 2022-05-15)
asm/bench/ (0, 2022-05-15)
asm/bench/FIXME (154, 2022-05-15)
asm/bench/primes_mega.ks (2153, 2022-05-15)
asm/bench/primes_nmispam.ks (3066, 2022-05-15)
asm/test/ (0, 2022-05-15)
asm/test/add3.ks (240, 2022-05-15)
asm/test/add3_fam.ks (238, 2022-05-15)
asm/test/alu.ks (248, 2022-05-15)
asm/test/alu_noflags.ks (156, 2022-05-15)
asm/test/auto.ks (975, 2022-05-15)
asm/test/byte_ld.ks (540, 2022-05-15)
asm/test/byte_st.ks (502, 2022-05-15)
asm/test/call_ret_1.ks (244, 2022-05-15)
asm/test/call_ret_2.ks (603, 2022-05-15)
asm/test/enter_fr.ks (495, 2022-05-15)
asm/test/enter_leave.ks (742, 2022-05-15)
asm/test/family.ks (319, 2022-05-15)
asm/test/fibb.ks (232, 2022-05-15)
asm/test/flag_tui2nmi.ks (1119, 2022-05-15)
asm/test/ie_flag_corruption.ks (326, 2022-05-15)
asm/test/int_async.ks (562, 2022-05-15)
asm/test/int_disable_1.ks (1400, 2022-05-15)
... ...

# kCPU Assembler and Virtual Machine [![CI](https://github.com/khoek/kcpu/workflows/CI/badge.svg)](https://github.com/khoek/kcpu/actions?query=workflow%3ACI) An assembler and hardware-simulating virtual machine for my CPU microarchitecture. It exists to test the robustness of the design of the electrical hardware (over at [khoek/komputer](https://github.com/khoek/komputer)), simulating buses (detecting collisions, etc.) and different hardware modules, so a much faster soft-implementation is possible. Rough tests show that the VM is about ~475x slower than bare metal, which given a 4.8GHz simulating CPU ends up about 5x faster than the planned hardware clock speed of 2MHz. ## Compiling and Testing To build use `make` in the repository root. Artefacts appear in `bin`, the most interesting of which are; `kasm`, the assembler; `lib/libkcpu.a`, the main language spec/hardware spec/assembler library; and `run_vm`, a stub which starts up the VM from this library. There is a test suite for the VM/assembler combination, which is invoked with `make test`.

近期下载者

相关文件


收藏者