请教一个VHDL的问题
时间:10-02
整理:3721RD
点击:
SIGNAL ROBUS_Input_Vect_In_i_Synd : Lnk_Err_Bool_Vect_Typ
type Bool_Vect_Typ is array (natural range ) of Boolean ;
subtype Lnk_Err_Bool_Vect_Typ is Bool_Vect_Typ (1 to Num_Lnk_Synd)
constant Num_Lnk_Synd : natural := 2;
这几句vhdl语言中,我写testbench的时候ROBUS_Input_Vect_In_i_Synd怎么赋值?
type Bool_Vect_Typ is array (natural range ) of Boolean ;
subtype Lnk_Err_Bool_Vect_Typ is Bool_Vect_Typ (1 to Num_Lnk_Synd)
constant Num_Lnk_Synd : natural := 2;
这几句vhdl语言中,我写testbench的时候ROBUS_Input_Vect_In_i_Synd怎么赋值?
ROBUS_Input_Vect_In_i_Synd <= (true, false);
boolean 的定义只有两个候选值;
你的声明顺序需调整。
类型和常量声明可以放在一个package中,方便各处use。