久久久久久久999_99精品久久精品一区二区爱城_成人欧美一区二区三区在线播放_国产精品日本一区二区不卡视频_国产午夜视频_欧美精品在线观看免费

 找回密碼
 立即注冊

QQ登錄

只需一步,快速開始

搜索
查看: 1615|回復(fù): 2
打印 上一主題 下一主題
收起左側(cè)

如何AHDL編寫4 bit Latch電路

[復(fù)制鏈接]
跳轉(zhuǎn)到指定樓層
樓主
ID:140371 發(fā)表于 2023-1-31 18:49 | 只看該作者 回帖獎勵 |倒序瀏覽 |閱讀模式
請問先進 如何用AHDL編寫 4 bit Latch  電路 ,

分享到:  QQ好友和群QQ好友和群 QQ空間QQ空間 騰訊微博騰訊微博 騰訊朋友騰訊朋友
收藏收藏 分享淘帖 頂 踩
回復(fù)

使用道具 舉報

沙發(fā)
ID:94031 發(fā)表于 2023-2-1 14:25 | 只看該作者
為什么非要AHDL,用VHDL或Verilog HDL不行嗎,后兩者既通用資料還多。
回復(fù)

使用道具 舉報

板凳
ID:155507 發(fā)表于 2023-2-2 08:11 | 只看該作者
這是將鎖存器的輸入連接到稱為 data_in 的輸入線的 AHDL 代碼,
鎖存器的輸出到稱為 data_out 的輸出線,以及到輸入的使能線
稱為 latch_enable:

下面是指定八位鎖存器的方法:
  1. Latch
  2. A latch in AHDL has two inputs – D and En, and one output Q. When En is low, the output
  3. Q does not change. When En is high, the output Q is equal to the input D. Thus, when En is
  4. low, it will hold the value which was on the D input when En went from high to low. To use
  5. a latch in AHDL, declare it in the VARIABLE section of the program:
  6. VARIABLE
  7. A : LATCH;
  8. will define a one-bit latch. To specify what should on the D input of A, use A.d. To specify
  9. what should on the En input of A, use A.ena. To use the Q output, refer to A.q.
  10. Here is the way to specify an eight-bit latch:
  11. VARIABLE
  12. A[7..0] : LATCH;
  13. Here is AHDL code to connect the inputs of the latch to input lines called data_in, the
  14. outputs of the latch to output lines called data_out, and the the enable lines to an input
  15. called latch_enable:

  16. SUBDESIGN my_latch
  17. (
  18. data_in[7..0] : INPUT;
  19. latch_enable : INPUT;
  20. data_out[7..0] : OUTPUT;
  21. )
  22. VARIABLE
  23. A[7..0] : LATCH;
  24. BEGIN
  25. A[].d = data_in[];
  26. A[].ena = latch_enable;
  27. data_out[] = A[].q;
  28. END;
復(fù)制代碼


回復(fù)

使用道具 舉報

您需要登錄后才可以回帖 登錄 | 立即注冊

本版積分規(guī)則

小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術(shù)交流QQ群281945664

Powered by 單片機教程網(wǎng)

快速回復(fù) 返回頂部 返回列表
主站蜘蛛池模板: 365夜爽爽欧美性午夜免费视频 | 欧美激情黄色 | 红色av社区 | 国产中文在线 | 97人人超碰 | av一区二区三区四区 | 国产精品1区2区 | 国产伦一区二区三区四区 | 国产福利观看 | 成人中文网 | 日本一级淫片免费啪啪3 | 精品国产乱码久久久久久丨区2区 | 精品丝袜在线 | 欧美黄在线观看 | 国产在线观看网站 | 黄色片免费 | 日本黄色一级视频 | 日韩国产精品一区二区三区 | 一区二区在线不卡 | 国产在线小视频 | 久久五月婷 | 欧美啪啪 | 欧美三级视频在线观看 | 久久久久久成人 | 成人免费淫片aa视频免费 | 亚洲视频免费在线观看 | 国产精品视频久久久久 | 精品久久久久久亚洲精品 | 欧美视频在线看 | 午夜国产一级片 | 日本精品999 | 欧美激情第一区 | 国产精品自拍av | 日韩精品一区二区在线 | 亚洲一区二区三区在线视频 | 国产精品一区二区三区四区 | 日韩欧美三区 | 国产精品免费在线 | 成人福利在线视频 | 亚洲不卡在线观看 | 日韩中文一区 |