Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vecs
FIJI Public
Commits
81b838e1
Commit
81b838e1
authored
Apr 01, 2016
by
Stefan Tauner
Browse files
instrument: fix instrumentation if driver is a pin driving a single instrumented bit
parent
e1bcf469
Changes
1
Hide whitespace changes
Inline
Side-by-side
bin/FIJI/Netlist.pm
View file @
81b838e1
...
...
@@ -554,8 +554,16 @@ sub instrument_net {
if
(
$netname
->
{'
netname
'}
eq
$net
->
name
)
{
$netname
->
{'
netname
'}
=
$net_name_tmp
;
# FIXME: do we need to force a re-link (by deleting $connection->nets)?
# This net is a vector if the underlying net is a bus and we do not just select a single bit
# If driver is a vector we need a vectored intermediate bus.
# This is the case if
# - the underlying net is a vector and there are no indices
# - the underlying net is a vector and there are two different indices
if
(
defined
(
$net
->
msb
)
&&
(
!
defined
(
$netname
->
{'
msb
'})
||
$netname
->
{'
msb
'}
!=
$netname
->
{'
lsb
'}))
{
$driver_is_vector
=
1
;
}
else
{
# Make sure we do not output the index unnecessarily (if the driver is a single bit of a vector)
undef
(
$netname
->
{'
msb
'});
undef
(
$netname
->
{'
lsb
'});
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment