1 / 11

Testing for read_master

Testing for read_master. Block diagram. Register File. 1. CPU. 2. Read_master. 1. 3. Dual Port Memory. 4. Finite State Machine. Issue Read request on bus. ADDR>length / Done. !waitrequest. waitrequest. !ADDR>length. Write DP. Done. Control Flow diaGram. Start. Address >

acampbell
Download Presentation

Testing for read_master

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Testing for read_master

  2. Block diagram Register File 1 CPU 2 Read_master 1 3 Dual Port Memory 4

  3. Finite State Machine Issue Read request on bus ADDR>length / Done !waitrequest waitrequest !ADDR>length Write DP Done

  4. Control Flow diaGram Start Address > Length? Output Done signal yes no Send Address Read from bus no Data Ready? yes Write to DPRAM

  5. Avalon Master read signal • Once we assert the address and read signals, if the waitrequest is low, we can read data from the bus.

  6. Control flow • CPU enable the master interface via MMIO to the register file • Master read data from on-chip memory through AVALON bus • Master write the output to the Dual port memory. Repeat 2 and 3 until length • CPU verify the result on DP memory.

  7. Master Signals • Clk : GS , 1 • Resetn : GS , 1 • Waitrequest : MS , 1 • Address : MS , 32 • Read : MS , 1 • Readdata : MS , 32

  8. Avalon_min signals Clk Resetn enable Readdata waitrequest Addr_bass Addr_length Address Read DP_address DP_wdata DP_write DP_enable done Avalon read master interface

  9. Avalon read master signals

  10. Memory map IO address • 3’b000 : addr_bass • 3’b001 : addr_length • 3’b010 : enable • 3’b011 : done

  11. Implementation note • NIOS2 system is Byte address. If we want to read a word(4 bytes) on the bus, we have to take about the address ourselves.

More Related