|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
有下列一段程序:
Architecture timel of time is
type tim is (sec,min, hous,day, moth,year);
subtype reverse_tim is
tim range month downto min;
signal tim1,tim2,tim3,tim4,tim5,tim6,tim7,tim8: time;
begin
tim1<= tim’left; --得到 sec
tim2<= tim’right; --得到 year
tim3<= tim’high; --得到 year
tim4<= tim’low; --得到 sec
tim5<= reverse_tim’left; --得到 month
tim6<= reverse_tim’right; --得到 min
tim7<= reverse_tim’high; --得到 month
tim8<= reverse_tim’low; --得到 min
end time1;
在上面的定义中”tim”只是一个枚举类型,“high”和”low ”这两个属性得到的值是怎么来的?
thank you in advance!
|
|