- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello guys,
I am new to Quartus and I have just started using it for my project. I am using a user module for square root function in my code. According to my understanding , I have instantiated the user module in my main module. It is as below: mysqrt_alt_restoring_sqrt_cta mysqrt(.aclr(clear),.clken(clkenable),.clock(CLOCK_50),.rad(vz),.root_result(sqroot)); The problem that I am facing is when I compile the code it gives me following error : Error (10170): Verilog HDL syntax error at test_mestimation.v(166) near text "mysqrt"; expecting "<=", or "=" I am not able to figure out why this error is arising, the syntax looks perfectly fine. Could you guys please help!! thanks a lot in advance.Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It looks to me like it's not finding the module definition for "mysqrt_alt_restoring_sqrt_cta". Have you added the containing file to the project?
Jake- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Well I am sorry I should have mentioned it is a Megawizard generated module. And yes i have added the .v file .thanks
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