mirror of
https://github.com/MPSU/APS.git
synced 2025-09-15 17:20:10 +00:00
Исправление типа аргумента в 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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user