cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
dor3y
Visitor
Visitor
1,435 Views
Registered: ‎02-21-2019

instruction memory vhdl

Jump to solution

Hello,

I'm writing an instruction memory for my processor but the array keeps getting errors even though Iinstruction_mem.PNG put in the right number of the array specified in the type. if anyone could help. thank you. The number of arrays needed is (0 to 15) ignore the array indexed in the snapshot I was just testing if reducing the array would help.

 

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
richardhead
Scholar
Scholar
1,389 Views
Registered: ‎08-01-2012

The error occurs because your "instrct" array type is only 15 elements wide but the mem signal has 16 elements in the initial value

Change the size of the array type or the number of elements in the initial value. 

View solution in original post

2 Replies
watari
Teacher
Teacher
1,425 Views
Registered: ‎06-16-2013

Hi @dor3y 

 

Why don't you use BRAM IP as ROM ?

 

https://www.xilinx.com/support/documentation/ip_documentation/blk_mem_gen/v8_3/pg058-blk-mem-gen.pdf

 

Its is suitable and useful way to resolve this issue and developing cpu.

 

Best regards,

 

richardhead
Scholar
Scholar
1,390 Views
Registered: ‎08-01-2012

The error occurs because your "instrct" array type is only 15 elements wide but the mem signal has 16 elements in the initial value

Change the size of the array type or the number of elements in the initial value. 

View solution in original post