CN103796336A - FPGA-based ZigBee wireless sensing network IP construction method - Google Patents

FPGA-based ZigBee wireless sensing network IP construction method Download PDF

Info

Publication number
CN103796336A
CN103796336A CN201310669392.6A CN201310669392A CN103796336A CN 103796336 A CN103796336 A CN 103796336A CN 201310669392 A CN201310669392 A CN 201310669392A CN 103796336 A CN103796336 A CN 103796336A
Authority
CN
China
Prior art keywords
module
data
communication module
wireless communication
bus
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201310669392.6A
Other languages
Chinese (zh)
Inventor
董亮
朱磊
王海元
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qiqihar University
Original Assignee
Qiqihar University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qiqihar University filed Critical Qiqihar University
Priority to CN201310669392.6A priority Critical patent/CN103796336A/en
Publication of CN103796336A publication Critical patent/CN103796336A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention relates to an FPGA-based ZigBee wireless sensing network IP construction method and belongs to the technical field of wireless sensing network devices and applications. According to the FPGA-based ZigBee wireless sensing network IP construction method, a processor module, an Avalon bus, a counter module, an asynchronous communication module, a wireless communication module, a digital frequency control module, an instantaneous memory storage module, a DMA control module, a power source control module and the like are provided; one end of a NiosIICPU processor is connected with the Avalon bus, and the other end of the NiosIICPU processor is connected with a debugging interface; one end of a counter is connected with the bus, and the other end of the counter is connected with a data control end; and one end of the wireless communication module is connected with a transmitting-end controller, and the other end of the wireless communication module is connected with the bus. The method includes the following five steps of: step one, hardcore construction; step two, hard core function and logic simulation; step three, soft core construction; step four, incentive simulation and port verification; and step five, ZigBee IP core generation.

Description

