Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
HDL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RTSD
HDL
Commits
50d1943f
Commit
50d1943f
authored
3 years ago
by
Eric Kooistra
Browse files
Options
Downloads
Patches
Plain Diff
Support print enable variant option in print_str().
parent
ba91dd79
Branches
Branches containing commit
No related tags found
1 merge request
!190
Resolve L2SDP-210
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/base/common/src/vhdl/common_str_pkg.vhd
+10
-1
10 additions, 1 deletion
libraries/base/common/src/vhdl/common_str_pkg.vhd
with
10 additions
and
1 deletion
libraries/base/common/src/vhdl/common_str_pkg.vhd
+
10
−
1
View file @
50d1943f
...
@@ -57,6 +57,7 @@ PACKAGE common_str_pkg IS
...
@@ -57,6 +57,7 @@ PACKAGE common_str_pkg IS
FUNCTION
real_to_str
(
re
:
REAL
;
width
:
INTEGER
;
digits
:
INTEGER
)
RETURN
STRING
;
FUNCTION
real_to_str
(
re
:
REAL
;
width
:
INTEGER
;
digits
:
INTEGER
)
RETURN
STRING
;
PROCEDURE
print_str
(
str
:
STRING
);
PROCEDURE
print_str
(
str
:
STRING
);
PROCEDURE
print_str
(
str
:
STRING
;
enable
:
BOOLEAN
);
FUNCTION
str_to_ascii_integer_arr
(
s
:
STRING
)
RETURN
t_integer_arr
;
FUNCTION
str_to_ascii_integer_arr
(
s
:
STRING
)
RETURN
t_integer_arr
;
FUNCTION
str_to_ascii_slv_8_arr
(
s
:
STRING
)
RETURN
t_slv_8_arr
;
FUNCTION
str_to_ascii_slv_8_arr
(
s
:
STRING
)
RETURN
t_slv_8_arr
;
...
@@ -269,6 +270,14 @@ PACKAGE BODY common_str_pkg IS
...
@@ -269,6 +270,14 @@ PACKAGE BODY common_str_pkg IS
deallocate
(
v_line
);
deallocate
(
v_line
);
END
;
END
;
PROCEDURE
print_str
(
str
:
STRING
;
enable
:
BOOLEAN
)
IS
VARIABLE
v_line
:
LINE
;
BEGIN
IF
enable
THEN
print_str
(
str
);
END
IF
;
END
;
FUNCTION
str_to_ascii_integer_arr
(
s
:
STRING
)
RETURN
t_integer_arr
IS
FUNCTION
str_to_ascii_integer_arr
(
s
:
STRING
)
RETURN
t_integer_arr
IS
VARIABLE
r
:
t_integer_arr
(
0
TO
s
'RIGHT
-1
);
VARIABLE
r
:
t_integer_arr
(
0
TO
s
'RIGHT
-1
);
BEGIN
BEGIN
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment