설계"펄스

H

hamed_sotoudi

Guest
모두 안녕
난 디지털 데이터의 ADC가에서 온 나는 그것에 이러한 펄스의 기간마다 펄스를 감지하고 싶지 시퀀스있다.어떤 기술이 porpuse가없습니다.난 누가 날 도와 경우요 appriciate됩니다.

 
hamed_sotoudi 썼습니다 :

/.../ 나는 그것에 기간마다 펄스를 감지하려면 /.../
 
여기 ADC0809에 대한 예를 들어, 당신이 도와 주길 바래요.Craftor

라이브러리는 IEEE;
사용 ieee.std_logic_1164.all;
사용 ieee.std_logic_unsigned.all;
사용 ieee.std_logic_arith.all;
엔티티 ADC0809입니다
포트 (D 조 : std_logic_vector (7 downto 0);
CLK, EOC : std_logic에;
clk1, 시작, 맥주, 엉 : 아웃 std_logic;
abc_in : std_logic_vector (2 downto 0);
abc_out : std_logic_vector (2 downto 0 아웃);
질문 : std_logic_vector (7 downto 0 아웃));
최종 ADC0809;
ADC0809의 아키텍처 behav입니다
입력 상태 (st0, st1, ST2, st3, st4, st5, st6)입니다;
current_state, next_state 신호 : 상태 : = st0;
신호 regl : std_logic_vector (7 downto 0);
신호 QQ는 : std_logic_vector (7 downto 0);
시작
co.kr 사이트 : (EOC)가 current_state 과정
시작
사건 current_state입니다
때 st0 = "next_state"= st1; 맥주 "= '0 '; 시작"= '0'; 엉 "= '0 ';
언제 st1 = "next_state"= ST2; 맥주 "= '1 '; 시작"= '0'; 엉 "= '0 ';
언제 ST2 = "next_state"= st3; 맥주 "= '0 '; 시작"= '1'; 엉 "= '0 ';
때 st3 = "맥주"= '0 '; 시작 "= '0'; 엉"= '0 ';
만약 EOC = '1 '을 선택한 다음 next_state "= st3;
다른 next_state "= st4;
최종면;
때 st4 = "맥주"= '0 '; 시작 "= '0'; 엉"= '0 ';
만약 EOC = '0 '를 클릭한 후 next_state "= st4;
다른 next_state "= st5;
최종면;
때 st5 = "next_state"= st6; 맥주 "= '0 '; 시작"= '0'; 엉 "= '1 ';
때 st6 = "next_state"= st0; 맥주 "= '0 '; 시작"= '0'; 엉 "= '1 '; regl"= D 조;
사람이있을 땐 = "next_state"= st0; 맥주 "= '0 '; 시작"= '0'; 엉 "= '0 ';
결국 사건;
최종 처리;
시계 : (CLK) 프로세스
시작
만약 clk'event 및 CLK = '1 '을 선택한 다음 QQ는 "= QQ는 1;
QQ는 = "01111111"그때 clk1 "= '1 '인 경우; current_state"= next_state;
elsif QQ는 "="01111111 "그때 clk1"= '0 ';
최종면;
최종면;
최종 처리;
q를 "= regl; abc_out"= abc_in;
최종 behav;

 

Welcome to EDABoard.com

Sponsor

Back
Top