From 97b1ea6df2adc61a5ce7579d277726ea7f685ed1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikael=20=C3=85gren?= Date: Fri, 22 Nov 2024 14:16:50 +0100 Subject: [PATCH] Write data only once per call to write_word() in tb_tk1 test bench Keep WE and CS high for one clock cycle instead of two. To avoid writing the same address twice. --- hw/application_fpga/core/tk1/tb/tb_tk1.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/application_fpga/core/tk1/tb/tb_tk1.v b/hw/application_fpga/core/tk1/tb/tb_tk1.v index e24d4f4..a62fc50 100644 --- a/hw/application_fpga/core/tk1/tb/tb_tk1.v +++ b/hw/application_fpga/core/tk1/tb/tb_tk1.v @@ -300,7 +300,7 @@ module tb_tk1 (); tb_write_data = word; tb_cs = 1; tb_we = 1; - #(2 * CLK_PERIOD); + #(CLK_PERIOD); tb_cs = 0; tb_we = 0; end