ZigBee radio sensing network IP kernel construction method based on FPGA
One, technical field
The present invention relates to the application that FPGA embeds ZigBee IP kernel, relate in particular to a kind of ZigBee radio sensing network IP kernel construction method based on FPGA platform, belong to the technical field of radio sensing network equipment and application.
Two, background technology
The features such as ZigBee in the market has the features such as cost is low, networking is simple, network capacity is large, but shortcoming is to realize its function on ZigBee chip, and arithmetic speed is slow, system response time is long, logic function is simple.Along with the development of microelectric technique, nanometer technology and programming device and EDA developing instrument, making to realize its function on fpga chip becomes possibility.Therefore it is necessary designing a portable, configuring the ZigBee IP kernel based on FPGA simple, application efficiency is high and cost is less.In FPGA, not only can realize the repertoire of ZigBee completely but also can also carry out data processing fast to obtained data.A kind of ZigBee radio sensing network IP kernel construction method based on FPGA is disclosed herein.
Three, summary of the invention
1, goal of the invention
Existing ZigBee processor is based on CMOS technique, although have lower system power dissipation, its design is complicated, portable poor, and application efficiency is not high.The present invention adopts the design to ZigBee IP kernel to be embedded in FPGA, object is the poor feature of limitation, transplantability in order to overcome ZigBee chip, the IP kernel construction method that a kind of ZigBee based on programmable gate array (FPGA) is provided, it can realize ZigBee repertoire; And have transplantability strong, configure the features such as simple, improve system integration operational data speed.
2, technical scheme
1), the present invention is a kind of ZigBee radio sensing network IP kernel construction method based on FPGA, it is made up of processor module, Avalon bus, counter module, asynchronous communication module, wireless communication module, numerical frequency control module, immediate memory memory module, DMA control module, energy supply control module etc.Signal between them flows to and position connects as described below:
NiosII CPU processor one end is connected to Avalon bus, and one end is connected to debugging interface in addition; Counter module one end is connected to the other end in bus and is connected to Data Control end; Wireless communication module one end is connected to the transmitting terminal controller other end and is connected in bus.
1. total line traffic control arbitration modules (01) one end is received NiosII cpu controller (02), one end is received immediate memory memory module (06), and it accepts to pass through the control of Avalon bus to wireless module from the control data of CPU;
2. wireless communication module (05) is the core component of whole IP kernel, and it adopts the wireless transceiving modes of Zigbee protocol regulation to carry out networking.It is upper that immediate memory memory module (06) is received in total line traffic control arbitration (01), realizes the buffer memory that receives data, so that the processing of CPU to data.Complete the period allocated of a receiving and transmitting signal by counter module (03).
3. asynchronous communication module (04) is received in Avalon bus, by the asynchronous communication of signal being handled to the acquisition process of paired data, complete the digital frequency division of signal is completed to the preparation to signal transmitting by numerical frequency control module (07).
4. dma module (08) for by the information reproduction that is sent to module to internal memory (RAM), and allow processed information automatically to move on to external peripheral devices from internal memory.Be convenient to the memory function of equipment to signal.
5. energy supply control module (09) is controlled whole IP kernel operating voltage and electric current, works for system powers on.
2), the present invention is a kind of ZigBee radio sensing network IP kernel construction method based on FPGA, the concrete steps of the method are as follows, its flow chart as shown in the figure.
Step 1: stone builds.According to ZigBee input and output protocol requirement, design object is divided into each functional module.Functional module mainly comprises total line traffic control arbitration modules (01), NiosII cpu controller (02), counter module (03), asynchronous mutual trust module (04), wireless communication module (05), immediate memory memory module (06), numerical frequency control module (07), DMA control module (08), energy supply control module (09).Then adopt hardware description language Verilog HDL write code construction stone and realize functions, should write logical constraint condition simultaneously and meet the demands.
Step 2: stone function and logical simulation.Application ModelSim emulation tool carries out functional simulation to constructed stone modules and top-level module, verifies the correctness of design according to the waveform of simulation result.If do not meet, should revise code, until complete functions requirement.Application QuartusII software translating creating environments project file, the functions module file using upper step by emulation is as input file, and arranging and compiling the parameter of changing commanders is the port file that has compiled rear output net meter file and input and output.
Step 3: soft core builds.Build wireless communication module (05) and numerical frequency control module (07) and realize the transmission-receiving function of wireless data by NiosII.
Step 4: excitation emulation and port authorization: before distributing, net meter file is carried out to functional verification, judge according to simulation result whether allomeric function meets design requirement.If do not meet, return to step 1, revise ungratified code, until meet.
Step 5: generate ZigBee IP kernel.After logical simulation, can generate a net meter file and corresponding port input-output file.Under QuartusII software, set up Top-layer Design Method file and call the ZigBee IP kernel of generation, distribute input and output to call in order to other module.
Wherein, the stone described in step 2 be based on described in Verilog language and under QuartusII translation and compiling environment comprehensive realization.QuartusII translation and compiling environment is the FPGA Integrated Development Environment that ALTERA company releases, function mainly comprises design input, comprehensive, emulation, realization and download, cover the overall process of FPGA exploitation, need to be by other any third party's eda softwares in function.
3) design effect
Existing ZigBee processor is based on CMOS technique, although have lower system power dissipation, its design is complicated, portable poor, and application efficiency is not high.Adopt the design to ZigBee IP kernel to be embedded in FPGA herein, object is the poor feature of limitation, transplantability in order to overcome ZigBee chip, and it is necessary designing a portable, configuring the ZigBee IP kernel based on FPGA simple, application efficiency is high and cost is less.In FPGA, not only can realize the repertoire of ZigBee completely but also can also carry out data processing fast to obtained data.
Four, accompanying drawing explanation
Fig. 1 is a simple ZigBee IP kernel system schematic based on FPGA
Fig. 2 is the ZigBee IP kernel system architecture diagram based on FPGA of the present invention
Fig. 3 is the construction method FB(flow block) of the ZigBee IP kernel based on FPGA of the present invention
Symbol description in figure is as follows:
CPU (Central Processing Unit): central processing unit;
FPGA: field programmable gate array;
IO: digital quantity input/output port;
DMA: direct memory access.
Five, embodiment
For system specialization mentality of designing of the present invention, therefore provide a simple examples application of Zigbee protocol, as shown in the figure.This application example system is made up of NiosII CPU, Avalon bus, counter module, asynchronous communication module, wireless communication module, numerical frequency control module.Wireless communication module is complete paired data transmitting-receiving operation under the control of NiosII CPU, by Avalon bus access control counter module and numerical frequency control module, and complete paired data frequency division and counting operation.Wherein wireless communication module is the core of whole equipment, for the ZigBee IP kernel based on FPGA provides hardware realization condition, allow data send according to the requirement of Zigbee protocol stack, therefore design collection and the sending function of the complete paired data of equipment of the ZigBee IP kernel based on FPGA.
Realize radio transmission-receiving function in order to be embedded into ZigBee radio sensing network IP kernel in FPGA, method is that NiosII CPU sends the transmitting-receiving of controlling wireless data in instruction FPGA bus.
Embodiment:
Shown in Fig. 1, be a kind of ZigBee radio sensing network IP kernel construction method structure chart based on FPGA, to send access as example by ZigBee radio sensing network being carried out to a signal, describe one embodiment of the present of invention.
1, the present invention is a kind of ZigBee radio sensing network IP kernel construction method based on FPGA, and it is made up of processor module, Avalon bus, counter module, asynchronous communication module, wireless communication module, numerical frequency control module, immediate memory storage control module, DMA control module, energy supply control module etc.Signal between them flows to and position connects as described below: NiosII CPU processor one end is connected to Avalon bus, and one end is connected to debugging interface in addition; Counter module one end is connected to the other end in bus and is connected to Data Control end; Wireless communication module one end is connected to the transmitting terminal controller other end and is connected in bus.1) total line traffic control arbitration modules (01) one end is received NiosII cpu controller (02), one end is received immediate memory memory module (06), and it accepts to pass through the control of Avalon bus to wireless module from the control data of CPU; 2) wireless communication module (05) is the core component of whole IP kernel, and it adopts the wireless transceiving modes of Zigbee protocol regulation to carry out networking.It is upper that immediate memory memory module (06) is received in total line traffic control arbitration (01), realizes the buffer memory that receives data, so that the processing of CPU to data.Complete the period allocated of a receiving and transmitting signal by counter module (03).3) asynchronous communication module (04) is received in Avalon bus, by the asynchronous communication of signal being handled to the acquisition process of paired data, complete the digital frequency division of signal is completed to the preparation to signal transmitting by numerical frequency control module (07).4) dma module (08) for by the information reproduction that is sent to module to internal memory (RAM), and allow processed information automatically to move on to external peripheral devices from internal memory.Be convenient to the memory function of equipment to signal.5) energy supply control module (09) is controlled whole IP kernel operating voltage and electric current, works for system powers on.
Described counter module (03) is made up of 8 digit counters, 16 digit counters, a protocol address counter, the tally function of complete paired data, its module is connected in bus and can is completed the data of all buses of flowing through are carried out to counting work by bus control module (01).
Described asynchronous communication module (04) is in the time sending data, and the time slot between the data that send can be arbitrarily, and certainly, receiving terminal must be carried out the preparation of reception the moment.Transmitting terminal can start to send data at any time, therefore must add mark in the place of the beginning of each character and end, adds start bit and position of rest, to receiving terminal can correctly be got off each receive character.
Described wireless communication module (05) is the core of whole ZigBee IP kernel, mainly formed by radio memory, CSMA/CA gate processor, wireless data interface etc., be connected with bus arbitration control module (01) by Avalon bus, by total line traffic control core CPU (02) controller, wireless communication module (05) controlled the object of radio communication.
Described numerical frequency control module (06) is carried out FREQUENCY CONTROL to data, data for new reception complete frequency dividing control by this module, the dual control of gain to signal and frequency, reach the function that meets its transmission data, this module and wireless communication module (05) intercommunication, controls its fractional frequency signal by NiosII CPU (02) and finally completes transmission.
Described immediate memory memory module (07) is that the data to gathering are carried out immediate memory storage, is being processed and is being sent by wireless communication module (05) by NiosII CPU (02) by the data of wireless communication module (05) and instantaneous the storing in this module of the data of bus control module (01) energy.
Described dma module (08) for by the information reproduction that is sent to module to internal memory (RAM), and allow processed information automatically to move on to external peripheral devices from internal memory.Be convenient to the memory function of equipment to signal.Described energy supply control module (09) is controlled whole IP kernel operating voltage and electric current, works for system powers on.
2), the present invention is a kind of ZigBee radio sensing network IP kernel construction method based on FPGA, the concrete steps of the method are as follows, its flow chart as shown in the figure.
Step 1: stone builds.According to ZigBee input and output protocol requirement, design object is divided into each functional module.Functional module mainly comprises total line traffic control arbitration modules (01), NiosII cpu controller (02), counter module (03), asynchronous mutual trust module (04), wireless communication module (05), immediate memory memory module (06), numerical frequency control module (07), DMA control module (08), energy supply control module (09).Then adopt hardware description language Verliog HDL write code construction stone and realize functions, should write logical constraint condition simultaneously and meet the demands.
Step 2: stone function and logical simulation.Application ModelSim emulation tool carries out functional simulation to constructed stone modules and top-level module, verifies the correctness of design according to the waveform of simulation result.If do not meet, should revise code, until complete functions requirement.Application QuartusII software translating creating environments project file, the functions module file using upper step by emulation is as input file, and arranging and compiling the parameter of changing commanders is the port file that has compiled rear output net meter file and input and output.
Step 3: soft core builds.Build wireless communication module (05) and numerical frequency control module (07) and realize the transmission-receiving function of wireless data by NiosII.
Step 4: excitation emulation and port authorization: before distributing, net meter file is carried out to functional verification, judge according to simulation result whether allomeric function meets design requirement.If do not meet, return to step 1, revise ungratified code, until meet.
Step 5: generate ZigBee IP kernel.After logical simulation, can generate a net meter file and corresponding port input-output file.Under QuartusII software, set up Top-layer Design Method file and call the ZigBee IP kernel of generation, distribute input and output to call in order to other module.
Wherein, the stone described in step 2 be based on Verilog language description and under QuartusII translation and compiling environment comprehensive realization.QuartusII translation and compiling environment is the FPGA Integrated Development Environment that ALTERA company releases, function mainly comprises design input, comprehensive, emulation, realization and download, cover the overall process of FPGA exploitation, need to be by other any third party's eda softwares in function.

