From e99939491820df300a6179719d807f810e7f1680 Mon Sep 17 00:00:00 2001 From: uvok Date: Thu, 22 Jan 2026 20:46:11 +0100 Subject: eater: PC inc included, decode on negedge Some cycles can be saved. As previously (wrongly) committed, the PC can be incremented early, but the decoder needs to do this "early", so as now implemented, on the falling clock adge already. --- eater_cpu/cpp/Veater_computer__main.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'eater_cpu/cpp/Veater_computer__main.cpp') diff --git a/eater_cpu/cpp/Veater_computer__main.cpp b/eater_cpu/cpp/Veater_computer__main.cpp index b4cd413..40b39b3 100644 --- a/eater_cpu/cpp/Veater_computer__main.cpp +++ b/eater_cpu/cpp/Veater_computer__main.cpp @@ -22,11 +22,12 @@ void load_program(const std::unique_ptr &topp) { 0x1e, // ADD 15 0x2f, - // SUB 13 - 0x3d, // STA 12 0x4c, - + // SUB 13 + 0x3d, + // STA 11 + 0x4b, // OUT 0xe0, // LDI 4 -- cgit v1.2.3