pulp-platform / tech_cells_generic Goto Github PK
View Code? Open in Web Editor NEWTechnology dependent cells instantiated in the design for generic process (simulation, FPGA)
License: Other
Technology dependent cells instantiated in the design for generic process (simulation, FPGA)
License: Other
Hello @zarubaf, @meggiman, @niwis (sorry I do not know who is the repo leader)
I have a legacy issue with tech_cells_generic repo.
tech_cells_generic repo does not contain cluster_clock_inverter.sv and pulp_clock_mux2.sv anymore !
In CVA6 project, dmi_jtag_tap module instantiates cluster_clock_inverter and pulp_clock_mux2 modules and I would be pleased to use the new tc_srams module. Could you add the cluster_clock_inverter.sv and pulp_clock_mux2.sv cells in the last tech_cells_generic version ?
Thanks
The current tc_sram
wrapper does not generalize to more than one clock and the ports always come with read and write capabilities. That is a bit too limiting for the memories that are usually available in modern techs.
Furthermore I think it would be nice to capture all the behavior of the memory in a commonly understandable format (json
, protofbufs
) so that we can extend and automatize the generation of the SRAM instantiations.
This is my straw-man proposal:
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://pulp-platform.org/snitch/memory.schema.json",
"title": "memory_schema",
"description": "Generic Schema to describe properties of SRAMs.",
"type": "object",
"required": ["num_words", "data_width"],
"properties": {
"description": {
"type": "string",
"description": "Optional description."
},
"num_words": {
"type": "integer",
"description": "Number of words in data array."
},
"data_width": {
"type": "integer",
"description": "Data width in bits."
},
"initialization": {
"type": "string",
"description": "(Optional) initialization of memory.",
"enum": ["none", "ones", "zeros", "random"],
"default": "none"
},
"implementation": {
"description": "(Physical) Implementation details.",
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "(Optional) Implementation type. Register file or SRAM.",
"enum": [
"rf",
"sram"
]
},
"optimization": {
"type": "string",
"description": "(Optional) Optimization hint. Should this be tuned towards speed or density.",
"enum": [
"perf", "density"
]
}
}
},
"independent_clocks": {
"type": "boolean",
"description": "Each port has an independent clock associated (multi-clock memories).",
"default": false
},
"ports": {
"type": "array",
"items": {
"type": "object",
"description": "Description of a port of the memory array.",
"additionalItems": false,
"minItems": 1,
"properties": {
"read": {
"type": "boolean",
"description": "Enable read capabilities on port.",
"default": true
},
"read_latency": {
"type": "integer",
"description": "Number of latency from read request valid to read data valid.",
"default": 1
},
"write": {
"type": "boolean",
"description": "Enable write capabilities on port.",
"default": true
},
"byte_width": {
"type": "integer",
"description": "Byte width in bits. In cas the byte width does not divide the data width the most significant byte will be smaller (i.e., truncated).",
"default": true
},
"byte_mask": {
"type": "boolean",
"description": "Has a byte mask, i.e., bytes can be written independently.",
"default": 8
}
}
}
}
}
}
I think in the future it can hold much more, such as BIST capabilities, physical design aspects (i.e., number of rails, preferred aspect ratio, etc.). Ideally, we would end up with a generation infrastructure for each technology that sanitizes the inputs for a given technology and generates the infrastructure.
I would furthermore propose that we split the tc_sram
into a tc_sram
and tc_sram_core
. The latter just containing the memory array (i.e., the thing that will be replaced by tech-specific stuff). That will also allow us to implement (or provide an implementation) of the core as flip-flops or latches. That is something we can also provide as open-source.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.