- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi guys,
Can I in some way do arithmetic on signals I'm viewing in ModelSim? F.x. I have two signals signalA(7 downto 0) signalB(7 downto 0) and in ModelSim I want to view a wave form mySignal = unsigned(signalA) - unsigned(signalB) i don't want to change the vhdl code. this is only for testing and simulation my idea was to use virtual signals and then do arithmetics on them.... virtual signal {sim:/testbench/DUT/DataChannelInst/signalA} signalA virtual signal {sim:/testbench/DUT/DataChannelInst/signalB} signalB # Then somehow mySignal = signalA - signalB # and add wave mySignal Any ideas and sugestion greatly appreciated q:o) Cheers StefanLink Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Use virtual function.
virtual function {signalA - signalB} mySignal- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Cool, works
--- Quote Start --- Use virtual function. virtual function {signalA - signalB} mySignal --- Quote End ---
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