From 374d745a85e77c43c26cb5d3dfefdff15918fbe9 Mon Sep 17 00:00:00 2001 From: Andrei Solodovnikov Date: Tue, 28 Nov 2023 09:57:43 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9B=D0=A012.=20=D0=A3=D0=B2=D0=B5=D0=BB?= =?UTF-8?q?=D0=B8=D1=87=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=B2=D1=80=D0=B5=D0=BC?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=20=D0=BC=D0=BE=D0=B4=D0=B5=D0=BB=D0=B8=D1=80?= =?UTF-8?q?=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit После добавления отправки E0 на клавиатуре, необходимо увеличить время моделирования, чтобы успеть обработать последний сканкод. --- Labs/12. Peripheral units/tb_riscv_unit.sv | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Labs/12. Peripheral units/tb_riscv_unit.sv b/Labs/12. Peripheral units/tb_riscv_unit.sv index 288ca21f..49be0a25 100644 --- a/Labs/12. Peripheral units/tb_riscv_unit.sv +++ b/Labs/12. Peripheral units/tb_riscv_unit.sv @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////////////// // Company: MIET -// Engineer: Nikita Bulavin +// Engineer: Andrei Solodovnikov // Module Name: tb_riscv_unit // Project Name: RISCV_practicum @@ -34,7 +34,7 @@ always #50000 if(starter || (cntr > 0)) ps2_clk = ~ps2_clk; else ps2_clk = 1; logic [11:0] data, uart_data; -initial #5ms $finish(); +initial #6ms $finish(); initial begin resetn = 1; @@ -86,6 +86,7 @@ initial begin: ps2_initial_block data = 0; #100000; ps2_send_scan_code(8'h1c); + ps2_send_scan_code(8'he0); ps2_send_scan_code(8'hf0); ps2_send_scan_code(8'h1c); ps2_send_scan_code(8'h5c); @@ -100,7 +101,6 @@ task ps2_send_scan_code(input logic [7:0] code); endtask -// TODO uart block initial begin: uart_rx_initial_block uart_data = '1; #100000;