Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 840 Bytes

README.md

File metadata and controls

20 lines (15 loc) · 840 Bytes

Y86 Pipeline Simulator Rust Implementation

Y86-64 is an ISA described in CMU CS15213: CSAPP (or Introduction to Computer System, ICS, 计算机系统导论 in chinese).

This project reimplement the y86 simulator in the ArchLab using Rust, aiming at better code readability and experiment for mordern solutions for DSL handling.

Without using flex, yacc or bison for HCL (hardware control language) parsing, we tend to a pure rust macro rule approach, which provides not only similar syntax with the original HCL, but also zero-cost dev-time syntax highlighting and type checking.

Moreover, we're able to build the computational graph (only once before the first cycle) as a DAG and arrange the order of combinatorial logics and devices' execution topologically, without explicitly writing code for stepping cycles.

Hope you enjoy.