always @(negedge ale)
begin
sram_addr_reg<={mcu_addr[6:0],mcu_data};
end
always @ (negedge wr or negedge rd)
begin
if(!wr)begin
sram_we <=1'b0;
sram_oe <=1'bz;
mcu_data_reg<=mcu_data;
end
if(!rd)begin
sram_we <=1'b1;
sram_oe <=1'b0;
sram_data_reg<=sram_data;
end
end