- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i wonder why i get 0 of phi1_const when i declare like this:
parameter half_cycle = 5; phi_w = 27; parameter fo1 =8000; parameter phi1_const = (fo1 * (2**phi_w))* (1/(2*half_cycle)); thanksLink Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Is it a c prog ? in Nios II ? What kind of type is "parameter" ? Is it integer ? If half_cycle is integer --> (1/ (2*half_cucle)) will give 0 instead of 0.1- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It is verilog.

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