ASIC/FPGA Design and Verification Out Source Services
Monitor Sends an Item to Reference Model
- Collecting an item - all overhead bytes of a frame - and sending this item to reference model, was the preferred method.
Pros
- Low memory consumption during synchronized state.
- Memory buffer is handled only by the reference model.
How To Do It (SPECMAN Code)
- First declare a method to send the data. Collect a data item and send via this method. The function is declared as follows:ohd_mesByte : out method_port of ohd_clr_t is instance; keep bind(ohd_mesByte, empty);Collecting a data item is design specific and will not be shown.
- In the receive side - the reference model declare an input method:ohd_message : list of byte;keep soft ohd_message.size() == 0;ohd_mesByte : in method_port of ohd_clr_t is instance;keep bind(ohd_mesByte, empty);ohd_mesByte(b : list of byte) is { ohd_message.add(b);
};--ohd_mesByte
|