- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I added a formal parameter, of type int8. I set it's type to "hardware".
The parameter was added to the verilog:
parameter HiCmp = 127;
I tried to paste my symbol into the UDB Editor's "Configure Datapath Registers" dialog and got:
Unexpected value: "HiCmp". Expected standard decimal or verilog-style integer literal, e.g. 8'b11001010
I'm new at this, so I might be missing something obvious.
Is there a way to use the parameter to set the initial value?
Thanks
- Labels:
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Did you try to set it to "int"?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I just tried it. I got the same error message.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you quickly change the value of parameter to parameter HiCmp = 8'd127 in the verilog file and try ?
Can you attach your project?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I can't edit the verilog because it's generated by the UDB Editor.
I attached a test project that shows the problem.
- Open the workspace
- Edit component01.cyudb
- Double-click on the Registers to get the "Configure Datapath Registers" dialog.
- Put HiCmp as the initial value of D1.
- Click "OK"
- Get "Unexpected value: "HiCmp". Expected standard decimal or verilog-style integer literal, e.g. 8'b11001010"
Thanks,
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have the nearly the same problem. [1] says to use `=$HiCmp`.
But then it says "Unexpected Identifier '=$HiCmp'".
Did you find a solution?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Did you found any solution to this problem? I'm also stuck in that point 😕
Did a quick search here on the forum and can't found anything related.
*********************************
EDIT: I did close PSoC Creator, open the project again and this make me able to use `=$Counter_Period` and `=$Compare_Value`.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I gave up on the UDB Editor and switched to Verilog.