Você está na página 1de 10

Modeling simulation of transmitter-receiver system using

VHDL-AMS
Jamila BHAR, Monji ZAIDI and Najeh CHROUDI
jamilabhar@yahoo.fr
Electronic and Micro-Electronic Laboratory (ElE, IT-06) FSM,
University of Monastir, Monastir 5000, Tunisia

personal area network (PAN) [11]. The base layers


Summary physical and link are part of the radio standard
It is important to provide reliable and efficient communication IEEE802.15.4. This last is considered as a new wireless
for data transmission in wireless sensor networks. To attempt networking technology that provides ultra-low cost, ultra-
this purpose, implementation details for several blocks of low power, low speed, short time delay, large network
communication system must be carefully modeled. In this capacity and high reliability. Thus these characteristics
context, the present paper introduces transmitter-receiver system
architecture for sensors networks applications. It presents the
will work useful for indoor localization [13]. Based on
study, design and simulation of communication system using these features provided by IEEE 802.15.4, characteristics
VHDL-AMS (Very High Speed Integrated Circuit Hardware of this technology are considered for our application.
Description Language-Analog and Mixed-Signal) language. We The conception of communication system architecture is
expose implementation details of system parts based on a direct considered complicated since many different techniques
sequence spread-spectrum with a 2.4 GHz carrier, the model of (RF, numeric, analogic) must coexist together. Thus, to
BPSK modulation for digital transmission, and functional filter satisfy such approach, the designer must choose system
side. The proposed architecture is validated on Matlab parameters with respect of some constraints such as
environment. The designed architecture respects the specific function block interactions, need of high rate, minimizing
context of wireless sensors networks (frequency, BER...).
Obtained results validate the proposed architecture and prove
error rate, etc. In this context, the main goal for our
the way to determining and discussing some critical parameters research is to develop transmitter-receiver architecture.
values. We will discuss the choice of some system parameters.
Key words: We will also solve some constraints to ensure block
WSWAN, communication system, AWGN channel, VHDL-AMS, interaction. This study allows us to design the optimum
BPSK, PN-code. architecture for our communication system. The paper is
organized as follows. Firstly, we describe the wireless
sensor network architecture and we define various
elements composing a sensor node. After that, we present
1. Introduction the global model of the considered architecture. We give
details of different functional block description and we
A new challenge recently appears with the design of
explain system constraints. Then, we will present
mixed signal systems. VHDL-AMS language has been
simulation results, which allow us to validate the system
developed for the modeling and simulating of multi-
performances of our proposition. Finally, a conclusion
technological systems. It is analogue and mixed-signal
will highlight the important results and will propose an
extensions of a well-known language VHDL. Using
optimization of the proposed architecture for future
VHDL-AMS will allow developing and studying
works.
different blocks of radio-communication system. The full
expansion of wireless communication architecture leads
to the emergence of new communication techniques. 2. Wireless sensor network
Particularly, wireless sensor networks are poised to
become a very significant enabling technology in many The architecture of the wireless sensor network (WSN) is
sectors. A sensor mainly consists of sensing, shown in Fig .1. It consists of an interconnected set of
transmission, storage and power units. Its tasks contain sensor nodes that are spatially distributed. Sensors are
collecting the information from some object in the real deployed to monitor and collect information about
world, storing sensing data, making simple calculation physical or environmental conditions, such as
and transmitting them to some observer [1]. temperature, sound, pressure, etc. A wide range of
During the last decade, an extensive attention is explored promising applications employ such information in
to the IEEE 802.15.4 standard. It defines the protocol and environmental and industrial sensing and diagnostics,
interconnection of devices via radio communication in a health save, and disaster relief. Collected data are

18 NNGT JOURNAL: International Journal of Embedded Systems Volume 1 July 30,2014


