Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
progkrets
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
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
Solveig Langbakk
progkrets
Commits
1731eb2a
Commit
1731eb2a
authored
6 months ago
by
Solveig Langbakk
Browse files
Options
Downloads
Patches
Plain Diff
kompilerende versjon. Uferdig
parent
8e64c78a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
controller.vhd
+17
-3
17 additions, 3 deletions
controller.vhd
with
17 additions
and
3 deletions
controller.vhd
+
17
−
3
View file @
1731eb2a
...
...
@@ -26,6 +26,7 @@ architecture RTL of Controller is
variable
count
:
integer
;
signal
turnTaker
:
std_logic
;
signal
internal_z
:
std_logic_vector
(
2
downto
0
);
signal
txBusy
:
std_logic
;
function
resetLogic
(
count
:
integer
)
return
integer
is
begin
...
...
@@ -56,7 +57,7 @@ architecture RTL of Controller is
adresse
<=
"010"
;
turnTaker
<=
'1'
;
return
1
;
else
else
-- Til RX
Rd_sig
<=
"1"
;
adresse
<=
"110"
;
turnTaker
<=
'0'
;
...
...
@@ -93,16 +94,29 @@ begin
internal_z
(
2
downto
0
)
<=
"110"
;
Data_bus
(
7
downto
0
)
<=
internal_z
&
internal_parity
&
internal_baud
;
adresse
<=
"110"
;
Wr_sig
<=
"1"
;
Wr_sig
<=
'1'
;
count
:
=
count
+
1
;
else
Wr_sig
<=
"0"
;
Wr_sig
<=
'0'
;
Rd_sig
<=
'0'
;
Data_bus
<=
"ZZZZZZZZ"
;
end
if
;
statusChecker
(
turnTaker
);
if
Data_bus
=
"ZZZZZZZZ"
then
--do nothing
else
if
turnTaker
=
'1'
then
-- da skal vi sjekke om TX er busy
if
Data_bus
(
0
downto
0
)
=
"1"
then
txBusy
<=
'1'
;
elsif
turnTaker
=
'0'
then
-- Skal sjekke om Rx har data til oss, status på fifo osv.
--if Data_bus()
end
if
;
end
if
;
end
if
;
end
if
;
--end if;
end
process
p_clk
;
...
...
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