Exams/2014 q3c

From HDLBits

Given the state-assigned table shown below, implement the logic functions Y[0] and z.

Present state
y[2:0]
Next state Y[2:0]Output z
x=0x=1
0000000010
0010011000
0100100010
0110010101
1000111001

Module Declaration

module top_module (
    input clk,
    input [2:0] y,
    input x,
    output Y0,
    output z
);

Write your solution here

x
 
1
module top_module (
2
    input clk,
3
    input [2:0] y,
4
    input x,
5
    output Y0,
6
    output z
7
);
8
9
endmodule
10
Upload a source file...