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

FPGA Beginner Question

Altera_Forum
Honored Contributor II
946 Views

Hi all, 

I want to deploy an error correction code on the FPGA, and I have to do a simple trick to set the parity equal to 1 in the beginning. 

Original code: 

assign nxt_parity=cur_parity;  

Can I do this? 

parameter ECC_ONE = 1; assign nxt_parity=cur_parity || ECC_ONE; 

 

Thanks! 

Elena
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
173 Views

This will just assign the next parity to be always 1. I dint think you want to do that. You need to use an initial block on your registers

0 Kudos
Reply