- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page