generally relayed by intermediate nodes and finally 3. VHDL-AMS architecture modeling
transmitted to sink node to be analyzed.
VHDL-AMS, new IEEE standard focused on the analog
and mixed-signal model and simulation, has been proved
very helpful for modeling and simulation of sensors,
signal processing circuitry and the external
environment[2]. A major reason for modeling our
transmitter and receiver architectures blocks using
VHDL-AMS language is due to the heterogeneous nature
of the different blocks (digital and analogic) and also the
complexity of this architecture (synchronization). As a
unified modeling language, VHDL-AMS is, then,
considered the ideal candidate for our architecture. In
fact, it is designed to allow description of global system
and its subsystems, specification of block functions and
equation. It must make synthesized design and support
interaction between the digital part of a model and its
analog part in an efficient manner. In the other side, the
Fig. 1 Wireless sensor network architecture use of flexible prototypes permits to decrease the design
cycle. Our approach focuses on modeling transmitter-
A basic sensor node in the WSN typically consists of one receiver system blocks in a way that they can be used by
or more sensors, a radio transceiver, a microprocessor and various radio communication systems. In order to
a small battery. It may also have additional application- accomplish our finality, various parts which define the
dependent components attached, such as location finding communication performances are discussed to make the
system (GPS), actuator and power generator. In Fig .1, best choice such as code sequences, as well as lengths
blocks composing sensor node are classified in four units. and synchronization between some functions. To design
Capture unit comprises sensors and actuators which our mixed-signal (digital/analog/RF) systems, analogic
present the interface to the physical world. Processing blocks are modeled by VHDL-AMS and digital blocks
unit includes processor capable of executing all the are modeled by VHDL. These blocks are validated by
appropriate data and memory used to store programs and simulation using Modelsim and Simplorer tools. For the
various data. Power unit contains a battery which is purpose of mixing digital simulations with analog or RF
necessary to provide energy. In wireless sensor networks, simulations in order to analyze a complete system, we
energy consumption efficiency is one of the most have to compile and export the global system to Simulink
important factor considerations. Finally, Communication environment.
unit is composed of transmitter and receiver stack. These
communication devices are used to exchange data 4. Global system presentation
between different nodes. In fact, data is communicated
between diverse nodes through radio frequencies. This Communication systems are composed of a transmitted
characteristic of wireless medium satisfies the part and a receiver part. Firstly, transmitter system
requirements of most wireless sensor applications. Radio receives a digital signal as input. The digital part allows
frequency based communication provides relatively wide shaping the signal from the sensor. Then, it have to be
range and high data rates, acceptable error rates at transmitted by a differential encoder and, subsequently, to
reasonable energy expenses, and does not require line of spread it with a personal Pseudo-noise code (PN-Code).
sight between sender and receiver. For actual Then, the output data go through the radiofrequency stage
communication, both a transmitter and a receiver are (RF). This last applies several operations such as
required in a sensor node. The essential task is to convert modulation, amplification and filtering. Finally, it sends
a bit stream to and from radio waves using multiple out the output signal over a carrying 2.44 GHz frequency.
operations like modulation, demodulation, amplifiers, Next, channel coding will be applied to code data. It
filters, mixers, etc. makes an AWGN (Additives White Gaussian Noise)
To develop these tasks we need to modulate a global encoding. After this, the coded data is transmitted. The
chain containing transmission and reception blocks. We signal coming from channel is amplified for resembling
have also to find a good choice of functions parameters. the received signal according to the required data rate. In
In the following paragraphs we explain our approach to the receiver part, the opposite operations are performed.
modulate a designed architecture. In fact, the obtained signals pass through low-pass filters.
The differential decoding function is used to avoid a
coherent detection in the demodulation process by the

19 NNGT JOURNAL: International Journal of Embedded Systems Volume 1 July 30,2014


