Here, A basic simulink model for AWGN BER performance is attached. Model consists of simplest design of transmitter, AWGN channel, Threshold detector using matlab function as well as C programming based S-function. Mex command is used for C program compilation. Run "wired_ber_test.m" file and verify that both the detector output matches.