Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
Hydra - a radiation-tolerant SoC
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
Hydra - a radiation-tolerant SoC
Commits
2d971198
Commit
2d971198
authored
3 years ago
by
Tristan Gingold
Browse files
Options
Downloads
Patches
Plain Diff
Fix blinking led
parent
594a9dd1
Branches
Branches containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
hdl/top/sf2-test/sf2_test.vhd
+4
-3
4 additions, 3 deletions
hdl/top/sf2-test/sf2_test.vhd
hdl/top/sf2-test/uart.vhd
+0
-2
0 additions, 2 deletions
hdl/top/sf2-test/uart.vhd
with
4 additions
and
5 deletions
hdl/top/sf2-test/sf2_test.vhd
+
4
−
3
View file @
2d971198
...
...
@@ -125,7 +125,7 @@ begin
if
rising_edge
(
clk_100
)
then
if
rst_n
=
'0'
then
led1_o
<=
'1'
;
led2_o
<=
'
1
'
;
led2_o
<=
'
0
'
;
else
led1_o
<=
counter
(
25
);
led2_o
<=
counter
(
23
);
...
...
@@ -136,7 +136,7 @@ begin
iram_addr
<=
iahb_addr
(
IRAM_LOG_SIZE
+
2
-
1
downto
2
);
iram_data
<=
ahb_rdata
;
proc_
uar
t
:
process
(
clk_100
)
proc_
ini
t
:
process
(
clk_100
)
begin
if
rising_edge
(
clk_100
)
then
iahb_start
<=
'0'
;
...
...
@@ -150,7 +150,7 @@ begin
case
state
is
when
INIT_DELAY
=>
iahb_addr
<=
(
others
=>
'0'
);
if
counter
=
x"0
0
0_00
1
0"
then
if
counter
=
x"0
c
0_00
0
0"
then
state
<=
READ_NVM
;
counter
<=
(
others
=>
'0'
);
else
...
...
@@ -171,6 +171,7 @@ begin
end
if
;
end
if
;
when
DONE
=>
counter
<=
counter
+
1
;
cpu_rst_n
<=
'1'
;
end
case
;
end
if
;
...
...
This diff is collapsed.
Click to expand it.
hdl/top/sf2-test/uart.vhd
+
0
−
2
View file @
2d971198
...
...
@@ -9,8 +9,6 @@
library
ieee
;
use
ieee
.
std_logic_1164
.
all
;
library
smartfusion2
;
use
smartfusion2
.
all
;
----------------------------------------------------------------------
-- uart entity declaration
----------------------------------------------------------------------
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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