OpenCores
URL https://opencores.org/ocsvn/socgen/socgen/trunk

Subversion Repositories socgen

[/] [socgen/] [trunk/] [common/] [opencores.org/] [Testbench/] [bfms/] [mt45w8mw12/] [rtl/] [verilog/] [top.sim] - Blame information for rev 134

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 131 jt_eaton
 
2
 
3
reg [7:0]                     memoryl [1<
4
reg [7:0]                     memoryu [1<
5
 
6
reg [DQ_BITS-1 : 0]           dq_out;
7
 
8
 
9
 
10
// Write Memory
11
 
12
 
13
always@(*)
14
if(!ce_n && !we_n && !lb_n)  memoryl[addr]  =  dq[7:0];
15
 
16
always@(*)
17
if(!ce_n && !we_n && !ub_n)  memoryu[addr]  =  dq[15:8];
18
 
19
 
20
// Read Memory
21
 
22
always@(*)      dq_out[7:0]  = memoryl[addr];
23
always@(*)      dq_out[15:8] = memoryu[addr];
24
 
25
// Tristate output
26
 
27
assign  dq    =  (!ce_n && !oe_n) ? dq_out[DQ_BITS-1:0]: {DQ_BITS{1'bz}};
28
 
29
 
30
 
31
 
32
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.