Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
x393
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
x393
Commits
c4b3e834
Commit
c4b3e834
authored
Jan 20, 2021
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added boson bit, generated for as if 2.5V
parent
a5738482
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
13 deletions
+39
-13
fpga_version.vh
fpga_version.vh
+2
-1
x393_parameters.vh
includes/x393_parameters.vh
+1
-1
sens_103993.v
sensor/sens_103993.v
+36
-11
x393_boson.bit
x393_boson.bit
+0
-0
No files found.
fpga_version.vh
View file @
c4b3e834
...
@@ -35,7 +35,8 @@
...
@@ -35,7 +35,8 @@
* contains all the components and scripts required to completely simulate it
* contains all the components and scripts required to completely simulate it
* with at least one of the Free Software programs.
* with at least one of the Free Software programs.
*/
*/
parameter FPGA_VERSION = 32'h03930200; // Initial Boson implementation
parameter FPGA_VERSION = 32'h03930201; // Initial Boson implementation (cheating with 2.5V - as with HISPI)
// parameter FPGA_VERSION = 32'h03930200; // Initial Boson implementation (1.8V)
//BOSON
//BOSON
// parameter FPGA_VERSION = 32'h03930139; // Adding pullup on senspgm
// parameter FPGA_VERSION = 32'h03930139; // Adding pullup on senspgm
// parameter FPGA_VERSION = 32'h03930138; // Fixing output trigger in free running mode
// parameter FPGA_VERSION = 32'h03930138; // Fixing output trigger in free running mode
...
...
includes/x393_parameters.vh
View file @
c4b3e834
...
@@ -687,7 +687,7 @@
...
@@ -687,7 +687,7 @@
// parameters for the sensor-synchronous clock PLL
// parameters for the sensor-synchronous clock PLL
// ALL PARAMETERS HERE SHOULD BE DEFINED (for use in C-generator)
// ALL PARAMETERS HERE SHOULD BE DEFINED (for use in C-generator)
//
`define TWEAKING_IOSTANDARD
`define TWEAKING_IOSTANDARD
`ifdef HISPI
`ifdef HISPI
parameter CLKIN_PERIOD_SENSOR = 3.000, // input period in ns, 0..100.000 - MANDATORY, resolution down to 1 ps
parameter CLKIN_PERIOD_SENSOR = 3.000, // input period in ns, 0..100.000 - MANDATORY, resolution down to 1 ps
parameter CLKFBOUT_MULT_SENSOR = 3, // 330 MHz --> 990 MHz
parameter CLKFBOUT_MULT_SENSOR = 3, // 330 MHz --> 990 MHz
...
...
sensor/sens_103993.v
View file @
c4b3e834
...
@@ -186,8 +186,8 @@ module sens_103993 #(
...
@@ -186,8 +186,8 @@ module sens_103993 #(
input
extif_rst
input
extif_rst
)
;
)
;
wire
[
7
:
0
]
debug_UART_CLK_DIV
=
CLK_DIV
;
// = 22,
//
wire[7:0]debug_UART_CLK_DIV = CLK_DIV; // = 22,
wire
[
7
:
0
]
debug_UART_RX_DEBOUNCE
=
RX_DEBOUNCE
;
// 6,
//
wire[7:0]debug_UART_RX_DEBOUNCE = RX_DEBOUNCE; // 6,
wire
dvalid_w
;
wire
dvalid_w
;
reg
dvalid_r
;
reg
dvalid_r
;
...
@@ -251,12 +251,13 @@ module sens_103993 #(
...
@@ -251,12 +251,13 @@ module sens_103993 #(
wire
senspgmin
;
// detect sensorboard
wire
senspgmin
;
// detect sensorboard
// GP0..GP3 are not yet used, fake-use gp_comb to keep
// GP0..GP3 are not yet used, fake-use gp_comb to keep
wire
[
3
:
0
]
gp
;
wire
[
3
:
0
]
gp
;
wire
gp_comb
=
&
gp
[
3
:
0
]
;
wire
[
2
:
0
]
dummy
;
// to keep iostandard of unused pins in a bank
wire
gp_comb
=
(
^
gp
[
3
:
0
])
^
(
^
dummy
)
;
assign
status
=
{
recv_data
[
7
:
0
]
,
// [23:16]
assign
status
=
{
recv_data
[
7
:
0
]
,
// [23:16]
recv_eop
,
// 15
recv_eop
,
// 15
recv_pav
,
// 14
recv_pav
,
// 14
mrst
?
gp_comb
:
hact_alive
,
// 13 using gp_comb to keep
imrst
?
hact_alive
:
gp_comb
,
// 13 using gp_comb to keep
locked_pclk
,
// 12 // wait after mrst
locked_pclk
,
// 12 // wait after mrst
clkin_pxd_stopped_mmcm
,
// 11
clkin_pxd_stopped_mmcm
,
// 11
clkfb_pxd_stopped_mmcm
,
// 10
clkfb_pxd_stopped_mmcm
,
// 10
...
@@ -565,20 +566,21 @@ module sens_103993 #(
...
@@ -565,20 +566,21 @@ module sens_103993 #(
.
IOSTANDARD
(
PXD_IOSTANDARD
)
,
.
IOSTANDARD
(
PXD_IOSTANDARD
)
,
.
SLEW
(
PXD_SLEW
)
.
SLEW
(
PXD_SLEW
)
)
sns_dp6_i
(
)
sns_dp6_i
(
.
O
()
,
// output
.
O
(
dummy
[
0
]
)
,
// output
.
IO
(
sns_dp6
)
,
// inout
.
IO
(
sns_dp6
)
,
// inout
.
I
(
1'b0
)
,
// input
.
I
(
1'b0
)
,
// input
.
T
(
1'b0
)
// input
.
T
(
1'b0
)
// input
)
;
)
;
// dummy I/O to specify IOSTANDARD
// dummy I/O to specify IOSTANDARD
/*
iobuf #(
iobuf #(
.DRIVE (PXD_DRIVE),
.DRIVE (PXD_DRIVE),
.IBUF_LOW_PWR (PXD_IBUF_LOW_PWR),
.IBUF_LOW_PWR (PXD_IBUF_LOW_PWR),
.IOSTANDARD (PXD_IOSTANDARD),
.IOSTANDARD (PXD_IOSTANDARD),
.SLEW (PXD_SLEW)
.SLEW (PXD_SLEW)
) sns_dp3_i (
) sns_dp3_i (
.
O
(
)
,
// output
.O (
dummy[1]),
// output
.IO (sns_dp[3]), // inout
.IO (sns_dp[3]), // inout
.I (1'b0), // input
.I (1'b0), // input
.T (1'b0) // input
.T (1'b0) // input
...
@@ -591,11 +593,34 @@ module sens_103993 #(
...
@@ -591,11 +593,34 @@ module sens_103993 #(
.IOSTANDARD (PXD_IOSTANDARD),
.IOSTANDARD (PXD_IOSTANDARD),
.SLEW (PXD_SLEW)
.SLEW (PXD_SLEW)
) sns_dn3_i (
) sns_dn3_i (
.
O
(
)
,
// output
.O (
dummy[2]),
// output
.IO (sns_dn[3]), // inout
.IO (sns_dn[3]), // inout
.I (1'b0), // input
.I (1'b0), // input
.T (1'b0) // input
.T (1'b0) // input
);
);
*/
ibuf_ibufg
#(
.
CAPACITANCE
(
PXD_CAPACITANCE
)
,
.
IBUF_DELAY_VALUE
(
"0"
)
,
.
IBUF_LOW_PWR
(
PXD_IBUF_LOW_PWR
)
,
.
IFD_DELAY_VALUE
(
"AUTO"
)
,
.
IOSTANDARD
(
PXD_IOSTANDARD
)
)
sns_dp3_i
(
.
O
(
dummy
[
1
])
,
// output
.
I
(
sns_dn
[
3
])
// input
)
;
ibuf_ibufg
#(
.
CAPACITANCE
(
PXD_CAPACITANCE
)
,
.
IBUF_DELAY_VALUE
(
"0"
)
,
.
IBUF_LOW_PWR
(
PXD_IBUF_LOW_PWR
)
,
.
IFD_DELAY_VALUE
(
"AUTO"
)
,
.
IOSTANDARD
(
PXD_IOSTANDARD
)
)
sns_dn3_i
(
.
O
(
dummy
[
2
])
,
// output
.
I
(
sns_dp
[
3
])
// input
)
;
// end of dummy
// end of dummy
...
...
x393_boson.bit
0 → 100644
View file @
c4b3e834
File added
Write
Preview
Markdown
is supported
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