AR# 5609: M1.5i Virtex VHDL simprim model incorrect for SRL16, SRL16_1, SRL16E, and SRL16E_1 models
AR# 5609
|
M1.5i Virtex VHDL simprim model incorrect for SRL16, SRL16_1, SRL16E, and SRL16E_1 models
Description
Keywords: Simprims, VHDL, models, SRL16, 1.5i
Urgency: Standard
General Description: The VHDL simprim models for M1.5i incorrectly simulate the SRL16, SRL16_1, SRL16E, and SRL16E_1 models. The problem is found in the address pins on the shift register. The pins are simulated in reverse order. For example, if you assign A3=1, A2=0, A1=0, and A0=0, which is a 9-bit stage, it is not and is really a 2-bit stage and the pins are A3=0, A2=0, A1=0, and A0=1.
Solution
The VHDL library needs to be modified. The file is found at: <XILINX>/vhdl/src/simprim_VITAL.vhd.
Make the following modification to the SRL16 model: ADDRESS := (A3_ipd, A2_ipd, A1_ipd, A0_ipd); ... if (VALID_ADDR) then LENGTH := SLV_TO_INT(ADDRESS); else
....
where ADDRESS is defined as std_logic_vector(3 downto 0);
The vhd file will need to be re-compiled for the changes to take effect.