소스 검색

fpga/abcbus.sv: sample clock on the rising edge, not falling

Count the ABC-bus clocks, and sample XINPSTB# and XOUTPSTB# on the
rising edge of the clock, not falling.
H. Peter Anvin 1 년 전
부모
커밋
b761e459c7
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      fpga/abcbus.sv

+ 1 - 1
fpga/abcbus.sv

@@ -208,7 +208,7 @@ module abcbus (
      else
        begin
 	  abc_clk_q <= { abc_clk_q[0], abc_clk_s };
-	  case ( { abc_clk_q == 2'b10, stb_1mhz } )
+	  case ( { abc_clk_q == 2'b01, stb_1mhz } )
 	    2'b10: begin
 	       if (abc_clk_ctr == 3'b111)
 		 begin