Ch06 Exercise

1/1/2023 FPGAVHDL

#

# 取std_logic的绝对值

image-20230102105553371

  • 第一位不取

# Johnson counter

image-20230104121727813

# GRAY COUNTER

image-20230104121753348

image-20230104122038643

image-20230104122113898

image-20230104122204137

image-20230104122308280

# latch

image-20230104211441785

  • process 3 会产生latch
  • 只有simulation会有区别(会一直循环,不能跑),synthesis不会有区别(sensitive list不会影响synthesis)
  • sesitive list多写的话会让simulation变慢
  • 也可以这么写image-20230104212406033

image-20230104220752116

  • proc 3只有1个Flipflop
  • proc 4有两个Flipflop,因为tmp在使用之前没有赋值,所以综合的时候会把他作为一个记忆元件(memory element),所以tmp也会编程一个Flip-flop

image-20230111124908521

# Function

image-20230226010745246

image-20230226145559823

Last Updated: 11/19/2024, 1:54:38 PM