Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
Synopsys 28nm SLM Integration
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Show more breadcrumbs
SoCLabs
Synopsys 28nm SLM Integration
Commits
4c4e598a
Commit
4c4e598a
authored
1 month ago
by
Daniel Newbrook
Browse files
Options
Downloads
Patches
Plain Diff
Adjust VM apb address map for easier use
parent
d6422fd7
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
IP_wrappers/synopsys_VM_sensor_integration.v
+7
-10
7 additions, 10 deletions
IP_wrappers/synopsys_VM_sensor_integration.v
flows/makefile.ASIC
+3
-0
3 additions, 0 deletions
flows/makefile.ASIC
verif/VM_integration/vm_integration_tests.py
+7
-7
7 additions, 7 deletions
verif/VM_integration/vm_integration_tests.py
with
17 additions
and
17 deletions
IP_wrappers/synopsys_VM_sensor_integration.v
+
7
−
10
View file @
4c4e598a
...
...
@@ -31,7 +31,7 @@ module synopsys_VM_sensor_integration(
// - 23-17 RESERVED
// - 16 vm_local_reset
// - 15-8 vm_clk_div
// - 7-4
vm_sel_vin
// - 7-4
RESERVED
// - 3 vm_ready_reg_clr
// - 2 vm_run_continuous_reg
// - 1 vm_enable_reg
...
...
@@ -45,11 +45,11 @@ module synopsys_VM_sensor_integration(
// - 11-0 vm_data
//
// 0x08 - 31-25 RESERVED
// - 19-16
vm_tm_an
// - 19-16
// - 15-9 RESERVED
// - 8
vm_sig_en
// - 8
// - 7-1 RESERVED
// - 0
vm_
cal
// - 0
-3
vm_
sel_vin
//
// 0x0C - 31-0 ID
...
...
@@ -191,7 +191,7 @@ end
// reg 0 assignments in PCLK domain
assign
vm_clock_div
=
data0
[
15
:
8
];
assign
vm_enable
=
data0
[
1
];
assign
vm_sel_vin
=
data
0
[
7
:
4
];
assign
vm_sel_vin
=
data
2
[
3
:
0
];
// vm Clock generation
assign
vm_clkg
=
PCLK
&
vm_enable
;
always
@
(
posedge
vm_clkg
or
negedge
PRESETn
)
begin
...
...
@@ -253,9 +253,9 @@ always @(posedge vm_slow_clock or negedge PRESETn) begin
if
(
~
PRESETn
)
begin
vm_run
<=
1'b0
;
end
else
begin
if
(
~
vm_ready
_reg
&
vm_run_req
)
if
(
~
vm_ready
&
vm_run_req
)
vm_run
<=
1'b1
;
else
if
(
vm_ready
_reg
&
~
vm_run_req
)
else
if
(
vm_ready
&
~
vm_run_req
)
vm_run
<=
1'b0
;
end
end
...
...
@@ -267,9 +267,6 @@ end
assign
vm_local_reset
=
vm_data0
[
16
];
assign
vm_pd
=
vm_data0
[
1
];
assign
vm_tm_an
=
vm_data2
[
19
:
16
];
assign
vm_sig_en
=
vm_data2
[
8
];
assign
vm_cal
=
vm_data2
[
0
];
// vm Combinational Logic
assign
irq_vm_rdy
=
vm_ready_reg
;
...
...
This diff is collapsed.
Click to expand it.
flows/makefile.ASIC
+
3
−
0
View file @
4c4e598a
...
...
@@ -24,3 +24,6 @@ syn_TS:
syn_VM
:
@
mkdir
-p
./imp/VM
@
cd
asic/VM
;
dc_shell
-f
dc_synthesis.tcl
clean_all_syn
:
rm
-rf
./imp
This diff is collapsed.
Click to expand it.
verif/VM_integration/vm_integration_tests.py
+
7
−
7
View file @
4c4e598a
...
...
@@ -164,13 +164,13 @@ async def VM_run_once_irq(dut,tb):
async
def
VM_set_an
(
dut
,
tb
,
n
):
tb
.
log
.
info
(
"
Set voltage input to %d
"
,
n
)
reg
0
=
await
tb
.
config_ahb_master
.
read
(
0x0
0
,
4
)
reg
0
=
int
(
reg
0
[
0
][
'
data
'
],
16
)
reg
0
=
reg
0
&
0xFFFFFF
0
F
reg
0
=
reg
0
|
(
1
<<
7
)
reg
0
=
reg
0
|
(
n
<<
4
)
await
tb
.
config_ahb_master
.
write
(
0x0
0
,
reg
0
)
await
wait_reg
0
_write
(
dut
,
tb
)
reg
2
=
await
tb
.
config_ahb_master
.
read
(
0x0
8
,
4
)
reg
2
=
int
(
reg
2
[
0
][
'
data
'
],
16
)
reg
2
=
reg
2
&
0xFFFFFFF
0
reg
2
=
reg
2
|
(
1
<<
3
)
reg
2
=
reg
2
|
(
n
)
await
tb
.
config_ahb_master
.
write
(
0x0
8
,
reg
2
)
await
wait_reg
2
_write
(
dut
,
tb
)
@cocotb.test
()
async
def
VM_test1
(
dut
):
...
...
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