कला
सौंदर्य और कल्याण
हस्तशिल्प
संस्कृति और इतिहास
मनोरंजन
पर्यावरण
खाद्य और पेय
रिवर्स इंजीनियरिंग
विज्ञान
खेल
प्रौद्योगिकी
पहनने योग्य

अनुवादित
Youblob (simulation output) · CC0
Dentro del chip: una luz que respira, guardada en la memoria del propio chip
wafer.space's template ships with two SRAM macros in its example design, 512 bytes each, and leaves them switched off. A macro is a finished block of memory from the PDK: 4,096 static memory cells, drawn once with their address decoder and read circuits, that you place whole instead of building from gates.
This rung switches one on. The PWM dimmer from the earlier rung now plays a pattern: a microcontroller writes 256 bytes into the chip through its pads, once, and from then on the chip reads them back by itself, one byte per step, as the brightness of a slowly breathing light.
The core and its testbench were run for this blueprint with Icarus Verilog 12.0, cocotb 2.1.0 and the PDK's own simulation model of the SRAM macro: the output followed the stored table for 600 PWM periods. The picture is that simulation's own output, one bar per period. The ESP32 sketch that loads the table was compiled for this blueprint; there is no chip yet to run it on.
उन्नत
An evening, plus the chip
निर्देश
1
1
पैटर्न, समय और आकार
पैटर्न, समय और आकार
Jupyter नोटबुक लोड हो रही है…
2
2
4,096 बिट्स में से प्रत्येक बिट क्या है
4,096 बिट्स में से प्रत्येक बिट क्या है
एम्बेडेड ब्लूप्रिंट दिखाता है कि स्थैतिक मेमोरी का एक बिट खुद को कैसे धारण करता है: दो इन्वर्टर का एक लूप। इस रंग में मैक्रो एक ही ऐरे में 4,096 बिट्स की स्थैतिक मेमोरी है।
3
3
मैक्रो के पिन, और उसके मॉडल की तीन बातें
मैक्रो के पिन, और उसके मॉडल की तीन बातें
gf180mcu_fd_ip_sram__sram512x8m8wm1 512 बाइट रखता है। इसके पिन: CLK; A, एक 9-बिट पता; D, लिखा जाने वाला बाइट; Q, पढ़ा गया बाइट। तीनों नियंत्रण सभी सक्रिय LOW हैं। CEN 0 पर होने से मेमोरी चालू होती है। GWEN 0 पर होने से घड़ी का किनारा लिखना बनता है, 1 पर पढ़ना। WEN हर डेटा बिट के लिए एक बिट है, और 0 होने पर वह बिट लिखा जा सकता है, इसलिए एक लिखने की क्रिया किसी बाइट के कुछ बिट बदल सकती है और बाकी को अछूता छोड़ सकती है।
PDK के सिमुलेशन मॉडल को पढ़ने से तीन उपयोगी बातें पता चलती हैं। पहली, मेमोरी तभी काम करती है जब CEN 1 से 0 पर जा चुका हो; अन्यथा मॉडल "CEN is not reset, memory is not operational" प्रिंट करता है, इसलिए कोर रीसेट के दौरान CEN को 1 पर रखता है और उसके बाद नीचे करता है। दूसरी, पढ़ने पर A का नमूना लेने वाले घड़ी किनारे के ठीक बाद Q पर mem[A] मिलता है, इसलिए डेटा एक घड़ी बाद तैयार होता है। तीसरी, मॉडल सभी बाइट 0 से शुरू होता है। असली चिप ऐसा नहीं करती: उसका SRAM चालू होने पर हर सेल में जो भी मान गिरा था, वही रखता है, इसलिए डिज़ाइन को पढ़ने से पहले लिखना होगा।
टेम्पलेट का अपना उदाहरण CEN को 1 से जोड़ता है, इसलिए उसके दोनों मैक्रो बंद रहते हैं। उसकी टाइमिंग फ़ाइलें मैक्रो की न्यूनतम घड़ी अवधि 5 V के सामान्य कॉर्नर पर 6.6 ns और धीमे 3.0 V, 125 °C कॉर्नर पर 18.3 ns बताती हैं, जो टेम्पलेट के 40 ns के भीतर अच्छी तरह से हैं।
4
4
The core
The core
src/chip_core.sv for the pattern player, with the template's port list unchanged plus one parameter, HOLD_LOG2. Input pad 0 enables, pad 1 selects LOAD mode, pad 2 is the write strobe; bidirectional pads 0 to 7 carry the byte, pad 8 the PWM. The LOAD and strobe pads are passed through two flip-flops before use, a synchroniser: they change whenever the outside world likes, not in step with the chip's clock, and a flip-flop caught mid-change can hover between 0 and 1 for a while. In play mode, each time HOLD_LOG2 periods have passed, the byte the SRAM has been reading becomes the new duty and the address moves on.
chip_core.svsystemverilog
आवश्यक उपकरण:
डेस्कटॉप कंप्यूटर5
5
The test
The test
test_pattern.py builds the core with the PDK's SRAM model, gf180mcu_fd_ip_sram__sram512x8m8wm1.v, at the template's 25 MHz and with HOLD_LOG2 = 0 so the whole table plays in 256 periods. It loads the table through the pads the way the ESP32 will, then counts the high clocks in each of 600 PWM periods and requires them to follow the table from exactly one starting point. A second test loads again and checks the new pattern replaced the old.
test_pattern.pypython
आवश्यक उपकरण:
डेस्कटॉप कंप्यूटर6
6
सिमुलेशन ने क्या प्रिंट किया
सिमुलेशन ने क्या प्रिंट किया
इस ब्लूप्रिंट के लिए Icarus Verilog 12.0 और cocotb 2.1.0 के साथ चलाया गया:
-------- MESSAGE: CEN अभी-अभी रीसेट हुआ है, मेमोरी संचालन में है ---------
test_pattern.test_plays_the_table PASS (600 periods, table aligns at exactly one offset)
test_pattern.test_reload PASS
TESTS=2 PASS=2 FAIL=0 SKIP=0
यह सिद्ध करने के लिए कि टेस्ट विफल हो सकता है, WEN को 8'b0 से बदलकर 8'hFF किया गया, जो active-low पिन की एक क्लासिक गलती है: हर बिट मास्क हो गया, कुछ भी नहीं लिखा गया, और तालिका में केवल शून्य रहे। दोनों टेस्ट विफल हुए, और कोर को वापस रखा गया।
पहली पंक्ति SRAM मॉडल का अपना संदेश है: रीसेट के बाद कोर ने CEN को नीचे किया, जैसा कि मॉडल की आवश्यकता है।
7
7
Load it from an ESP32
Load it from an ESP32
Once the chip is on its breakout board, this sketch writes the table. Eight GPIOs carry the byte, three more drive LOAD, the strobe and enable, and an LED with a 330 ohm resistor from pad 8 to ground shows the breath. Each level is held for 1 microsecond, 25 of the chip's clocks, so the synchroniser always sees it. The sketch then does nothing: the pattern lives in the chip. It is lost when the chip loses power, so send r over serial to load it again.
The ESP32 is a 3.3 V part and its inputs are not 5 V tolerant. The sketch only drives the chip and never reads from it. The template's default libraries are the 5 V ones; before you connect, check in the I/O library's documentation that 3.3 V is a valid logic high for your chip's inputs, or build with the 3.3 V libraries, as the template's README shows. The sketch compiles for the ESP32 with the Arduino ESP32 core 3.3.12; it has not been run, because the chip does not exist yet.
load_pattern.inocpp
इस चरण के लिए सामग्री:
कस्टम ASIC डाई1 टुकड़ा
मुद्रित परिपथ बोर्ड1 टुकड़ा
5 मिमी एलईडी1 टुकड़ा
330 ओम प्रतिरोधक1 टुकड़ाआवश्यक उपकरण:
ESP32 विकास बोर्ड
ब्रेडबोर्ड
जम्पर तार
डेस्कटॉप कंप्यूटर8
8
जो पैटर्न सहेजा नहीं जाता या चलता नहीं है
जो पैटर्न सहेजा नहीं जाता या चलता नहीं है
SRAM पैटर्न समस्या निवारण।
Flow
Loading...
9
9
स्रोत और ईमानदार सीमाएँ
स्रोत और ईमानदार सीमाएँ
**स्रोत**, 29 सितंबर 2026 को पढ़े गए: GF180MCU PDK उस कमिट पर जिसे टेम्पलेट पिन करता है (gf180mcuD, f6eeac7dad085ffcc829ccfd721f7b4ce39edcf7, fossi-foundation ciel रिलीज़ से; Apache-2.0): SRAM मॉडल gf180mcu_fd_ip_sram__sram512x8m8wm1.v, रूपरेखा के लिए उसका LEF, और न्यूनतम घड़ी अवधि के लिए उसकी टाइमिंग फ़ाइलें; फ़्लिप-फ़्लॉप क्षेत्रफल के लिए स्टैंडर्ड-सेल लाइब्रेरी की टाइमिंग फ़ाइल। wafer-space/gf180mcu-project-template रिपॉज़िटरी (src/chip_core.sv, src/chip_top.sv, README.md, librelane/config.yaml; Apache-2.0)।
**ईमानदार सीमाएँ।** सिमुलेशन chip_core स्तर पर है, SRAM के अपने मॉडल के साथ, लेकिन बिना पैड रिंग, सिंथेसिस या लेआउट के, और मॉडल की टाइमिंग जाँचें यहाँ कुछ तय नहीं करतीं। ESP32 स्केच संकलित हुआ था, चलाया नहीं गया। HOLD_LOG2 परीक्षण में 0 था ताकि वह पूरा हो जाए; चिप में 9 होता, लगभग 1.3 सेकंड का एक पल।
सामग्री
4- 1 टुकड़ाप्लेसहोल्डर
- 1 टुकड़ाप्लेसहोल्डर
- प्लेसहोल्डर
- 1 टुकड़ाप्लेसहोल्डर
संबंधित ब्लूप्रिंट
ये ब्लूप्रिंट ज्ञान साझा करते हैं — तकनीक, सामग्री या सिद्धांत
CC0 पब्लिक डोमेन
यह ब्लूप्रिंट CC0 के तहत जारी किया गया है। आप बिना अनुमति माँगे इस कार्य को किसी भी उद्देश्य के लिए कॉपी, संशोधित, वितरित और उपयोग करने के लिए स्वतंत्र हैं।
उनके ब्लूप्रिंट के माध्यम से उत्पाद खरीदकर मेकर का समर्थन करें जहाँ वे मेकर कमीशन कमाते हैं जो विक्रेताओं द्वारा निर्धारित होता है, या इस ब्लूप्रिंट का नया संस्करण बनाएँ और राजस्व साझा करने के लिए इसे अपने ब्लूप्रिंट में कनेक्शन के रूप में शामिल करें।



