添加一些学习注释

main
阳光少年 8 months ago
parent f5429a3e14
commit 8bc2134ec8

@ -9,9 +9,7 @@ module ram(
);
(*mark_debug="true"*)reg [2:0]ram_addr; // 8, 0~7
(*mark_debug="true"*)reg [2:0]ram_addr; // 8, 0~7, 1, 0
(*mark_debug="true"*)reg [2:0]in_ram_data; // 3, , 0~7, ram_rw
(*mark_debug="true"*)wire [2:0]out_ram_data;
@ -27,8 +25,8 @@ always @(posedge sys_clk or negedge sys_rst) begin
end
(*mark_debug="true"*)reg [7:0]counter; // 15 , 0~15
wire ram_rw;
(*mark_debug="true"*)reg [7:0]counter; // 15 , 0~15, 0~7, 8~15
wire ram_rw; // /
(*mark_debug="true"*)assign ram_rw = ram_en && (counter <= 8'b111); //
always @(posedge sys_clk or negedge sys_rst) begin
if (!sys_rst) begin

Loading…
Cancel
Save