01 (a) As a designer, state the principles that normally applied in designing digital circuits. Give…

01 (a) As a designer, state the principles that normally applied in designing digital circuits. Give your opinion on why the principles are very important. (6 marks) (b) A PLD is a general-purpose chip for implementing logie cireuits. It contains a collection of logic circuit elements that can be customized in different ways. State three advantages of CPLD compared to FPGA. (3 marks) O2 (a) By referrine to the Verilor code in Listing Q2 (a). find and explain the syntax errors (if any). Rewrite the correct syntax for each error found Note that es for printive gates are optional) Lin2 Line 3 Line 6 /L: 7 Listing 2() (10 marks) (b) By referring to the Boolean expression below, construet the Verslag eode Um the data flow modelluny (c) Listing O2() shows a Verilog code of a digital system. Sketch the functional blocle diagram (IBD) of the circuit that is modelled by the code. Label all the wes and ports. module Module_test(a, b, c, d, s, Y); input a, b, c, d, s; output reg [3:0]y: reg x1, x2: always @ (a,b, s) if (s==1) x1 = b; else xl = a; always @ (c,d,s) if (c==1) x2 el se x2 = c; = d; always (x1, x2) case ({x1, x2)) 0: Y = 4’hl: 1: Y = 4’h2; 2: y = 4’h4; 3: Y = 4’h8; endcase endimodule