Escolar Documentos
Profissional Documentos
Cultura Documentos
DEEC- AC I Filtros
Electrnica
a) Determine a funo de transferncia de um filtro passa-banda Butterworth de
segundo grau, com frequncia central wo = 100 rad/s, frequncia de corte inferior w1 =
10 rad/s, 3dB de ondulao na banda de passagem e ganho 20dB na frequncia f0.
Notas:
Polinmio de Butterworth de grau 1: D(S ) S 1 ;
Polinmio de Butterworth de grau 2: D(S ) S 2 2.S 1 ;
Atenuao: A() 10 . log( 1 2 2 n )
R1 C
C
R1
R
R2 R
Vi
V1
V2
R3 V3
Figura 1
module fsm (
7 clock , // clock 37 end else begin
8 reset , // Active high, syn reset 38 next_state = IDLE;
9 req_0 , // Request 0 39 end
10 req_1 , // Request 1 40 GNT0 : if (req_0 == 1'b1) begin
11 gnt_0 , // Grant 0 41 next_state = GNT0;
12 gnt_1 42 end else begin
13 ); 43 next_state = IDLE;
14 //-------------Input Ports----------------------------- 44 end
15 input clock,reset,req_0,req_1; 45 GNT1 : if (req_1 == 1'b1) begin
16 //-------------Output Ports---------------------------- 46 next_state = GNT1;
17 output gnt_0,gnt_1; 47 end else begin
18 //-------------Input ports Data Type------------------- 48 next_state = IDLE;
19 wire clock,reset,req_0,req_1; 49 end
20 //-------------Output Ports Data Type------------------ 50 default : next_state = IDLE;
21 reg gnt_0,gnt_1; 51 endcase
22 //-------------Internal Constants-------------------------- 52 end
23 parameter SIZE = 3 ; 53 //----------Seq Logic-----------------------------
24 parameter IDLE=3'b001, GNT0=3'b010, GNT1 = 3'b100; 54 always @ (posedge clock)
25 //-------------Internal Variables--------------------------- 55 begin
26 reg [SIZE-1:0] state ; 56 if (reset == 1'b1) begin
27 reg [SIZE-1:0] next_state ; 57 state <= #1 IDLE;
28 //----------Code starts Here------------------------ 58 end else begin
29 always @ (state or req_0 or req_1) 59 state <= #1 next_state;
30 begin 60 end
31 next_state = 3'b000; 61 end
32 case(state) 62 //----------Output Logic-----------------------------
33 IDLE : if (req_0 == 1'b1) begin 90 endmodule
34 next_state = GNT0;
35 end else if (req_1 == 1'b1) begin
36 next_state= GNT1;
O cdigo anterior est formatado em duas colunas e o nmero do lado esquerdo de cada
linha representa o nmero da linha correspondente.
Cotao: I- a)3 b)3 c)2 d)2 II- a)2 b)2 c) 2 III- a)1 b)1 c) 2