receiver. It provides an acceptable signal reception. This simulation.
block is carried out using two logic gates (NOT) and
(XOR). Output signals from the demodulator are then
digitized in N bit.
The system to develop is based on the 802.15.4 standard
transmitting frequency of 2.44 GHz and a bandwidth of
80MHz. Modulation may use a BPSK (Binary phase Shift
Keying). In this work we give some details of transmitter
and receiver parts.
4.1 Transmitter system
4.1.1. Transmitter modeling design
Fig. 3 Block diagram of overall transmitter system
Different created blocks of transmitter system are shown
by fig.2. The transmitter consists of two separate sides. A Fig .3 illustrates a Simulink model that includes an HDL
digital side processes the baseband signal and a Co-simulation block. The connection is used by TCP/IP
conventional radiofrequency side. Transmitter system socket. Using the EDA Simulator Link communications
allows to code the signals from the sensors and to spread interface, an HDL Co-simulation block co-simulates a
out the encoded signal with a personal Pseudo-Noise code hardware component by applying input signals to and
(PN-Code). The radiofrequency stages include mixed reading output signals from an HDL model under
functionalities (digital and analog). It is composed by simulation in the HDL simulator.
band-pass filters and LNA amplifier, oscillation and
BPSK modulation operation. Specific parameters used in 4.2 Receiver system
the design of each block are discussed separately in the
following paragraphs. Fig. 4 shows a global receiver system. The main function
of receiver system is to regenerate transmitted data from
received signal. It integrates different parameters and
characteristics. We can classify receiver system blocks
into two basic stages. The receiver includes the numerical
stages composed of the synchronization elements, the
spectrum spreading function via a pseudo-random
sequence stage and the signals decoding block. The
radiofrequency stages include mixed functionalities
(digital and analog). It is composed of band-pass filters
and a low-pass filter blocks, oscillation and BPSK
demodulation operation.

Fig. 2 Transmitter system model blocks diagram

4.1.2. Matlab/Simulink block diagram of the transmitter


system
We start our design by using MATLAB-Simulink version
(7.8.0). It is considered as an attractive simulation tool
providing the designer many facilities to rapidly design,
implement and test the desired system. Also it gives the
designer a focused resource to plan the system
parameters. Results gained from MATLAB-Simulink
implementation will be helpful to optimize the cost and Fig. 4 Receiver system model blocks diagram
speed development using Field Programmable Gate Array
(FPGA) implementation. All receiver processes uses one clock. This configuration
Fig .3 shows a block diagram of the global transmitter may generate some problems as synchronization and data
system. The basic block diagram of the system shows errors. To make in phase some functions, we introduce
baseband block, radiofrequency block and the HDL co- the resynchronization block. The choice of using a short

20 NNGT JOURNAL: International Journal of Embedded Systems Volume 1 July 30,2014


information packet size will be potentially faster than an 5.3 Results of the baseband stages
architecture using longer information packet size. Some
work in [4] and [5] investigate that receiver architecture All the parts of the transmitter system were implemented
introducing 4 bits provides a good compromise between completely using VHDL. After association of all these
performance and receiver bus width. digitals blocks (PN Code generator, differential encoder,
multiplier and bascules), the simulation results are
5. Transmitter blocks description (digital presented in Fig. 6. Corrected Delay
part)
It consists of 4 blocks: the differential coder, the
spreading code generator, the multiplier and the
Resynchronization block. The digital transmitter part
architecture is presented us flow in Fig.5.

Fig. 5 Transmitter baseband part block diagram 111101011001000


Fig. 6 ModelSim simulation test of the CDMA Transmitter
5.1 Differential encoding
The output of the differential encoder is dependent on A multiplier has been used to operate like a spreader.
whether the present symbol is the same or different than Spreader causes the data symbols to be spreaded to a
the previous symbol. The first bit in the sequence is higher bandwidth by multiplying the random data
arbitrarily chosen. There are several methods of symbols (with bit rate Ts=375 ns) with a high bit rate
implementing the coding, for example: spreading sequence (with chip rate Tc=25ns).The figure
d(k) <= not(d(k-1) xor b(k)) shows The PN generator output for initializing generator
Where b(k) is the present data bit and d(k-1) is the polynomial C(i)=000000001001. The PN-code
previous differentially encoded bit. This block is carried 111101011001000 and the spread out data can be seen
out using two logic gates (NOT) and (XOR). aligned with the fifteen master clock cycles.

5.2 PN Code generator 6. Receiver blocks description (digital part)


CDMA employs spread spectrum technology and a
special coding scheme (where each transmitter is 6.1 Desynchronized receiver part
assigned a code) to allow multiple users to be multiplexed
This block executes classical operation of despreading
over the physical channel. A key element of the
transmitters digital part is the PN Code generator used to and decoding (Fig. 7). Despreading function (Fig. 8) is
generate codes of different lengths N (N standing for the composed of two parts: multiplier block and integrator
number of states present in the basic time Tc), directly block. The direct sequence spread spectrum (DSSS)
impacting data rate and communication performances, technique is chosen because of its high indoor constraints
more or less easily in noised environment. The width of immunity (fading, jamming...).
the permitted band at 2.44 GHz being 80 MHz, PN code
speed will therefore be 40 MHz (40 Mcps=Mega Chip
per second). The chipping code C(n) is a redundant bit
Data_Test

