Исправление типа аргумента в peripheral_pkg.sv (#115)

* Имя порта совпадало с именем типа

* Update Labs/13. Peripheral units/peripheral_pkg.sv

---------

Co-authored-by: Andrei Solodovnikov <VoultBoy@yandex.ru>
This commit is contained in:
Eugene8388608
2025-06-06 21:38:24 +03:00
committed by GitHub
parent 6d5ad4e0a1
commit 49f3c5755c

View File

@@ -31,8 +31,8 @@ package peripheral_pkg;
end
endtask
task automatic uart_rx_send_char(input logic [7:0] char, input logic [31:0] baudrate, ref logic tx);
logic [11:0] data = {2'b11, (^char), char, 1'b0};
task automatic uart_rx_send_char(input logic [7:0] character, input logic [31:0] baudrate, ref logic tx);
logic [11:0] data = {2'b11, (^character), character, 1'b0};
for(int i = 0; i < 12; i++) begin
tx = data[i];
#(1s/baudrate);