Skip to content

Commit

Permalink
ЛР12. Увеличение времени моделирования
Browse files Browse the repository at this point in the history
После добавления отправки E0 на клавиатуре, необходимо увеличить время моделирования, чтобы успеть обработать последний сканкод.
  • Loading branch information
HepoH3 authored Nov 28, 2023
1 parent 2765ff3 commit 374d745
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Labs/12. Peripheral units/tb_riscv_unit.sv
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//////////////////////////////////////////////////////////////////////////////////
// Company: MIET
// Engineer: Nikita Bulavin
// Engineer: Andrei Solodovnikov

// Module Name: tb_riscv_unit
// Project Name: RISCV_practicum
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand All @@ -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;
Expand Down

0 comments on commit 374d745

Please sign in to comment.