Download Synthesis and Verification Design Guide
Transcript
R Simulating VHDL DOWN_COUNTER : process (CLOCK, ENABLE, GSR, COUNT_DOWN) begin if (GSR = ’1’ OR COUNT_DOWN = "0101") then COUNT_DOWN <= "1111"; elsif (CLOCK’event AND CLOCK = ’1’) then if (ENABLE = ’1’) then COUNT_DOWN <= COUNT_DOWN - "0001"; end if; end if; end process DOWN_COUNTER; UP <= COUNT_UP when (GTS = ’0’ AND COUNT_UP /= "0000") else "ZZZZ"; CDOWN <= COUNT_DOWN when (GTS = ’0’) else "ZZZZ"; end A; The following figure shows the progression of the TOCBUF model and its interpretation in the four main design phases. 1. Behavioral 2. Synthesized TOCBUF Global Tri-State (GTS) User Tri-State Enable TOCBUF Global Tri-State (GTS) User Tri-State Enable I/O Pad User Output I/O Pad User Output Output Buffer Output Buffer User Input User Input Input Buffer Input Buffer 3. Implementation 4. Back-Annotation GTS_PORT* Global Tri-State (GTS) User Tri-State Enable Global Tri-State (GTS) User Tri-State Enable I/O Pad User Output Output Buffer User Input I/O Pad User Output Output Buffer User Input Input Buffer Input Buffer * with global tri-state port option Figure 6-6: X8351 TOCBUF Simulation and Implementation • Behavioral Phase—In this phase, the behavioral or RTL description of the output buffers is inferred from the coding style and may be inserted. You can instantiate the TOCBUF cell. • Synthesized Phase—In this phase, the inferred output buffers are mapped to a device and the TOCBUF instantiation is carried from the RTL to the implementation tools. This maintains consistent global output tristate enable behavior between the RTL and the synthesized structural descriptions during simulation. Synthesis and Verification Design Guide www.xilinx.com 1-800-255-7778 241