Multiple IOSTANDARDs for a single HDL coder interface

5 ビュー (過去 30 日間)
Øystein Buanes
Øystein Buanes 2023 年 12 月 20 日
回答済み: JT Ferrara 2023 年 12 月 22 日
My hardware designers put one of the pins i want to group together on a seperate IO bank that is 3v3 instead of 1v8.
In my HDL coder support package: Is it possible to use different IOSTANDARD for pins in one addExternalIOInterface interface?
What do I put in IOPadConstraint to define IOSTANDARD for each individual pin in the interface?
My plugin_board.m
hB.addExternalIOInterface( ...
'InterfaceID', 'DATA_IN', ...
'InterfaceType', 'IN', ...
'PortName', 'DATA_IN', ...
'PortWidth', 6, ...
'FPGAPin', {...
'L6' ,... %PMON1 1v8
'M6' ,... %PMON2 1v8
'R4' ,... %PMON3 1v8
'V15',... %TACHO1 3v3!!!
'P1' ,... %TACHO2 1v8
'R5' ,... %TACHO3 1v8
}, ...
'IOPadConstraint', {'IOSTANDARD = LVCMOS18', 'PULLDOWN = TRUE'});

採用された回答

JT Ferrara
JT Ferrara 2023 年 12 月 22 日
You can define IOPadConstraint in one of two ways:
  1. The same IOPadConstraint for all pins in the interface. For this case, use a cell array containing the constraints (as shown in your example)
  2. Separate IOPadConstraint for each individual pin. For this case, use a nested cell array, where each entry is its own cell array of constraints. The number of entries must match the number of FPGA pins.
Here is an example showing a separate IOPadConstraint for each individual pin:
hB.addExternalIOInterface( ...
'InterfaceID', 'DATA_IN', ...
'InterfaceType', 'IN', ...
'PortName', 'DATA_IN', ...
'PortWidth', 6, ...
'FPGAPin', {...
'L6' ,... %PMON1 1v8
'M6' ,... %PMON2 1v8
'R4' ,... %PMON3 1v8
'V15',... %TACHO1 3v3!!!
'P1' ,... %TACHO2 1v8
'R5' ,... %TACHO3 1v8
}, ...
'IOPadConstraint', { ...
{'IOSTANDARD = LVCMOS18', 'PULLDOWN = TRUE'}, ...
{'IOSTANDARD = LVCMOS18', 'PULLDOWN = TRUE'}, ...
{'IOSTANDARD = LVCMOS18', 'PULLDOWN = TRUE'}, ...
{'IOSTANDARD = LVCMOS18', 'PULLDOWN = TRUE'}, ...
{'IOSTANDARD = LVCMOS18', 'PULLDOWN = TRUE'}, ...
{'IOSTANDARD = LVCMOS18', 'PULLDOWN = TRUE'} ...
} ...
);

その他の回答 (1 件)

Kiran Kintali
Kiran Kintali 2023 年 12 月 21 日
編集済み: Kiran Kintali 2023 年 12 月 21 日
addExternalIOInterface('InterfaceID',interfacename,'InterfaceType',interfacetype,'PortName',portname,'PortWidth',portwidth,'FPGAPin',pins,'IOPadConstraint',constraints)
adds an external IO interface to an hdlcoder.Board object. You can add multiple external IO interfaces to your board object.
Use this method if your board has more than one external interface, or if you want to be able to predefine FPGA pin names for mapping from the HDL Workflow Advisor.
For details about the external IO interface ports, pins, and constraints for your board, view the board documentation.

タグ

製品


リリース

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by