- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Appreciate any help on how to assign an integer or parameter based on a signal, I know the following isn't correct, but i think you can see what I am trying to accomplish. RATE is latter used in an equation with other parameters. Does RATE have to be a parameter for the equation to work?
wire low; RATE = low ? 3 : 4; ---- if(BCK_DIV >= REF_CLK/(RATE*DATA_WIDTH*CHANNEL_NUM*2)-1 )Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I got it figured out -
integer SAMPLE_RATE; always @(*) SAMPLE_RATE <= toneSelect ? 68000 : 48000;
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