필터 지우기
필터 지우기

How can I write bit hex data in Test bench file while generating vhdl file using HDL CODER?

조회 수: 2 (최근 30일)
Hello
I want to convert AES-128 MATLAB code to VHDL file using HDL CODER. I am not getting that how should I give 128 bit hex input in test bench file. I am giving it as- ('00' '11' '22' '33' '44' '55' '66' '77' '88' '99' 'aa' 'bb' 'cc' 'dd' 'ee' 'ff' ) but it is showing me error Unexpected Matlab Expression.

답변 (2개)

Tim McBrayer
Tim McBrayer 2015년 3월 20일
The data as you are showing in your question is a 2x16 array of char; this is not the numeric data that you probably want.
What is the data type that your DUT expects? You need to convert your ASCII data from characters into numeric data of the type that you want to pass to your DUT.

niharika agrawal
niharika agrawal 2015년 3월 20일
Hello The problem is solved. Thank You

태그

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by