Altifigence Academy

31 / 36 · Khái niệm

Check direction, reset and input order

Use a single-bit pattern to expose reversed connections.

Chưa có bản dịch. Nội dung bài học gốc được hiển thị. (English)

Learning goals

  • Use a single moving bit to detect direction errors
  • Recalculate expected state at each edge

Symmetric patterns can hide errors

With only 000 or 111, a reversed shift may be hard to see. Sending one 1 followed by zeros produces 001 → 010 → 100 and makes the direction visible.

If you see 100 → 010 → 001 instead, check where the input is concatenated. If the first value is already wrong, compare initialization, reset and displayed bit order.

SymptomInspect
100 appears on first data edgedin inserted at high bit?
Always 000Reset asserted or din stays zero?
One edge offsetReset cycle counted as data?
All stages change to din togetherOld versus newly assigned values

Predict and compare one row at a time

For each row write old q, din, rst and next q. With rst=1 the next value is 000; otherwise append din to old q[1:0]. Begin diagnosis at the first row that differs.

After understanding the original lab, practice with a copy whose input order is different. Keeping the RTL unchanged lets you focus on predicting the data flow.

Tự thử

After reset, inputs 1, 1, 0 produce 100, 110, 011. What would you inspect?

Đọc giải thích

Inspect for reversed concatenation that inserts din into q[2]. This course expects 001, 011, 110.

Lựa chọn áp dụng cho trình duyệt này. Có thể đổi ở chân trang bất cứ lúc nào.