Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions tests/benches/tx_frontend/tb_tx_frontend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class TB_Tx_frontend : public Testbench<Vtb_tx_frontend> {
}
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;
Expand All @@ -121,7 +121,7 @@ class TB_Tx_frontend : public Testbench<Vtb_tx_frontend> {
}

// 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;
Expand Down Expand Up @@ -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;

/************************************************************/

Expand Down