pattern for each transmitted bit, thereby increasing the data_code[3:0] Despreading data_despread data_av_decoded Decoder Output
resistance of the signal to interference and corruption.
The original data can be recovered if a number of bits in code_receiv
the pattern are damaged during transmission. The goal of dump_receiv
this technique is that the signals bandwidth must be
spread by using a spreading signal or code that is Fig. 7 Structural scheme of desynchronized receiver
independent of the data.

21 NNGT JOURNAL: International Journal of Embedded Systems Volume 1 July 30,2014


of the shift register and is desirable for high-speed
hardware implementation as well as software
implementation. The other way, known as a Fibonacci
"Multiplier" "Integrater/ feedback generator, can generate several delays of
data_code[3:0] data_despread blocker result_test[M:0]
Function sequences without any additional logic. A n-length LFSR
gives a m-sequence length of N=2n-1.
160 MHz

q(11) q(3) q(2) q(1) q(0) Output


d(11) + d(10) + d(3) + d(2) + d(1) + d(0)

Fig. 8 Despreading block diagram


The multiplier is equivalent of not XOR function. If a
signed signal changes the receiver gets Data or inversed
a(11) a(10) a(3) a(2) a(1) a(0)
Data. Results of VHDL implementation of C(2)
C(11) C(10) C(3) C(1) C(0)
desynchronized receiver is depicted in fig. 9.
and and and and and and

feedback

111101011001000 Fig. 10 A Galois sequence generator.

In our work, for the implementation we use the generator


polynomial 010000000010 and a 4-LFSR. It can thus
generate codes with a maximum length N=4093 and lead
to higher process gain in a noisy environment.
The simulation results are presented in Fig. 11. The figure
shows The PN generator output for initializing code. The
PN-code and the spread out data can be seen aligned with
the master clock cycles.
Fig. 9 ModelSim simulation test of desynchronized receiver.

6.2 Synchronization element


It synchronizes a code generated by the PN-Code
generator with transmitted data. It proceeds with a
method based on a maximum processing gain. In fact, the
synchronization principle consists, first, of finding the
PN-code phase (origin) in the received sequence. This
function is the acquisition (or initial synchronization).

6.3 PN-code generator Fig. 11 Simulation result of PN-code generator

PN-code is referred as pseudo-noise. M-Sequences have


good auto-correlation properties. An m-sequence can be
7. Radio frequency part modeling
easily generated by using a shift register with the help of
The transmitter includes a digital part (coding, spread)
simple feedback logic according to a particular primitive
and an analog part (channel, RF layers). The analog
polynomial. As presented in Fig. 10, for a n-length linear
stages are used to transpose the baseband signal received
feedback shift register (LFSR), the PN-Code generation
into a RF signal, through an intermediate frequency at
requires a polynomial d(i) for initialization, and a
2.44 GHz. In fact, the binary signal coming from the
primitive generator polynomial c(i). The m-Sequences
digital part is sent to the RF stages, where it is
can be generated from output of the LFSR with certain
subsequently modulated with the HF output of the
feedback logic. The generator polynomial governs all
oscillator. Multipliers and oscillator are carrying out the
major characteristics of the generator [7]. For a given
BPSK modulation on a carrier frequency of low-noise
generator polynomial, there are two ways of
amplifier (LNA) and a band-pass filter in order to limits
implementing LFSR. A Galois feedback generator uses
the emission band in accordance with ISM band. BPSK is
only the output bit to add (in Galois field) several stages
used as a digital-to-analogue encoding scheme in this

22 NNGT JOURNAL: International Journal of Embedded Systems Volume 1 July 30,2014


