Main Page Data Structures File List Globals
merge_net_outs.c File ReferenceMerges messages from 2 wires.
More...
#include "white_interface.h"
Go to the source code of this file.
Detailed Description
Merges messages from 2 wires.
This block merges 2 inputs into 1 output. It is required as VCC will not allow 2 wires to be connected to the same output port. merge_net_outs can only handle lobby_message messages.
Definition in file merge_net_outs.c.
Function Documentation
|
VCC Init function.
This function runs when the VCC simulation is first started.
Definition at line 17 of file merge_net_outs.c.
|
|
VCC Run function.
This runs whenever a message arrives at either of the input ports.
Definition at line 27 of file merge_net_outs.c.
00028 {
00029 lobby_message in;
00030
00031 if (in_1_Enabled())
00032 in = *in_1_Value();
00033
00034 if (in_2_Enabled())
00035 in = *in_2_Value();
00036
00037 out_Post(&in);
00038 }
|
|