- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have a NIOS II system created with a bidirectional I2C SDA pin on SOPC.
How can I add a pullup to this pin, as a pin in an SOPC component, so I can simulate my design? Thank you.Link Copied
5 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You need to do it in your testbench. And you should do it for SCL as well.
In Verilog, declare the signal as tri1. In VHDL, declare it as std_logic as usual but add an assignment of 'H'.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What testbench? The testbench is generated by SOPC by clicking the simulation checkbox.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ah I think I got you. Ignore what I just said. I will get back if what I try now does not work.
Thank you.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In Assignment Editor choose "Passive Resistor" for a pin and set it to Pull-Up. This is for functional simulation only.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am running the modelsim simulation from eclipse so only the sopcinfo/bsp stuff is being simulated. That is my problem.

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