This commit is contained in:
Florent Kermarrec 2012-09-09 23:46:26 +02:00
parent 7a24ee7027
commit 4a59b63151
11 changed files with 69 additions and 61 deletions

10
README
View File

@ -7,5 +7,15 @@ or external signals.
[> Status: [> Status:
Early development phase Early development phase
Simulation:
-tb_spi2Csr : Test Spi <--> Csr Bridge : [Ok]
-tb_TriggerCsr : Test Trigger with Csr : [Ok]
-tb_RecorderCsr : Test Recorder with Csr : [Ok]
-tb_MigScope : Global Test with Csr : [Ok]
Example Design:
-de0_nano : Generate Signals in FPGA and probe them with migScope : [Wip]
[> Contact [> Contact
E-mail: florent@enjoy-digital.fr E-mail: florent@enjoy-digital.fr

View File

@ -11,13 +11,13 @@
# ---------------------------------- # ----------------------------------
################################################################################ ################################################################################
# #
# In this example, signals are generated inside generated inside the FPGA. # In this example signals are generated in the FPGA.
# We will use migScope to record those signals it and visualize them. # We will use migScope to record those signals and visualize them.
# #
# Example architecture: # Example architecture:
# ---------------------- # ----------------------
# migScope Config <-- Python Client (Host) --> Vcd Output # migScope Config --> Python Client (Host) --> Vcd Output
# | # & Trig |
# Arduino (Uart<-->Spi Bridge) # Arduino (Uart<-->Spi Bridge)
# | # |
# De0 Nano # De0 Nano

View File

@ -16,7 +16,6 @@ def term_prog(off, dat):
for i in range(4): for i in range(4):
yield TWrite(off+3-i, (dat>>(8*i))&0xFF) yield TWrite(off+3-i, (dat>>(8*i))&0xFF)
def sum_prog(off, addr, dat): def sum_prog(off, addr, dat):
we = 2 we = 2
yield TWrite(off+3, addr%0xFF) yield TWrite(off+3, addr%0xFF)

View File

@ -134,7 +134,6 @@ class SpiMaster(PureSimulable):
self.transaction_cnt +=1 self.transaction_cnt +=1
def main(): def main():
# Csr Slave # Csr Slave
scratch_reg0 = RegisterField("scratch_reg0", 32, reset=0, access_dev=READ_ONLY) scratch_reg0 = RegisterField("scratch_reg0", 32, reset=0, access_dev=READ_ONLY)