我是靠谱客的博主 快乐大雁,这篇文章主要介绍习题笔记 Exams/ece241 2014 q7a,现在分享给大家,希望可以做个参考。

Design a 1-12 counter with the following inputs and outputs:

  • Reset Synchronous active-high reset that forces the counter to 1

  • Enable Set high for the counter to run

  • Clk Positive edge-triggered clock input

  • Q[3:0] The output of the counter

  • c_enable, c_load, c_d[3:0] Control signals going to the provided 4-bit counter, so correct operation can be verified.

You have the following components available:

  • the 4-bit binary counter (count4) below, which has Enable and synchronous parallel-load inputs (load has higher priority than enable). The count4 module is provided to you. Instantiate it in your circuit.

  • logic gates

module count4(

input clk,

input enable,

input load,

input [3:0] d,

output reg [3:0] Q

);

The c_enable, c_load, and c_d outputs are the signals that go to the internal counter's enable, load, and d inputs, respectively. Their purpose is to allow these signals to be checked for correctness.

复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
module top_module ( input clk, input reset, input enable, output [3:0] Q, output c_enable, output c_load, output [3:0] c_d ); // assign c_d = 4'b0001; assign c_enable = enable; assign c_load= (Q[3] & Q[2] & ~Q[1] & ~Q[0] & enable)| reset; count4 the_counter (clk, c_enable, c_load, c_d,Q); endmodule

最后

以上就是快乐大雁最近收集整理的关于习题笔记 Exams/ece241 2014 q7a的全部内容,更多相关习题笔记内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(76)

评论列表共有 0 条评论

立即
投稿
返回
顶部