Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
10 years ago

Can I read/access 16 bit vector data as two 8 bits in Systemverilog?

My external I/F to embedded SRAM is 16 bit. So I am clubbing two 8 bits and loading to embedded RAM(declared as 16 bit wide data ). Can I access as two 8 bits?

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Yes. Just access the specific bit vectors.

    IE

    assign lowbyte_c = word[7:0];

    assign highbyte_c = word[15:8];

    Pete