2013-02-13 4 views

답변

1

내가 아는 한, 아니 ... 하지만 네 부분 ('가상 신호 ...')에 대한 가상 신호를 만들 수 있습니다.
십진수로 표시합니다 ('-radix unsigned').
그리고 4 개의 가상 신호 ('웨이브 추가 ... 그룹 ...')로 그룹을 생성하십시오.

GUI에서 가상 신호와 그룹을보다 쉽게 ​​생성 한 다음 DO 파일 ('Tools'-> 'Virtual Builder')에 직접 입력하는 것이 확인되었습니다.

테스트 VHDL 파일 :

library ieee; 
use ieee.std_logic_1164.all; 

entity test is 
end entity test; 

architecture rtl of test is 
    signal ip : std_logic_vector(31 downto 0) := x"AC_10_41_3D"; -- 172.16.65.61 
begin -- architecture rtl 
end architecture rtl; 

wave.do 파일의 중요한 부분 :

quietly virtual signal -install /test { /test/ip(31 downto 24)} ip_3 
quietly virtual signal -install /test { /test/ip(23 downto 16)} ip_2 
quietly virtual signal -install /test { /test/ip(15 downto 8)} ip_1 
quietly virtual signal -install /test { /test/ip(7 downto 0)} ip_0 
add wave -noupdate /test/ip; # without formatting 
# group the 4 parts of the IP address and display them as decimal 
add wave -noupdate -expand -group {IP_formatted} -radix unsigned /test/ip_3 
add wave -noupdate -expand -group {IP_formatted} -radix unsigned /test/ip_2 
add wave -noupdate -expand -group {IP_formatted} -radix unsigned /test/ip_1 
add wave -noupdate -expand -group {IP_formatted} -radix unsigned /test/ip_0 
에게