From a9977c7e2d55ad29832fa81dfe02a0ef8b5f958c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Chaine?= Date: Sun, 28 Dec 2025 17:28:08 +0100 Subject: [PATCH] Fix testbench frequency to 78MHz --- tests/benches/tx_frontend/tb_tx_frontend.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/benches/tx_frontend/tb_tx_frontend.cpp b/tests/benches/tx_frontend/tb_tx_frontend.cpp index cd94c7c..cbdf71f 100644 --- a/tests/benches/tx_frontend/tb_tx_frontend.cpp +++ b/tests/benches/tx_frontend/tb_tx_frontend.cpp @@ -97,7 +97,7 @@ class TB_Tx_frontend : public Testbench { } this->core->rst_i = 0; - core->cr_acc_incr_i = ((double)baudrate * (1 << 16)) / 60000000; + core->cr_acc_incr_i = ((double)baudrate * (1 << 16)) / 78000000; core->cr_ds_i = 1; core->cr_p_i = 1; core->cr_s_i = 1; @@ -121,7 +121,7 @@ class TB_Tx_frontend : public Testbench { } // Compute the baudrate - float duration = (counter / 60000000.0); + float duration = (counter / 78000000.0); float baud_period = duration / 12; float generated_baudrate = (1.0 / baud_period); return generated_baudrate; @@ -2819,8 +2819,8 @@ int main(int argc, char ** argv, char ** env) { tb->set_debug_log(verbose); tb->init_conditions(__CondIdEnd); - // 60MHz - tb->clk_period_in_ps = 16667; + // 78MHz + tb->clk_period_in_ps = 12821; /************************************************************/