- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello everybody,
when I'm compiling my testbench I get the following error: (vcom-1031) Formal generic "width" has OPEN or no actual associated with it. I have a project running on ModelSim. I implemented a file reg.vhd that used a generic register size (width). The problem comes with a testbench related to another .vhd file where I did not use any generic thing. When I doubleclick on the error it shows me that it should be in the following part of code:Mapping: entity one_shot(behav)
port map (clock => clock_tb,
reset => reset_tb,
pulse_o => pulse_o_tb,
trigger_i => trigger_tb
);
Thanks for help, I hope the info is enough. MelonWars
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It's everytime the same: copy & paste error ;) sorry for disturbance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
one_shot has a generic called "width" that has no default value, and you havent given it a value when you've instantiated it, hence the error.

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