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