Coder Social home page Coder Social logo

Comments (3)

zdraw avatar zdraw commented on August 15, 2024

The .dat files as parsed for lines with 32 groups of hex bytes. First byte on the line of 32 maps to offset 0 (the base address is specified in input.txn) and the last byte on the line maps to offset 31. The first byte of the second line maps to offset 32 and the last byte on the line maps to offset 63, etc.
Lines without "0x" at the beginnning are ignored so some of our files have comments in plain text.
When reading a .dat file, the format is
0x<byte0> 0x<byte1> ... 0x<byte30> 0x<byte31>
0x<byte32> 0x<byte33> ... 0x<byte62> 0x<byte63>

verif/synth_tb/sim_scripts/input_txn_to_hexdump.pl does the conversion of .dat to .raw2 for simulation. The testbench takes in .raw2 files using readmemh. readmemh takes values 4 bytes at a time and the right-most byte going to address 0.
When reading a .raw2 files, the format is
<byte7><byte6>...<byte1><byte0>
<byte15><byte14>...<byte9><byte8>

from hw.

rill-zhen avatar rill-zhen commented on August 15, 2024

the 'format' here, i am refer in particular to the structure of the feature-maps and the weights in the Memory and CBUF.for example ,for feature-map(Width x Height x M_channel) , weight(Row x Column x M_channel x N_channel),
is 0xbyte0 the weight[w0][h0][m0][n0]?
is 0xbyte2 the weight[w1][h0][m0][n0] or weight[w1][h0][m1][n0]?
where is the weight[w_i][h_j][m_k][n_l] stored in the Memory and CBUF?

from hw.

jwise avatar jwise commented on August 15, 2024

We've written some documentation about this: http://nvdla.org/hw/format.html

from hw.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.