From 161eb7764bb9054aa21080b5100a4e743ab91fd6 Mon Sep 17 00:00:00 2001 From: Richard Qin Date: Mon, 16 Mar 2026 15:10:47 +0800 Subject: format output --- rv64cpu/tb/unit/tb_regfile.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'rv64cpu/tb/unit/tb_regfile.cc') diff --git a/rv64cpu/tb/unit/tb_regfile.cc b/rv64cpu/tb/unit/tb_regfile.cc index 2491eb6..3d08dd5 100644 --- a/rv64cpu/tb/unit/tb_regfile.cc +++ b/rv64cpu/tb/unit/tb_regfile.cc @@ -42,7 +42,9 @@ int main(int argc, char** argv) { dut->rs1_addr = 0; dut->rs2_addr = 0; - std::cout << "Starting register file unit test" << std::endl; + std::cout << "----------------------------------" << std::endl; + std::cout << " Register File Unit Test" << std::endl; + std::cout << "----------------------------------" << std::endl; // Test 1: Reset dut->rst = 1; @@ -180,7 +182,9 @@ int main(int argc, char** argv) { assert(sweep_ok); std::cout << "\033[32m[PASS] All 31 mutable registers write/read successfully without collision\033[0m" << std::endl; - std::cout << "Register file unit test complete\033[0m" << std::endl; + std::cout << "----------------------------------" << std::endl; + std::cout << "\033[32mAll 8 tests passed!\033[0m" << std::endl; + std::cout << "----------------------------------" << std::endl; delete dut; exit(0); -- cgit v1.2.3