Presentation is loading. Please wait.

Presentation is loading. Please wait.

AppliedVHDLV1 Aim: Capture, simulate, implement appliedVHDLV1 System Supports GUI r/w access from/to FPGA CSR block This document contains: EE427 submission.

Similar presentations


Presentation on theme: "AppliedVHDLV1 Aim: Capture, simulate, implement appliedVHDLV1 System Supports GUI r/w access from/to FPGA CSR block This document contains: EE427 submission."— Presentation transcript:

1 appliedVHDLV1 Aim: Capture, simulate, implement appliedVHDLV1 System Supports GUI r/w access from/to FPGA CSR block This document contains: EE427 submission / demonstration instructions appliedVHDL project overview appliedVHDLV1 Context Diagram (CD) appliedVHDLV1 Context Diagram Data Dictionary (DD) appliedVHDLV1 Data Flow Diagram (DFD) appliedVHDLV1 System elements appliedVHDLV1 System hierarchy Assignment steps P2.1 CSRBlk Design CSRBlk Design P2.2 IOCSRBlkV1 DesignIOCSRBlkV1 Design P2.3 NUIGProjectV1 Design NUIGProjectV1 Design P2.4 appliedVHDLV1 DesignappliedVHDLV1 Design P2.5 Implementation on FPGA Implementation on FPGA EE427 Phase 2 Assignment : Contents

2 appliedVHDLV1 Context Diagram Aim: Capture, simulate, implement appliedVHDLV1 System Supports GUI r/w access from/to FPGA CSR block

3 appliedVHDLV1 clk : system strobe (50MHz oscillator) rst : asynchronous system reset (high asserted). Clears (or sets) registers RxD : serial port data received by appliedVHDL system from host TxD : serial port data transmitted to host by appliedVHDL system seg7L(6:0), dpL : 7-segment display data signals. Assertion (low) lights LEDS on the Digilent Spartan-3 hardware development system anL(3:0) : anode control signals (asserted low), e.g., upper 7-seg display segment 0 will light when anL(3)=’0’ and seg7L(0)=’0’ ld(7:0) : 8 leds. Assertion (H) lights leds Context Diagram Data Dictionary

4 appliedVHDLV1 Supports CSR r/w access DFD 1.1 V1 DFD 3.0 DFD 2.0 NUIGProjectV1 Data Flow Diagram (DFD 0.0)

5 appliedVHDLV1 Project Element Activity (ref glossary) IOCSRBlkV1IOCSRBlkV1 contains CSRBlk:Control and Status Register (CSR) block C, S, I IOCtrlrV1: I/O controller Finite State Machine (FSM, Parses host GUI commands and data from UART), register command C, FSM, S, ICSRBlk: datCtrlrV1 Simply connects CSROut(7:0) to txDat(7:0) C, S, I Refer to DFD 0.0 Refer to DFD 0.0 appliedVHDLV1 appliedVHDLV1 (top level): C, S, I NUIGProjectV1: contains IOCSRBlkV1 and datCtrlrV1 UART Xilinx UART component Provided displayCtrlr: Multiplexed 7-segment display and LED controller Completed (phase 1)NUIGProjectV1:UARTdisplayCtrlr System Elements Glossary : FSM : Finite State MachineC : VHDL Capture S : Simulation I : Implementation BFM:VHDL Bus Functional Model

6 appliedVHDLV1 Use the active links to browse the design hierarchy and documentation ISE Project : appliedVHDLV1.ise (provides access to all of constituent files) DFD1.0 V1 DFD1.1 V1 P2.3 P2.4 DFD1.1.2 P2.1 NUIGPackage DFD2.0 P2.4 DFD3.0 System Hierarchy cascadedBCDCntrAndDisplay CDCD, DFD1.0 V1DFD1.0 V1 P2.3 P1.1 / P2.4 P1.2 P2.2

7 appliedVHDLV1 rxDat(7:0) : byte-wide data generated by UART from serial byte received from host. rxDat is validated by assertion (h) of rxDatValid rxDatValid :assertion (h) validates rxDat(7:0). Signal remains asserted until assertion of rxDatAck rxDatAck : assertion by FPGA acknowledges receipt of a valid rxDat byte. Signal asserts for one clock period only txDat(7:0) : byte-wide data generated by FPGA and transferred to UART for serialisation and transfer to host PC. txDat is validated by assertion (h) of txDatValid txDatValid : assertion (h) validates txDat(7:0) DFD 0.0 Incremental Data Dictionary

8 appliedVHDLV1 Assignment instructions continued P2. 1CSRBlk –Capture, simulate and synthesise the CSRBlkCSRBlk

9 appliedVHDLV1 Assignment instructions continued P2. 2IOCSRBlkV1 level –Review/verify/complete IOCSRBlkV1.vhd –Decodes UART control/data byte sequence. Handshakes with host via UART byte interface CSR access : provides Control and Status Register (CSR) R/W access (8 byte-wide CSRs) –Includes IOCtrlr FSM process(es), CSRBlk component instance and cmdReg process. –Check VHDL code syntax, synthesise and view RTL schematic. Confirm correctness. –Simulation is not required at this level

10 appliedVHDLV1 IOCtrlrV1 FSM description Refer to course notes on VHDL Finite State Machine Description Refer to FSM flowchart Finite State Machine (FSM) detects and processes control or data byte (rxDat) from UART (on assertion of rxDatValid signal). Decodes : –CSR access : Registers csrAdd(2:0) and csrTask flag write : requires a further data byte (on rxDat) from UART read : provides CSR data byte (csrOut) to UART on txDat Validates byte data transmission to UART (txDatValid assertion) Acknowledges receipt of byte data (rxDat) from UART (rxDatAck assertion)

11 appliedVHDLV1 IOCtrlrV1 FSM : Synthesised RTL Schematic

12 appliedVHDLV1 DFD 1.1.1 (IOCtrlrV1 FSM & cmdReg Testbench Block Diagram

13 appliedVHDLV1 Assignment instructions continued P2.3 NUIGProjectV1 level –Review/verify/complete NUIGProjectV1.vhd. –Includes IOCSRBlkV1 and datCtrlrV1 elements (VHDL code is provided) –Check VHDL code syntax, synthesise and view RTL schematic. Confirm correctness. –Review the NUIGProjectV1_TB.vhd VHDL testbench code and modelsim macro files –Simulate NUIGProjectV1_TB.vhd fully, review the timing waveform and verify correct VHDL model operation. P2. 4 appliedVHDLV1 level –Review/verify/complete appliedVHDLV1.vhd. Includes NUIGProjectV1, UART and displayCtrlr components (VHDL code is provided) –Check VHDL code syntax, synthesise and view RTL schematic. Confirm correctness. –Review the appliedVHDLV1_TB.vhd VHDL testbench code and modelsim macro files –Simulate appliedVHDLV1_TB.vhd fully, review the timing waveform and verify correct VHDL model operation P2.5 Implement on FPGA –Review appliedVHDLV1.ucf (provided) for pinout –Implement appliedVHDLV1 on the Spartan 3 development system and test

14 appliedVHDLV1 Testbench structure


Download ppt "AppliedVHDLV1 Aim: Capture, simulate, implement appliedVHDLV1 System Supports GUI r/w access from/to FPGA CSR block This document contains: EE427 submission."

Similar presentations


Ads by Google