fixes for lab3, passed verilator sim and all tests with correct cf prints

This commit is contained in:
PurplePower
2025-08-15 00:57:34 +08:00
parent 47c801d5d7
commit bd3a38a3c1
2 changed files with 2 additions and 2 deletions

View File

@@ -205,7 +205,7 @@ class Simulator {
top->eval();
top->io_interrupt_flag = 0;
if (top->io_deviceSelect == 2 && top->io_memory_bundle_write_enable) {
if (top->io_device_select == 2 && top->io_memory_bundle_write_enable) {
if (uart_write_time_counter == 0) std::cout << (char)top->io_memory_bundle_write_data << std::flush; // Output to UART
uart_write_time_counter = (uart_write_time_counter + 1) % uart_write_time_limit;
}