FPGA(150)
-
Sim/circuit3
This is a combinational circuit. Read the simulation waveforms to determine what the circuit does, then implement it. 포트 35 ~ 40 40 ~ 45 45 ~ 50 55 ~ 60 60 ~ 65 65 ~ 70 75 ~ 80 80 ~ 90 a 0 0 0 1 1 1 1 1 b 1 1 1 0 0 0 c 0 1 1 0 1 1 d 1 0 1 1 0 1 q 1 1 1 1 1 1 1 1 출력이 1인 상태와 0인 상태를 비교해보면 a와 b, c와 d가 or연산이 되고, 그 결과값끼리 and연산이 되는것을 확인할 수 있다. module top_module ( input a, input b, input c, input d, out..
2023.06.20 -
Sim/circuit2
This is a combinational circuit. Read the simulation waveforms to determine what the circuit does, then implement it. 포트 15s - 20s 20s - 25s 25s - 30s 30s - 35s 35s - 40s 40s - 45s 45s - 50s 50s - 55s a 0 0 0 0 0 0 0 1 b 0 0 0 1 1 1 1 0 c 0 1 1 0 0 1 1 0 d 1 0 1 0 1 0 1 0 q 0 0 1 0 1 1 0 입력 2개 high시 출력 1 -> nxor module top_module ( input a, input b, input c, input d, output q );// assign q = ~(a..
2023.06.20 -
Sim/circuit1
This is a combinational circuit. Read the simulation waveforms to determine what the circuit does, then implement it. module top_module ( input a, input b, output q );// assign q = a & b; endmodule //실패 코드 module top_module ( input a, input b, output q );// assign q = 0; // Fix me initial begin assign a = 0; assign b = 0; #20; //20s assign b = ~b; #10; //30s assign a = ~a; assign b = ~b; #10; //..
2023.06.20 -
Exams/ece241 2014 q1c
Assume that you have two 8-bit 2's complement numbers, a[7:0] and b[7:0]. These numbers are added to produce s[7:0]. Also compute whether a (signed) overflow has occurred. module top_module ( input [7:0] a, input [7:0] b, output [7:0] s, output overflow ); // assign s = a+b; assign overflow = (a[7] ~^ b[7]) & (s[7] == a[7] ? 0 : 1); endmodule
2023.06.20 -
Exams/m2014 q4k
Implement the following circuit: module top_module ( input clk, input resetn, // synchronous reset input in, output reg out); reg out1, out2, out3; always @(posedge clk) begin if(!resetn) begin out1
2023.06.20 -
Mt2015 lfsr
Taken from 2015 midterm question 5. See also the first part of this question: mt2015_muxdff Mt2015 muxdff - HDLBits hdlbits.01xz.net Write the Verilog code for this sequential circuit (Submodules are ok, but the top-level must be named top_module). Assume that you are going to implement the circuit on the DE1-SoC board. Connect the R inputs to the SW switches, connect Clock to KEY[0], and L to K..
2023.06.20