|
module(7 r/ K$ Q! ?# F: C+ M
input [7:0] ADD,
/ f& ?- G9 L; A" b4 r input [7:0] DI,
# ^; Q0 V3 T; y7 X( f+ a input CE,0 H4 _! L- A* U( q& i
input WE," M1 e9 o/ M/ u$ f! e
output reg [7:0] DO+ z: `/ o. i, R3 P6 y
);" r3 P( C9 W& M0 G5 @1 T7 s, j7 X1 P: s! O
reg [7:0] memory[255:0];
; Y; p' \, m' I: s, f always @(posedge CLK)
+ F- `$ m4 ^8 D if(CE & WE) memory[ADD] <= DI;
! }, `3 }8 m) ^ always @(posedge CLK)
5 X' Y- N# r9 ?. \. p DO <= memory[ADD];5 `4 v( m% d! ?
endmodule7 p- ]) L! ?: `: q2 \* u
你要注意gata count很大喔。 |
|