Claims (3)

1. the present invention is a kind of ZigBee radio sensing network IP kernel construction method based on FPGA, it is characterized in that: it is made up of processor module, Avalon bus, counter module, asynchronous communication module, wireless communication module, numerical frequency control module, immediate memory storage control module, DMA control module, energy supply control module etc.Signal between them flows to and position connects as described below: NiosII CPU processor one end is connected to Avalon bus, and one end is connected to debugging interface in addition; Counter module one end is connected to the other end in bus and is connected to Data Control end; Wireless communication module one end is connected to the transmitting terminal controller other end and is connected in bus.
Described counter module is made up of 8 digit counters, 16 digit counters, a protocol address counter, the tally function of complete paired data, its module is connected in bus and can is completed the data of all buses of flowing through are carried out to counting work by bus control module.
Described asynchronous communication module is in the time sending data, and the time slot between the data that send can be arbitrarily, and certainly, receiving terminal must be carried out the preparation of reception the moment.Transmitting terminal can start to send data at any time, therefore must add mark in the place of the beginning of each character and end, adds start bit and position of rest, to receiving terminal can correctly be got off each receive character.
Described wireless communication module is the core of whole ZigBee IP kernel, mainly formed by radio memory, CSMA/CA gate processor, wireless data interface etc., be connected with bus arbitration control module by Avalon bus, by total line traffic control core cpu controller, wireless communication module controlled the object of radio communication.
Described numerical frequency control module is carried out FREQUENCY CONTROL to data, data for new reception complete frequency dividing control by this module, the dual control of gain to signal and frequency, reach the function that meets its transmission data, this module and wireless communication module intercommunication, control its fractional frequency signal by NiosII CPU and finally complete transmission.
Described immediate memory memory module is that the data to gathering are carried out immediate memory storage, is being processed and is being sent by wireless communication module by NiosII CPU by the data of wireless communication module and instantaneous the storing in this module of the data of bus control module energy.
Described dma module for by the information reproduction that is sent to module to internal memory (RAM), and allow processed information automatically to move on to external peripheral devices from internal memory.The equipment of being convenient to has a storage function to signal.
The whole IP kernel operating voltage of described energy supply control module control and electric current, work for system powers on.
2. a kind of ZigBee radio sensing network IP kernel construction method based on FPGA according to claim 1, is characterized in that: the concrete steps of the method are as follows:
Step 1: stone builds.According to ZigBee input and output protocol requirement, design object is divided into each functional module.Functional module mainly comprises total line traffic control arbitration modules, NiosII cpu controller, counter module, asynchronous mutual trust module, wireless communication module, immediate memory memory module, numerical frequency control module, DMA control module, energy supply control module.Then adopt hardware description language Verilog HDL write code construction stone and realize functions, should write logical constraint condition simultaneously and meet the demands.
Step 2: stone function and logical simulation.Application ModelSim emulation tool carries out functional simulation to constructed stone modules and top-level module, verifies the correctness of design according to the waveform of simulation result.If do not meet, should revise code, until complete functions requirement.Application QuartusII software translating creating environments project file, the functions module file using upper step by emulation is as input file, and arranging and compiling the parameter of changing commanders is the port file that has compiled rear output net meter file and input and output.
Step 3: soft core builds.Build wireless communication module and numerical frequency control module and realize the transmission-receiving function of wireless data by NiosII.
Step 4: excitation emulation and port authorization: before distributing, net meter file is carried out to functional verification, judge according to simulation result whether allomeric function meets design requirement.If do not meet, return to step 1, revise ungratified code, until meet.
Step 5: generate ZigBee IP kernel.After logical simulation, can generate a net meter file and corresponding port input-output file.Under QuartusII software, set up Top-layer Design Method file and call the ZigBee IP kernel of generation, distribute input and output to call in order to other module.
3. it is characterized in that according to claim 2: the stone described in step 2 be based on Verilog language description and under QuartusII translation and compiling environment comprehensive realization.QuartusII translation and compiling environment is the FPGA Integrated Development Environment that ALTERA company releases, function mainly comprises design input, comprehensive, emulation, realization and download, cover the overall process of FPGA exploitation, need to be by other any third party's eda softwares in function.
CN201310669392.6A 2013-12-04 2013-12-04 FPGA-based ZigBee wireless sensing network IP construction method Pending CN103796336A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310669392.6A CN103796336A (en) 2013-12-04 2013-12-04 FPGA-based ZigBee wireless sensing network IP construction method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310669392.6A CN103796336A (en) 2013-12-04 2013-12-04 FPGA-based ZigBee wireless sensing network IP construction method

