URL
https://opencores.org/ocsvn/zet86/zet86/trunk
[/] [zet86/] [trunk/] [sim/] [memory.v] - Diff between revs 19 and 22
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 19 |
Rev 22 |
Line 22... |
Line 22... |
// Behaviour
|
// Behaviour
|
always @(posedge clk)
|
always @(posedge clk)
|
if (we) if (byte_m) ram[addr] <= wr_data[7:0];
|
if (we) if (byte_m) ram[addr] <= wr_data[7:0];
|
else { ram[addr1], ram[addr] } <= wr_data;
|
else { ram[addr1], ram[addr] } <= wr_data;
|
|
|
initial $readmemh("/home/zeus/zet/sim/10_bitwise.rtlrom", ram, 20'hf0000);
|
initial $readmemh("/home/zeus/zet/sim/11_shifts.rtlrom", ram, 20'hf0000);
|
endmodule
|
endmodule
|
|
|
No newline at end of file
|
No newline at end of file
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.