system as it is one of the more power efficient modulation These LPFs also perform as matched filters whose
schemes. impulse responses are matched to the transmitted signal
The radiofrequency stages modeling of the receiver takes to provide the maximum signal-to-noise ratio (SNR) at
advantage of analog and mixed functionalities of VHDL- their output. Then detectors decide which of the possible
AMS language. These stages consist of multipliers, signal waveforms was transmitted from the output of the
oscillators carrying out the BPSK demodulation on a LPFs.
frequency carrier, band-pass filters and a low-pass filter
in order to eliminate double frequencies at the in1 out1 in1 bandpass out1 input output
LNA
demodulator output. BPSK modulation consists of a sinus _Mult_
analog
__Filter__

ref
carrier phase shift according to the binary data RSP
pos p ref REM REFPB

transmitted. This is done by the implementation of a Signal


_puls_
OL

digital-analog multiplier: a mix of binary signal and the neg


n

carrier frequency (2,44GHz).


in_channel out_channel
AWGN

BPSK modulator BPSK demodulator ref RA


baseband Transmitter

spreading_data

baseband receiver
in1 bandpass out1 input output in1 out1 in1 Low_pass out1 input output
LNA LNA
__Filter__
sinus _Mult_ __Filter__
AWGN Channel ref
analog
ref

RRFPB R p ROL ref RRM RRFb RR

bandpass filter bandpass filter low pass filter OL


(filter of chebytchev) (filter of chebytchev) (filter of Bessel)
n

Acos(t) Acos(t) 0

Fig. 13 Radio frequency set developed by Simplorer


radio frequency Transmitter radio frequency receiver
8. Simulation results of radiofrequency
Fig. 12 Transmitter and receiver chain set. stages
Fig. 13 describes radio frequency set developed by 8.1 BPSK modulation
Simplorer. Demodulation is a process of extracting the
original signal from a modulated carrier wave. This block BPSK modulation technique is still commonly used in
is the most important performance taking part in the wireless communication such as WPAN (Wireless
communication system. The BPSK demodulator consists Personal Area Network). BPSK Modulation is a form of
of down-converter, oscillator, a low-pass filter (to Phase Shift Keying (PSK). PSK is a digital modulation
eliminate aliases), and A/D converter (which works by scheme that uses a finite number of phases, where the
sensing zero-crossings). Note that BPSK requires a carrier phase is keyed by the digital modulation signal,
coherent detection. After demodulation, the signal is low- each assigned to a unique pattern of binary bits. In BPSK
pass filtered and sampled at the middle of each bit period. modulation the carrier phase acquires two discrete states
Low-pass filter was implemented using Laplace (0 and 180), which correspond to one bit of the
transform package. BER was calculated by comparing modulation signal. Fig. 14 shows the modeling scheme of
demodulated signal to the original data stream. BPSK modulator.
Since the information is carried in the phase of the
modulated carrier, the receiver is assumed to be able to
generate a reference carrier whose frequency and phase
are identical to those of the carrier at the transmitter. At
the receiver, the received high frequency signal is first
down-converted to a lower intermediate frequency (IF)
before being further processed. The demodulator Fig. 14 Modeling of BPSK modulation
performs the majority of its work at an intermediate or
baseband frequency. The mixer in the coherent BPSK modulation is done by the implementation of a
demodulator converts the IF signal to a baseband signal, digital-analog multiplier: a mix of binary signal (data
by multiplying the incoming IF signal with a locally spread) and the carrier frequency (2,44GHz). Fig. 15
generated carrier reference and the product is passed shows BPSK modulation. In this figure, blue signal
through a low-pass filter (LPF). The LPF removes the presents the waveform of bipolar format and the pink
high-frequency components and selects the difference waveform shows the modulated signal.
component from the mixer output.

23 NNGT JOURNAL: International Journal of Embedded Systems Volume 1 July 30,2014


Fig. 15 BPSK Modulation

The primary factors in choosing a low noise amplifier


