

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Project assignment #1 for the course ece 6720: fuzzy control systems, where students are required to design, simulate, and implement a segment of a fuzzy logic hardware accelerator module using vhdl and xilinx webpack 10.1i. The project involves creating a schematic diagram, designing and simulating circuits, approximating maximum clock rates, and demonstrating correct operation through simulation results.
Typology: Assignments
1 / 2
This page cannot be seen from the preview
Don't miss anything!


Fall 2008 Project Assignment # (Team Project) Total: 120 pts. (30% of the course grade) Due 6:30pm, Tuesday, November 11, 2008
Design, simulate and implement a segment of a fuzzy logic hardware accelerator module ( FLHA ) for a single-input single-output model using VHDL along with Xilinx WebPack 10.1i and Mentor Graphics ModelSim MXE-III tools. The accelerator should support both fuzzy model building and inference computations. It is assumed that a host computer sends down fuzzified input data in the form of long binary words to the accelerator through a 32-bit data bus , and it will take the fuzzy output data (without defuzzification) generated by the FLHA in the case of an inference operation. The simplified host processor interface has the signals as follows: D 0 - D (^31) (Bidirectional Data Bus), RD* (Read - Active Low), WR* (Write - Active Low), RDY* (Ready - Active Low), A 2 - A 0 (Address), SEL* (Select - Active Low) and RESET* (Active Low, same effect than that of the CLEAR command below). You may assume that the signal SEL* (the output of an address decoder circuit) is made available for you. When SEL* is at low level the host processor is accessing to the register model of the FLHA module.
In order to facilitate pipelined operations, both the input and the output data of the FLHA should be registered. The register model with respect to accessing to the resources of the FLHA by the host machine is given below. When the accelerator is ready to transfer data between the selected register and the data bus, it will assert signal RDY*. For the sake of simplicity, you may assume that no delays (wait states) will be needed to access to the FLHA registers by the host machine. Fuzzy input and output are denoted as X , and Z , respectively. The discrete representation of the fuzzy data is as follows: there are 8 elements in each universal space, and the degree of membership is a discrete set of 16 numbers in [0, 1]. Mathematical models to build a linguistic model and to do inference for a SISO system are given in the Instructor's Lecture Notes. In addition, parallel algorithms for model building and inference, respectively, are also given in the Lecture Notes. You should include in your design a high-speed 8x32 - bit Rule Memory Module in the form of eight, individually accessible 32-bit registers to store the aggregated rule base during model building and inference operations, respectively. Map your hardware accelerator to a Xilinx Vertex-2 Pro XC2VP30-5FF896 FPGA chip (speed grade: -5, I/O attribute: PCI-X compatible) when you create your project using the WebPack 10.1i tools.
Tasks:
a) Give a narrative summary along with a detailed schematic diagram of your circuit. It should include host interface data, and control signals, a model/inference engine, and a control unit. In the schematics, represent the Vertex-2 chip by a rectangular block with signal names assigned to the appropriate pins. Also give the detailed design steps (i.e., a functional block diagram, Truth Tables, and a state transition graph for the Control Unit) along with your comments. For the sake of simplicity, low-voltage signal buffers for the host interface are not required at this point. (24pts.) b) Design, simulate and also run the implement step for the circuits mapped to your Vertex-2 chip. Contents of the Rule Memory should be included in your simulations. Attach
a hard copy of your .vhd , and .do files, simulation timing diagrams along with comments , and the Resource Allocation Section of the Pad Report to your Project Report. (66pts.) c) You should approximate the maximum clock rate of the control unit for your design and a peak rate in terms of fuzzy logic operations per second for your FLHA module. (6pts.)
d) Demonstrate the correct operation of your FLHA module by means of simulation results to the course instructor. (24pts.) Register model of the FLHA Module (while SEL is asserted):*
A 2 A 1 A 0 Register Function Note
0 0 0 X store Access is Write Only 0 1 0 ZIN store Access is Write Only 0 1 0 ZOUT load Access is Read Only 1 0 0 CMND store Access is Write Only (D 0 = 0 for model, D 0 = 1 for inference, D 1 = 1 GO, D 1 = 0 Idle). D 0 = D 1 = 0 after RESET 1 0 1 STAT load Access is Read Only (D 0 = 0: NOT DONE YET, D 0 = 1: DONE). D 0 = 1 after RESET 1 1 0 CLEAR store CMND Register and ADDR_CNTR are cleared, D 0 = 1 is set in STAT, and Controller FSM is in its initial state