Advertisement
AlexanderAntonov

Untitled

Oct 17th, 2022
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. always @ (posedge clk)
  2.     begin
  3.     dat0_o <= ram[adr0_i];
  4.     if (we0_i)
  5.         ram[adr0_i] <= dat0_i;
  6.     end
  7.  
  8. always @ (posedge clk)
  9.     begin
  10.     dat1_o <= ram[adr1_i];
  11.     if (we1_i)
  12.         ram[adr1_i] <= dat1_i;
  13.     end
  14.  
  15. endmodule // ram
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement