HDL CODER. i need to deal with pins of the output port one by one not as 8 bit . how i can do this ?

3 views (last 30 days)
Hi . I am using simulink hdl coder . but i need to deal with pins of the output port one by one not as 8 bit . how i can do this ?

Accepted Answer

Kiran Kintali
Kiran Kintali on 5 Feb 2019
HDLCoder does support specification of which pin of the 8 bit to use to map to the DUT.
Following example demonstrates how to select different pins of the 8 bit LED and map them to several different DUT ports:

More Answers (1)

Kiran Kintali
Kiran Kintali on 1 Feb 2019
Can you please check 'eml_hdl_design_patterns' for examples?
It has bit twiddler blocks and ideas on how bitslice and stream data from words to bits.
Thanks
  1 Comment
rabei shwehdi
rabei shwehdi on 2 Feb 2019
HI. thank you for answer .
my question actually is how to send data to pin 0 of the pmod instead to deal with the port as 8 bit .
in hdl advisor we can only select the port as an input or output , but we can not select which pin of the port we want to use . we can deal with the port as 8 bit data only.

Sign in to comment.

Products

Community Treasure Hunt

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

Start Hunting!