(LNA) scheme are noise and power consumption. LNA is
not the first block of a transmitter system. Considering
the system we have chosen to implement, LNA is placed
in behind of modulator stage. It is followed by a band-
pass filter, an AWGN channel that has to be implemented
as a first block of the receiver chain. The Low Noise
Amplifier (LNA) amplifies incoming signals up to levels Fig. 16 Computed signals involved in vhdl-ams mixed: data spread (a)
(F=40 MHz), filtered signal (b), noise added (c), receiver input (d).
suitable for further processing without significantly
reducing the SNR [11]. We modeled this device using a
8.3 AWGN (Additif White Gaussian Noise)
VHDL-AMS description.
The code below shows VHDL-AMS syntax for the global The channel is a medium through which signal is sent
LNA amplifier process: from one place to another place. The selection of different
channels in digital communication is based on the
-- Compression Point following parameter like, bandwidth, power, amplitude,
if (v_input >= compression_voltage) use attenuation and phase requirement at the output, linear
compressed_voltage== compression_voltage; and non-linear characteristics requirement, effect of
elsif (v_input <= -compression voltage) use external interference on the channel. In this
compressed_voltage== - compression_voltage; communication system we are using AWGN channel.
else BER for BPSK modulation in Rayleigh channel
compressed_voltage== v_input; AWGN-Theory
end use; Rayleigh-Theory
-1 Rayleigh-Simulation
-- Gain 10

v_gain == gain* compressed_voltage;


v_output == v_gain;
-2 attnuation de 11 dB
10
Bit Error Rate

8.2 Transmitter output signal


-3
10
The CDMA transmitter output signal (Fig. 16-a) is under
a 40 MHz. (Fig. 16-b) and (Fig. 16-d) show, respectively,
a band-pass filter simulation in front of channel and the -4
10
output signal of the AWGN channel. The noise signal
added is weighted to achieve the desired Signal to Noise
Ratio (Fig. 16-c). -5
10
0 5 10 15 20 25 30 35
Eb/No, dB

Fig. 17 BER variation according to Eb/No of BPSK modulated signal in


AWGN channel and Rayleigh+AWGN channel.

Noise generator is necessary for calculating one of the


most fundamental characteristics of a complete RF
system: bit error rate (BER) vs. signal-to-noise ratio
(SNR). Since a new noise value is produced at a given
rate, one must make sure that in the transient simulation a
new noise value is assigned to each original signal
sample. For that, the sample rate of the original signal

24 NNGT JOURNAL: International Journal of Embedded Systems Volume 1 July 30,2014


must be less than or equal to the rate at which noise is 8.5 LNA (Low Noise Amlificat)
produced.
As the noise libraries are not implemented in VHDLAMS It is necessary to apply a filter which is designed to
language, we develop a channel model based on the Box eliminate the signal which comes from the other reader
Muller noise generation method, allowing the user to set operating in the same channel. The power amplifier (PA)
directly the signal to noise ratio parameter (SNR). This and the low-noise amplifier (LNA) are implemented as
AWGN channel is composed of a white Gaussian noise ideal pure gain blocks so that the functionality of the
generator added to the emitted signal on the carrier algorithm and relation to the theoretical system is quickly
frequency. In order to get a WGN we used the Box- confirmed in simulation. The channel that contains both
Muller [17] transformation which allows generating the the effects of transmitting and receiving antennas and
noise signal: propagation effects is implemented as an ideal gain block
with an additive white Gaussian noise (AWGN).
Although other types of noise and interference are
Where x and y are two random variables. possible in a realistic RF environment, AWGN is most
common. It also allows one to compare BER simulation
8.4 Band-pass filter results to the theoretical calculations.

Band-pass filter is placed in front of demodulator. It


limits the emission band in accordance with ISM band
(transmitted bandwidth = 80MHz). The transfer function
is defined as


Fig. 20 Signal simulation after application of LNA and filter.

8.6 Oscillator
The oscillator defines synchronic instruction for output
voltage.
Tchbyscheff filter configuration is considered as
Vout==sin(2.0*math_pi*now*2.44e9+phase).
optimal. It was chosen for its good rejection despite a bad
phase linearity and frequency response oscillation in the
useful band. The characteristics used are: order 5
Tchbyscheff filter, cutoff frequency 2.44 GHz 40 MHz
with a band-pass undulation of 0.05 dB [4]. Fig. 18 and
19 show, respectively, a band-pass filter simulation in
front of channel and behind a channel.

Fig. 21 Oscillator simulation using Simplorer.

8.7 Multiplier
It is composed by a single instruction: Vout=Vin1*Vin2.

Fig. 18 Simplorer band-pass filter simulation in front of channel.

Fig. 22 Simulation result after application of a multiplier.

