- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi!
I have been working on transfering a VHDL file to a verilog one. Bidirectional port of D didn't work well... This VHDL file can work on CPLD while the verilog file cann't... PS:Formality reports that D didn't math... Result of my checking in Formality shows that there is no difference between them. tks! U can download them from attachments.Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Why do you think that the problem is related to bidirectional pin implementation? The coding of this design detail seems equivalent at first sight. As an obvious difference, the state machine is encoded with default one-hot style in Verilog, while it's binary (user) encoded in VHDL. According to the file comments, the binary encoding is required.
Please consider that Altera synthesis attributes can't be translated by X-HDL. Generally, you would set up a test bench and find out in simulation what goes wrong in Verilog conversion.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi, FvM
thks for your reply. The state machine in Verilog is encoded in 4-bit binary, too. For example, '0, 1, 2, ..., 15', not one-hot of '1, 2, 4, ...,65535 '(in dec).- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- The state machine in Verilog is encoded in 4-bit binary, too. --- Quote End --- Did you look at the gate level net list?
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