上传者: baidu_15200011
|
上传时间: 2021-04-13 16:40:01
|
文件大小: 275KB
|
文件类型: DOC
architecture behav of codesdect is
signal m : integer range 0 to 3;
signal sdata : std_logic_vector(2 downto 0);
begin
cdata<= wavenum;
process(clk,clr)
begin
if clr='1' then m if datain = cdata (2) then m<=1; else m if datain = cdata (0) then m<=3; else m m <= 0;