Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to check if the address bus mismatch

Status
Not open for further replies.

akshayp

Newbie level 2
Joined
Aug 9, 2010
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
bangalore
Activity points
1,298
Hi,

If i have one situation where my Address bus A[0:15], A[14] and A[13] are interchanged in the address mapping. how can i verify this bug.

Due to this mismatch complete Address mapping will change but as read and write on the given address will be fine. and will not give any error on any read/write.

Regards
Akshay
 

consider a memory map which has address A[0:15]
and data bus as D[0:7];

and during mapping A[3] and A[4] are interchanged inside DUT so complete address range will be different.

write at Add = 0008h, the write will actually will happened on address 0004h consider that data is D

during read cycle Add = 0008h the read will actually happened on again on 0004h, and o/p will be D as expected so no issues . but address is wrongly checked. how we can check validity of address if it is mapped correctly to memory address.

hope this is fine
 

If you have completed writing the code and need to check it is working or not then you can use a testbench code. use a for loop in VHDL to write a value of "a" to the address "a". Once the data is written into the memory read it from the memory and see if it is same data written.

Use something like this in the testbench code.

Code:
for i in 0 to MemSize loop
addr <= i;
D <= i;
wait for clk_period;
ASSERT i = Dout_memory   
      REPORT "address translation is wrong" 
end loop;

The code may have syntax mistake.

--vipin

https://vhdlguru.blogspot.com/
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top