중요 문제
CPRI IP 코어 데모 테스트벤치가 성공적으로 시뮬레이션할 수 없음 Cadence NCSIM 시뮬레이터를 사용하십시오.
이 문제를 해결할 수 있는 두 가지 옵션을 사용할 수 있습니다.
CPRI 데모 테스트벤치를 다음으로 시뮬레이션할 수 있습니다. 멘토 그래픽 ModelSim 시뮬레이터 또는 Synopsys VCS MX 시뮬레이터.
또는 테스트벤치 파일을 편집하여 제거할 수 있습니다. 빈 배열의 동적 배열 선언. 다음 변경 사항 IP 코어 파일이 케이던스 NCSIM과 호환되는지 확인합니다. 시뮬레이터:
- 디렉토리를 <>_testbench/altera_cpri/cpri_testbench/모델/cpri_api 변경합니다.
- 텍스트 편집기에서 파일 aux_api.sv 열기 다음 기존 라인을 다음 새 코드로 교체합니다.
- 텍스트 편집기에서 파일 cpu_api.sv 열기 다음 기존 라인을 다음 새 코드로 교체합니다.
- 텍스트 편집기에서 파일 mii_api.sv 열기 다음 기존 라인을 다음 새 코드로 교체합니다.
- 디렉토리를 <>_testbench/altera_cpri/cpri_testbench 변경합니다.
- 텍스트 편집기에서 파일 tb.sv 열고 조건부로 다음 기존 코드를 다음 코드로 교체합니다. 새 코드:
이 기존 라인을 교체합니다.
initial ("../models/cpri_api/aux_data.txt",mem_aux);
이 교체 코드와 함께:
initial
begin
mem_aux = new[10]; // Use for checking purposes
("../models/cpri_api/aux_data.txt",mem_aux);
end
이 기존 라인을 교체합니다.
initial ("../models/cpri_api/hdlc_data.txt",mem_hdlc);
이 교체 코드와 함께:
initial
begin
mem_hdlc = new[10]; // Use for checking purposes
("../models/cpri_api/hdlc_data.txt",mem_hdlc);
end
이 기존 라인을 교체합니다.
initial ("../models/cpri_api/mii_data.txt",mem_mii);
이 교체 코드와 함께:
initial
begin
mem_hdlc = new[10]; // Use for checking purposes
("../models/cpri_api/mii_data.txt",mem_mii);
end
이 기존 코드 제거
initial ("../models/cpri_api/aux_data.txt",mem_aux);
initial ("../models/cpri_api/hdlc_data.txt",mem_hdlc);
initial ("../models/cpri_api/mii_data.txt",mem_mii);
기능에 따라 이 새로운 코드로 교체하십시오.
initial
begin
mem_aux = new[10]; // AUX interface is available by
default
("../models/cpri_api/aux_data.txt",mem_aux);
// You need include the following two lines only if
the DUT includes an HDLC block and you are modifying the testbench
to program the DUT for HDLC communication:
mem_hdlc = new[10];
("../models/cpri_api/hdlc_data.txt",mem_hdlc);
// Include the following two lines only if the DUT
has an MI interface:
mem_mii = new[10];
("../models/cpri_api/mii_data.txt",mem_mii);
end
이 문제는 CPRI MegaCore 기능의 버전 14.0에서 해결되었습니다.