Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tr-pmc
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
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
Projects
tr-pmc
Commits
2bc1fe8c
Commit
2bc1fe8c
authored
10 years ago
by
A. Hahn
Browse files
Options
Downloads
Patches
Plain Diff
Added stub hdl files and Manifest
parent
533fcfac
Branches
Branches containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Manifest.py
+4
-0
4 additions, 0 deletions
Manifest.py
README
+6
-0
6 additions, 0 deletions
README
src/hdl/wb_pmc_host_bridge.vhd
+63
-0
63 additions, 0 deletions
src/hdl/wb_pmc_host_bridge.vhd
src/hdl/wb_pmc_host_bridge_pkg.vhd
+75
-0
75 additions, 0 deletions
src/hdl/wb_pmc_host_bridge_pkg.vhd
with
148 additions
and
0 deletions
Manifest.py
0 → 100644
+
4
−
0
View file @
2bc1fe8c
files
=
[
"
src/hdl/wb_pmc_host_bridge.vhd
"
,
"
src/hdl/wb_pmc_host_bridge_pkg.vhd
"
]
This diff is collapsed.
Click to expand it.
README
+
6
−
0
View file @
2bc1fe8c
A White Rabbit Timing Receiver in PMC (PCI Mezzanine Card) format.
This repository contains a PCI to WB core with:
- PCI v2.2 compliant 32-bit 33 MHz Target Interface
- Interrupt generation (legacy and MSI)
This diff is collapsed.
Click to expand it.
src/hdl/wb_pmc_host_bridge.vhd
0 → 100644
+
63
−
0
View file @
2bc1fe8c
-- libraries and packages
-- ieee
library
ieee
;
use
ieee
.
std_logic_1164
.
all
;
use
ieee
.
numeric_std
.
all
;
-- wishbone/gsi/cern
library
work
;
use
work
.
wishbone_pkg
.
all
;
use
work
.
genram_pkg
.
all
;
-- entity
entity
wb_pmc_host_bridge
is
port
(
-- FPGA signals
clk_sys_i
:
in
std_logic
;
rst_n_i
:
in
std_logic
;
-- Commands from PMC to FPGA
master_clk_i
:
in
std_logic
:
=
'0'
;
master_rstn_i
:
in
std_logic
:
=
'1'
;
master_o
:
out
t_wishbone_master_out
;
master_i
:
in
t_wishbone_master_in
;
-- Command to PMC from FPGA
slave_clk_i
:
in
std_logic
:
=
'0'
;
slave_rstn_i
:
in
std_logic
:
=
'1'
;
slave_i
:
in
t_wishbone_slave_in
;
slave_o
:
out
t_wishbone_slave_out
;
-- PCI signals - generic
pci_clk_i
:
in
std_logic
:
=
'0'
;
pci_rst_i
:
in
std_logic
:
=
'0'
;
buf_oe_o
:
out
std_logic
;
busmode_io
:
inout
std_logic_vector
(
3
downto
0
);
-- PCI signals (required) - address and data
ad_io
:
inout
std_logic_vector
(
31
downto
0
);
c_be_io
:
inout
std_logic_vector
(
3
downto
0
);
par_io
:
inout
std_logic
;
-- PCI signals (required) - interface control pins
frame_io
:
inout
std_logic
;
trdy_io
:
inout
std_logic
;
irdy_io
:
inout
std_logic
;
stop_io
:
inout
std_logic
;
devsel_io
:
inout
std_logic
;
idsel_i
:
in
std_logic
;
-- PCI signals (required) - error reporting
perr_io
:
inout
std_logic
;
serr_io
:
inout
std_logic
;
-- PCI signals (required) - arbitration
req_o
:
out
std_logic
;
gnt_i
:
in
std_logic
;
-- PCI signals (optional) - interrupts pins
inta_o
:
out
std_logic
;
intb_o
:
out
std_logic
;
intc_o
:
out
std_logic
;
intd_o
:
out
std_logic
);
end
wb_pmc_host_bridge
;
architecture
rtl
of
wb_pmc_host_bridge
is
begin
end
rtl
;
This diff is collapsed.
Click to expand it.
src/hdl/wb_pmc_host_bridge_pkg.vhd
0 → 100644
+
75
−
0
View file @
2bc1fe8c
-- libraries and packages
-- ieee
library
ieee
;
use
ieee
.
std_logic_1164
.
all
;
use
ieee
.
numeric_std
.
all
;
-- wishbone/gsi/cern
library
work
;
use
work
.
wishbone_pkg
.
all
;
use
work
.
genram_pkg
.
all
;
-- package declaration
package
wb_pmc_host_bridge_pkg
is
component
wb_pmc_host_bridge
port
(
-- FPGA signals
clk_sys_i
:
in
std_logic
;
rst_n_i
:
in
std_logic
;
-- Commands from PMC to FPGA
master_clk_i
:
in
std_logic
:
=
'0'
;
master_rstn_i
:
in
std_logic
:
=
'1'
;
master_o
:
out
t_wishbone_master_out
;
master_i
:
in
t_wishbone_master_in
;
-- Command to PMC from FPGA
slave_clk_i
:
in
std_logic
:
=
'0'
;
slave_rstn_i
:
in
std_logic
:
=
'1'
;
slave_i
:
in
t_wishbone_slave_in
;
slave_o
:
out
t_wishbone_slave_out
;
-- PCI signals - generic
pci_clk_i
:
in
std_logic
:
=
'0'
;
pci_rst_i
:
in
std_logic
:
=
'0'
;
buf_oe_o
:
out
std_logic
;
busmode_io
:
inout
std_logic_vector
(
3
downto
0
);
-- PCI signals (required) - address and data
ad_io
:
inout
std_logic_vector
(
31
downto
0
);
c_be_io
:
inout
std_logic_vector
(
3
downto
0
);
par_io
:
inout
std_logic
;
-- PCI signals (required) - interface control pins
frame_io
:
inout
std_logic
;
trdy_io
:
inout
std_logic
;
irdy_io
:
inout
std_logic
;
stop_io
:
inout
std_logic
;
devsel_io
:
inout
std_logic
;
idsel_i
:
in
std_logic
;
-- PCI signals (required) - error reporting
perr_io
:
inout
std_logic
;
serr_io
:
inout
std_logic
;
-- PCI signals (required) - arbitration
req_o
:
out
std_logic
;
gnt_i
:
in
std_logic
;
-- PCI signals (optional) - interrupts pins
inta_o
:
out
std_logic
;
intb_o
:
out
std_logic
;
intc_o
:
out
std_logic
;
intd_o
:
out
std_logic
);
end
component
;
constant
c_msi_pmc_sdb
:
t_sdb_device
:
=
(
abi_class
=>
x"0000"
,
-- undocumented device
abi_ver_major
=>
x"01"
,
abi_ver_minor
=>
x"01"
,
wbd_endian
=>
c_sdb_endian_big
,
wbd_width
=>
x"4"
,
-- 32-bit port granularity
sdb_component
=>
(
addr_first
=>
x"0000000000000000"
,
addr_last
=>
x"00000000000000ff"
,
product
=>
(
vendor_id
=>
x"0000000000000651"
,
-- GSI
device_id
=>
x"94ECf80C"
,
version
=>
x"00000001"
,
date
=>
x"20150115"
,
name
=>
"PMC_HOST_BRIDGE_PCI"
)));
end
wb_pmc_host_bridge_pkg
;
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