Download PROCMultiPort IP User Guide
Transcript
Using PROCMultiPort in Hardware Reading from a Port To read from a port, perform the following: 1. Load port_addr with starting address. 2. Assert the port_start signal high. This will reset the Port. 3. Assert the port_start signal low. This will make the Port start reading data from the memory to internal FIFO. Wait for some data to be read to internal FIFO. The Port must not be read during this time. Generally, the delay needed may be calculated using the following formula: delay = 16+ (FIFO depth * 1/8 ) [memory clocks] Where FIFO depth is dependent on board type and on the memory bank used as detailed in the following table: Table 6: FIFO Depth Board Memory Bank FIFO Depth Width A, B, C 256 words 256 bits PROCStar III A, B 256 words 256 bits PROCStar III C 256 words 128 bits PROCStar II A, B 128 words 64 bits PROCStar II C 128 words 128 bits PROCSpark II A 128 words 64 bits A, B 128 words 64 bits PROCe IV PROCe III PROCe 4. Assert the port_select signal high to start reading the Port. Instead of calculating this delay, one can poll the almost_empty signal. When the Port is 1/8 full, almost_empty asserts low indicating that the port_select signal can be asserted high. The following diagram illustrates the read timing diagram: Starting memory transaction FIFO may now be Reading the Port minimal delay Figure 17: Reading From a Sequential Port 29