We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7940e58 commit 2fc01ffCopy full SHA for 2fc01ff
1 file changed
vunit/vhdl/verification_components/src/uart_pkg.vhd
@@ -150,6 +150,11 @@ package body uart_pkg is
150
parity : natural) is
151
variable msg : msg_t := new_msg(uart_set_parity_msg);
152
begin
153
+ if parity > 2 then
154
+ report "Invalid parity value: " & to_string(parity)
155
+ severity error;
156
+ end if;
157
+
158
push(msg, parity);
159
send(net, actor, msg);
160
end;
0 commit comments