Write a function that returns a result
Problem Description
What you need to write
Create a class with the name Packet
The class should have the below fields:
int id; logic [31:0] addr;Create function with name : get_addr_high() and it should return
addr[31:16]Create function with name :
is_broadcast() and it should return 1 when addr is 32'hFFFF_FFFF or else 0
SystemVerilog
Code Editor Access
Log in to write, run and submit your solution to this interview question. It's free.
Output
Output goes here...