Publications (1)

Publication Number Publication Date
CN103796336A true CN103796336A (en) 2014-05-14

Family

ID=50671480

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310669392.6A Pending CN103796336A (en) 2013-12-04 2013-12-04 FPGA-based ZigBee wireless sensing network IP construction method

Country Status (1)

Country Link
CN (1) CN103796336A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105843993A (en) * 2016-03-17 2016-08-10 中国科学院微电子研究所 IP generation method and tool
CN111787505A (en) * 2020-07-06 2020-10-16 北京理工大学 Modular reconfigurable wireless network test node system and working method
CN113126569A (en) * 2021-04-19 2021-07-16 北京航空航天大学 Digital twin equipment construction method and system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100232324A1 (en) * 2009-03-16 2010-09-16 Microsoft Corporation Full-Duplex Wireless Communications
CN203260028U (en) * 2013-03-26 2013-10-30 江南大学 Sensor network SoC prototype verification platform based on FPGA

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100232324A1 (en) * 2009-03-16 2010-09-16 Microsoft Corporation Full-Duplex Wireless Communications
CN203260028U (en) * 2013-03-26 2013-10-30 江南大学 Sensor network SoC prototype verification platform based on FPGA

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
袁源、王紫婷、刘洋帆: "基于FPGA和ZigBee技术的智能家居系统", 《信息通信》 *
郑朝霞: "无线传感器网络节点芯片关键技术的研究与实现", 《华中科技大学博士学位论文》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105843993A (en) * 2016-03-17 2016-08-10 中国科学院微电子研究所 IP generation method and tool
CN105843993B (en) * 2016-03-17 2020-10-20 中科芯时代科技有限公司 IP generation method and tool
CN111787505A (en) * 2020-07-06 2020-10-16 北京理工大学 Modular reconfigurable wireless network test node system and working method
CN113126569A (en) * 2021-04-19 2021-07-16 北京航空航天大学 Digital twin equipment construction method and system

