Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
16611 Discussions

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

Altera_Forum
Honored Contributor II
944 Views

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?

0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
230 Views

Yes. Just access the specific bit vectors. 

 

IE 

 

assign lowbyte_c = word[7:0]; 

assign highbyte_c = word[15:8]; 

 

 

Pete
0 Kudos
Reply