8.8 Low-Pass filter


Fig. 19 Simplorer band-pass filter simulation in behind of channel. Low-pass filter is placed on the output of the
demodulator. Bessel filter has the best properties. Indeed,
the rejection is reduced due to the frequency offset
between the useful signal and signal to be rejected (4.88

25 NNGT JOURNAL: International Journal of Embedded Systems Volume 1 July 30,2014


GHz). It makes little deformations of impulsion response.
It also shows a very good linearity in phase. The Bessel
filter of order 5 and cutoff frequency of 40MHz was
chosen [5]. Transfer function is defined as:

Fig. 25 Simulation result of signal variation before, during and after


transmission in AWGN channel.

Fig. 23 simulation of Low-pass filter

9. Matlab/Simulink block diagram and


simulation result
A global system of communication (transmission and
reception) is verified by Simulink as chown in Fig. 24.
The signal arriving at the receiver is noisy due to its
transmission across the AWGN channel. The input signal
in the receiver is then processed by the RF section to
cancel the noise. Then it will be implemented in
baseband. The data received will be despread by the Fig. 26 Signal variation simulation after band-pass filter, after BPSK
despreading block. To recover the transmitted frame demodulator and after low-pass filter.
correctly, the PN-code must be synchronized with the
received signal by synchronization block. Finally, the Fig. 27 shows three waveforms. Two top waveforms are
signal is decoded by a decoding block passed to stage transmitted and received digital data streams (taken on
data processing. Output and input signals are phase shift. the input of D/A converter and the output of the A/D
This shift is caused by signal treatment time. (time to converter). The bottom waveform is the received analog
signal cross radiofrequency stages). signal (after filtering but before sampling). One can
clearly see several bit errors (discrepancies between input
and output digital data bits) for this particular time
interval due to high noise level (SNR is 0dB) in the
system. The BER for ideal theoretical BPSK system is
given by the following formula:

where Eb is energy per bit and No is noise power density.

Fig. 24 Radio frequency set developed by Simulink

Fig. 27 Signal simulation after and before A/D conversion.

26 NNGT JOURNAL: International Journal of Embedded Systems Volume 1 July 30,2014