Similar Documents

Publication Publication Date Title
WO2018040016A1 (en) Protocol converter and protocol conversion method
CN102184148B (en) AT96 bus controller IP (internet protocol) core based on FPGA (field programmable gate array) and construction method thereof
CN103064805B (en) SPI controller and communication means
CN103200081B (en) A kind of things-internet gateway development platform towards heterogeneous network environment
CN204291023U (en) A kind of RS232, RS485 and CAN based on FPGA turns Ethernet device
CN103095537A (en) Numerical control device capable of concurrently controlling two-class industrial Ethernet bus slave station equipment
Yang et al. A high-performance on-chip bus (MSBUS) design and verification
Sun et al. Design of FPGA-based multimedia node for WSN
CN103210589A (en) Incorporating an independent logic block in a system-on-a-chip
CN104142876A (en) Function verification method and verification environmental platform for USB (universal serial bus) equipment controller modules
CN103870421A (en) FPGA (Field Programmable Gate Array) based serial interface and PWM (Pulse Width Modulation) combined application IP (Intellectual Property) core
CN105281433A (en) Distribution terminal communication system
CN103796336A (en) FPGA-based ZigBee wireless sensing network IP construction method
CN102495552A (en) Real-time simulation system oriented to space-borne electronic system
CN103019990A (en) Method for uploading data at collection end through starting PCI-E (Peripheral Component Interconnect-Express) bus DMA (Direct Memory Access)
CN206100049U (en) Protocol converter
CN107608255A (en) A kind of chip architecture reconstructing method and device
Bacciarelli et al. Design, testing and prototyping of a software programmable I2C/SPI IP on AMBA bus
CN103150952B (en) Reconfigurable electronic design automation (EDA) experimental platform
JP6452719B2 (en) Field programmable gate array and communication method
CN110401586A (en) A kind of bus communication, device, equipment and readable storage medium storing program for executing
CN201993640U (en) AT96 bus controller IP (internet protocol) core based on FPGA (Field Programmable Gate Array)
CN104570856B (en) Online-programmable monitoring network system
CN208638364U (en) A kind of LVDS bus detection system based on Ethernet
CN205622888U (en) Intelligent terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20140514

WD01 Invention patent application deemed withdrawn after publication