1328 - CS2017 Hardware_Design_exam1_CT Scoreboard

Time

2017/11/14 15:15:00 2017/11/14 17:20:00

Clarification

# Problem Asker Description Reply Replier Reply Time For all team

# Problem Pass Rate (passed user / total user)
11668 Hardware_Design_exam1_A
11669 Hardware_Design_exam1_B
11670 Hardware_Design_exam1_C
11671 Announcement_exam1

11668 - Hardware_Design_exam1_A   

Description

Write a Verilog module, named exam1_A, that models a 1-bit logic unit with and, or, xor and AOI (AND-OR- Invert) functions.

There are three 1-bit inputs a, b, c, one 2-bit input ctr and one 1-bit output d in this logic unit.

You have to copy the sample input and name the file as exam1_A.v.

You may use the provided testbench, which is given in the sample output below ( name it exam1_A_t.v when you hand in) to make sure your design is correct.

You can use either the data flow modeling or behavioral modeling, or any reasonable style.

Do not change the input and output signals.

 

Note: exam1_B -- https://acm.cs.nthu.edu.tw/problem/11669/

           exam1_C -- https://acm.cs.nthu.edu.tw/problem/11670/

           Announcement​   -- https://acm.cs.nthu.edu.tw/problem/11671/​

Input

Output

Sample Input  Download

Sample Output  Download

Tags




Discuss




11669 - Hardware_Design_exam1_B   

Description

Implement a 2-digit BCD counter module, exam1_B.

The counter counts up from 00 to 28 repeatedly, the counter would increase by two at the positive edge of every clock cycleFor example, 00 → 02 → 04 → 06 → … → 22 → 24 → 26 → 28 → 00 → 02.

You have to copy the sample input below and name your .v file as exam1_B.v, and you can test your design with the provided testbench in the sample output below.

Please name the .v module and file with exam1_B_t in exam1_B_t.v.

Hint: This design is the same as lab2_2 without the enable signal (which will be much easier)!

Do not change the input and output signals.

 

Note: exam1_A -- https://acm.cs.nthu.edu.tw/problem/11668/

           exam1_C -- https://acm.cs.nthu.edu.tw/problem/11670/

           Announcement​   -- https://acm.cs.nthu.edu.tw/problem/11671/

Input

Output

Sample Input  Download

Sample Output  Download

Tags




Discuss




11670 - Hardware_Design_exam1_C   

Description

Modify your 2-digit BCD counter to model a 2-digit pingpong counter.

You have to increase/decrease your counter only by pressing the count button.

You must download exam1_C.v and modify it.

Do not change the input and output signals.

 

Note: exam1_A -- https://acm.cs.nthu.edu.tw/problem/11668/

           exam1_B -- https://acm.cs.nthu.edu.tw/problem/11669/

           Announcement -- https://acm.cs.nthu.edu.tw/problem/11671/

Input

Output

Sample Input  Download

Sample Output  Download

Tags




Discuss




11671 - Announcement_exam1   

Description

1. You have to make sure that your code follows the requirement or you will get zero score.

2. You have to hand in your code in a ZIP file as exam1_StudentID.zip, including exam1_A.v, exam1_B.v, and the entire folder exam1c (with the whole project, exam1_C.v and BIT file inside), before 2017/11/14 17:30 or you will get zero score.

3. You have to add one comment line in the first line of every Verilog file with the following format :
    // StudentID Name


Example:
   // 100062000 王小明

 

4. Hand in your file  exam1_StudentID.zip to the address below.

    326 教室                           -- 192.168.26.66:11404 

    328 教室 (有階梯那間)-- 192.168.28.62:11405

 

Note: exam1_A -- https://acm.cs.nthu.edu.tw/problem/11668/

           exam1_C -- https://acm.cs.nthu.edu.tw/problem/11670/

           Announcement    -- https://acm.cs.nthu.edu.tw/problem/11671/

 

Input

Output

Sample Input  Download

Sample Output  Download

Tags




Discuss