10. Conclusion spectrum (DS-SS) transmitter; International conference on model and
information and communication systems; MICS 2010, MAROCCO.
[8] Intissar Toihria, Rim Ayadi and Mohamed Masmoudi; Analysis of
This paper presents a contribution to the modeling of a a Third-Order Charge-Pump Phase-Locked Loops used for Wireless
chain of transmission using the direct sequence spread Sensor Transceiver; International Journal of Computer Applications,
Volume 77 - No. 5, September 2013.
spectrum. Different blocks of system architecture are [9] I. Grout and J. Santana; A communications system modeling study
developed considering WSN propriety. VHDL-AMS using VHDL-AMS; proceeding of ISPLC conference: Power Line
language is applied. Work presented in this paper shows Communications and Its Applications; p169-176, 2000.
the interest of VHDL-AMS. It also demonstrates the [10] Pavel Nikitin, Erik Normark, Cherry Wakayama, and Richard Shi;
VHDL-AMS modeling and simulation of BPSK transceiver system;
advantages of co-simulation Matlab-VHDL. The tools ICCSC - IEEE International Conference on Circuits and Systems for
should be used for different design including validation. Communications 2004.
The latter must be able to simulate electrical behavior. It [11] F . Lohse ,V .Zerbe; Model based performance estimation in
should permit a co-simulation be useful for the physics of zigbee based wireless sensor networks; international conference on
microelectronics, serbia, 16-19 may, 2010.
failure explanations as well as interface for tools [12] N. Vlajic, D. Stevanovic; Performance Analysis of ZigBee-based
designing circuits towards certain reliability. The Wireless Sensor Networks with Path-Constrained Mobile Sink(s);
included models will be based on circuit simulation International Conference on Sensor Technologies and Applications, in
(Simplorer), We presented and implemented all the Toronto, Canada 2009.
[13] Kee-Min Kim, Kyung-Jung Lee, Jae-Oh Kim, Jae-Han Park,
blocks constituting the system (differential coding, PN- Moon-Hong Baeg and Hyun-Sik Ahn; Implementation of a ZigBee-
Code generation, spreading spectrum and modulation). based High Performance Sensor node for the Robot Environment
The length of the generated codes can easily be modified Platform; International Conference on Control, Automation and
by changing only the input coefficients of the polynomial Systems Oct. 27-30, in KINTEX, Gyeonggi-do, Korea 2010.
[14] Latha H N, Palachandra M V, Madhusudhan Rao; Real Time
generator without any modification of the implemented Implementation and Performance Evaluation of WCDMA System over
system. Simulations tests and the signals obtained AWGN Channel on TMS320C6713DSK; Sciverse SienceDirect journal
validate the descriptions suggested for the parameters Procedia Technology 4, 82 86, Elsevier 2012.
presented in the specifications (standard 802.15.4). This [15] Mehmet Sonmez , Ayhan Akbal; FPGA-Based BASK and BPSK
Modulators Using VHDL: Design, Applications and Performance
model can be considered as a new IP and can be reused Comparison for Different Modulator Algorithms; International Journal
easily by many teams. As the modulation and de- of Computer Applications (0975 8887) Volume 42 No.13, March
modulation process is very important for communication 2012.
system, it can be useful to try other modulation process [16] Aniruddha Chandraa,, Ananya Patra , Chayanika Bose;
Performance analysis of PSK systems with phase error in fading
such as OFDM (orthogonal frequency division channels: A survey; Physical Communication 4, 6382 journal of
multiplexer). This last can transmit signal for long Science Direct 2011.
distance and permit receiving the accurate information. [17] Kollu Ranga Rao,Naveen Kumar Boiroju and M. Krishna;
Generation of standard normal random variables; department of
statistics ;Osmania University,Hyderabad ,India, page 83-85, 2011.
References [18] Karim JABER, Ahmed FAKHFAKH and Nouri MASMOUDI;
[1] Wenbin Jiang, Hai Jin, Chen Yu and Chao Liu; Introduction and VHDL-AMS Behavioral Modeling and Simulation of M-QAM
Overview of Wireless Sensor Networks; Handbook of Research on transceiver system; International Conference: Sciences of Electronic,
Developments and Trends in Wireless Sensor Networks: From Principle Technologies of Information and Telecommunications (SETIT 2007)
to Practice, Copyright 2010. 19 pages. March 25-29, 2007 TUNISIA.
[2] Elena MARTN and Carles FERRER; Sensors and transductors;
ISSN 1726- 5479 2003 by IFSA http://www.sensorsportal.comm
Sensors & Transducers Magazine, Vol.37, Issue 11, November 2003,
pp.38-46.
[3] Mallikarjunaswamy .S, Dr.Nataraj .K. R, Dr.Rekha .K. R; Design
of High Speed Reconfigurable Coprocessor for Multiplier/Adder and
Subtractions Operations; IOSR Journal of Electronics and
Communication Engineering (IOSRJECE) ISSN: 2278-2834 Volume 2,
Issue 4 (Sep.-Oct. 2012), PP 10-15, www.iosrjournals.org.
[4] Cline Guilleminot , Laurent Andrieux, Jean Jacques Mercier; A
contribution to a virtual prototyping for a spread spectrum
telecommunication system using VHDL-AMS; BMAS05- IEEE
International Behavioral Modeling and Simulation Confrence, SanJose:
Etats-Unis (2005).
[5] Sylvain Bourdel, Eric Campo, Patrick Melet, and Laurent
Andrieux; From modeling of a CDMA transceiver in indoor
environment to an ASIC circuit synthesis; journal of telecommunication
and information technology 2001 p36-45.
[6] Lucas Alves DaSilva, Eric Dekneuvel, Alexandre Lewicki,
Benjamin Nicolle, Gilles Jacquemod; Virtual RF system platform
dedicated to heterogeneous complex SoC design; Microelectronics
Journal 43 (2012) 98109, Elsevier Ltd.
[7] A.ALAMI HASSANI, M.ZOUAK, F.ABDI &M.MRABTI;
VHDL-AMS modeling and simulation of a direct sequence spread

27 NNGT JOURNAL: International Journal of Embedded Systems Volume 1 July 30,2014

Você também pode gostar