What do I mean by hardware?
Rather than emulating the device in software, which can cause various issues (especially related to timing), by mapping the actual device logic to a field programmable gate array (FPGA), you can achieve an "exact" replica of the hardware.
It's a super cool project, and I highly recommend checking it out if you have an interest in old machines (Apple II, Commodore 64, etc.).