smart-pix / asic-testing-fnal-lab-notebooks

Lab notebooks and git issues for testing
0 stars 0 forks source link

06/20/24 #8

Open badeaa3 opened 3 months ago

badeaa3 commented 3 months ago

Goals:

badeaa3 commented 3 months ago

From Ben a summary of the steps to test the Scanchain:

This corresponds to Figure 8 from the test manual:

image (6)

  1. BxCLK = 10MHz - 40MHz
  2. Reset_not to pulse low to reset the registers in the chip (not the registers in the FW)
  3. scanIn to pulse high for at least a BxCLK cycle. scanIn should go high at the falling edge of BxCLK, and go low again at the next rising edge.
  4. Count 676 BxCLK cycle and scanOut will pulse high for a single clock cycle. scanOut comes from v0 or v1 chip.

Comments:

badeaa3 commented 3 months ago

Section 9 describes how to connect the scope to a computer https://www.rftesolutions.com/pdf/oscilloscopes/DSO6012A--Users_Guide.pdf

badeaa3 commented 3 months ago

FW notes:

badeaa3 commented 3 months ago

hex code = 4'h2, 4'h2, 11'h0, 1'h0, 1'h0, 5'h4, 6'hA

First byte

Other 3 bytes:

verify that we can read the register from sw_read32_0 and sw_read32_1. The 3 bytes stored in here should match the least significant (LSB) 3 bytes from sw_write32_0

Every clock cycle create 768 bits and read it out every clock cycle

badeaa3 commented 3 months ago
badeaa3 commented 3 months ago
badeaa3 commented 3 months ago

execute OP code, the last three bytes = test delay, sample, number, loopback

badeaa3 commented 3 months ago

Test 1

Expectation: we should see pulses of various shapes from the scan_in pin 23 on the scope Result: we do not see any pulses

badeaa3 commented 3 months ago

Test 2

Result: we still read back 0 Thoughts: this sounds like the memory map is wrong