inflearn logo
Course

Course

Instructor

akims's Posts

akims akims

@dkthddl128150

Reviews Written
-
Average Rating
-

Posts 2

Q&A

SRAM 강의 TB 작성 후 waveform 확인시에 dout이 모두 don't care 처리 관련 질문드립니다.

1) SRAM RTL Code module sram_model #( parameter DEPTH=8, parameter WIDTH=32, parameter DEPTH_log=$clog2(DEPTH) )( input clk, input cs,we, input [DEPTH-1:0] ad, input [WIDTH-1:0] din, output reg [WIDTH-1:0] dout ); reg [WIDTH-1:0] mem[DEPTH-1:0]; initial begin /*초기화 시키기 위함*/ for( int i=0; i end always @(posedge clk) if (cs&we) mem[ad] else if (cs) dout endmodule 2) tb_SRAM module sram_model #( parameter DEPTH=8, parameter WIDTH=32, parameter DEPTH_log=$clog2(DEPTH) )( input clk, input cs,we, input [DEPTH-1:0] ad, input [WIDTH-1:0] din, output reg [WIDTH-1:0] dout ); reg [WIDTH-1:0] mem[DEPTH-1:0]; initial begin /*초기화 시키기 위함*/ for( int i=0; i end always @(posedge clk) if (cs&we) mem[ad] else if (cs) dout endmodule 바쁘신와중에 확인해주셔서 감사드립니다.

Likes
0
Comments
5
Viewcount
143