UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Visitor dor3y
Visitor
653 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
Scholar richardhead
Scholar
607 Views
Registered: ‎08-01-2012

Re: instruction memory vhdl

Jump to solution

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
Mentor watari
Mentor
643 Views
Registered: ‎06-16-2013

Re: instruction memory vhdl

Jump to solution

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,

 

Scholar richardhead
Scholar
608 Views
Registered: ‎08-01-2012

Re: instruction memory vhdl

Jump to solution

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