오늘 아침까지 열심히 문서로 정리해놨으니

이제 두달 정도는 그거 따라하면서 글쓸꺼 뽑으면 개이득인가?

 

아무튼 막혔던거 구현은 해봤고

그과정에서 나에게 남는게 하나도 없었으니

이제 남기는 과정과 시간이 필요할 뿐

'모종의 음모 > ai 프로그램' 카테고리의 다른 글

codex 결제 끝나감  (0) 2026.11.28
chatGPT 약았네~!  (0) 2026.11.26
크래프톤 raon-1 mini 모델 공개  (0) 2026.11.26
ai 사용량 끝 ㅠㅠ  (0) 2026.11.22
openAI GPT-6.2 Astra 출시  (0) 2026.11.18
Posted by 구차니
프로그램 사용/Blender2026. 11. 28. 21:47

ai 생성된거 구조 변경하는 예제

[링크 : https://www.youtube.com/shorts/gcSnETb_Pno]

 

F2 라는 것과 Bsurfaces 라는걸 설치해주란다.

[링크 : https://m.blog.naver.com/mozzi_meow/223464008618]

'프로그램 사용 > Blender' 카테고리의 다른 글

blender ik - chain length 테스트  (0) 2026.10.14
blender vrm import + miko  (0) 2026.09.14
버튜버 모델 miko vrm  (0) 2026.09.09
blender sculpting - trim  (0) 2026.09.04
blender 객체 중심에 오게 하기  (0) 2026.09.04
Posted by 구차니

그래서 열심히 한달간 작업했던거

스크린샷까지 찍어서 문서로 만들어 달라고 하는 중

 

리눅스나 윈도우 codex에서 단순하게 문서로 만들어 달라고 하면 조금 토큰을 먹는데

altera quartus 라던가 xilinx vivado를 직접 조작해서 스샷 찍어 달라고 하면 토큰이 살살 녹는다.

영상을 매번 다시 확인하기 위해서 FHD 사이즈로 이미지를 요청하고 분석해서 토큰을 더 먹는걸까..

아니면 윈도우라서 파워셀로 해서 그런걸까?

리눅스 들은 사양이 낮아서 vivado 깔기 용량도 부족한디.. 끄응

'모종의 음모 > ai 프로그램' 카테고리의 다른 글

codex 결제 끝  (0) 2026.11.29
chatGPT 약았네~!  (0) 2026.11.26
크래프톤 raon-1 mini 모델 공개  (0) 2026.11.26
ai 사용량 끝 ㅠㅠ  (0) 2026.11.22
openAI GPT-6.2 Astra 출시  (0) 2026.11.18
Posted by 구차니
Programming/wasm2026. 11. 27. 22:13

codex 결제해서 물어본거 이제야 정리.

 

const memory = new WebAssembly.Memory({ initial: 1 }); // 1페이지 = 64 KiB
const view = new Int32Array(memory.buffer);

 

크롬 개발자 도구에서 별다른거 불러오지 않고 바로 되는거 확인

memory = new WebAssembly.Memory({initial:1})
Memory(1)buffer: ArrayBuffer(65536)[[Prototype]]: WebAssembly.Memory
memory

view = new Int32Array(memory.buffer)
Int32Array(16384) [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, …]

 

생성해준건 이런데 진짜 제로카피인지 어떻게 확인하지?

// 입력 배열을 제자리에서 두 배로 만듭니다.
#include <wasm_simd128.h>
#include <stdint.h>
#include <stddef.h>

void double_i32(int32_t *data, size_t n) {
    size_t i = 0;

    for (; i + 4 <= n; i += 4) {
        v128_t x = wasm_v128_load(&data[i]);
        wasm_v128_store(&data[i], wasm_i32x4_add(x, x));
    }

    for (; i < n; i++) {
        data[i] *= 2;
    }
}
const n = 1024;
const ptr = Module._malloc(n * Int32Array.BYTES_PER_ELEMENT);

// Wasm 메모리를 직접 바라보는 뷰: 이 생성 자체는 데이터 복사를 하지 않습니다.
const data = new Int32Array(Module.HEAP32.buffer, ptr, n);

// JS가 이 뷰에 쓰고, C가 같은 메모리를 처리합니다.
data.set(Array.from({ length: n }, (_, i) => i)); // 여기서는 입력 생성/복사 발생
Module._double_i32(ptr, n);

// 결과도 같은 뷰에서 바로 확인할 수 있습니다.
console.log(data.slice(0, 8)); // slice는 복사
console.log(data.subarray(0, 8)); // subarray는 복사하지 않음

Module._free(ptr);
emcc simd.c -O3 -msimd128 \
  -s EXPORTED_FUNCTIONS='["_double_i32", "_malloc", "_free"]' \
  -o simd.js
 

'Programming > wasm' 카테고리의 다른 글

wasm 배열 예제  (0) 2023.01.31
wasm interfacing example  (0) 2021.11.25
wasm text format  (0) 2021.10.26
wasm text 와 binary 상호변환  (0) 2021.10.26
emcc wasm 빌드  (0) 2021.10.25
Posted by 구차니

어우..

'개소리 왈왈 > 육아관련 주저리' 카테고리의 다른 글

하루 늦은 티비 망가짐  (0) 2026.11.20
털  (0) 2026.11.15
읭??  (0) 2026.10.19
prp 주사  (4) 2026.10.05
피곤  (0) 2026.09.26
Posted by 구차니

아까 7시 까지만 해도 안보이더니

이제 1시간 남았는데 초기권 쓸래? 약올린다

아니 머여?!?!

 

'모종의 음모 > ai 프로그램' 카테고리의 다른 글

codex 결제 끝  (0) 2026.11.29
codex 결제 끝나감  (0) 2026.11.28
크래프톤 raon-1 mini 모델 공개  (0) 2026.11.26
ai 사용량 끝 ㅠㅠ  (0) 2026.11.22
openAI GPT-6.2 Astra 출시  (0) 2026.11.18
Posted by 구차니

30B-A4B MoE 모델이라고 한다.

 

[링크 : https://huggingface.co/KRAFTON/Raon-1-mini-gguf]

 

+ 2026.11.27

웹으로 제공도 되고, api 로도 된다고 하는데 이건 아직 찾아보는중

[링크 : https://raon-console.krafton.ai/playground/guest]

 

구버전으로는 알수없는 포맷이라고 나오고

/mnt/Downloads/model/raon1mini$ ../../llama-b11158/llama-cli -m raon-1-mini-IQ4_XS.gguf 


Loading model... -0.00.593.865 E llama_model_load: error loading model: unknown model architecture: 'raon1'
0.00.593.885 E llama_model_load_from_file_impl: failed to load model
0.00.595.763 E common_fit_params: encountered an error while trying to fit params to free device memory: failed to load model
|0.00.738.764 E llama_model_load: error loading model: unknown model architecture: 'raon1'
0.00.738.795 E llama_model_load_from_file_impl: failed to load model
0.00.738.800 E cmn  common_init_: failed to load model 'raon-1-mini-IQ4_XS.gguf'
0.00.738.807 E srv    load_model: failed to load model, 'raon-1-mini-IQ4_XS.gguf'
0.00.739.167 E srv  llama_server: exiting due to model loading error
llama_server exited with code 1
Error: the server exited before becoming ready

 

신버전으로 올려서 해보는데도 안되서 일단 포기

/mnt/Downloads/model/raon1mini$ ../../llama-b12760/llama-cli -m raon-1-mini-IQ4_XS.gguf 


Loading model... -0.00.817.093 E llama_model_load: error loading model: done_getting_tensors: wrong number of tensors; expected 736, got 731
0.00.817.102 E llama_model_load_from_file_impl: failed to load model
0.00.817.141 E common_fit_params: encountered an error while trying to fit params to free device memory: failed to load model
\0.01.252.149 E llama_model_load: error loading model: done_getting_tensors: wrong number of tensors; expected 736, got 731
0.01.252.154 E llama_model_load_from_file_impl: failed to load model
0.01.252.175 E cmn  common_init_: failed to load model 'raon-1-mini-IQ4_XS.gguf'
0.01.252.182 E srv    load_model: failed to load model, 'raon-1-mini-IQ4_XS.gguf'
0.01.252.411 E srv  server_run_i: exiting due to model loading error
llama_server exited with code 1
Error: the server exited before becoming ready

 

 

모델카드 보니 옵션만 좀 주고 빌드하면 될 것 같긴한데 귀찮네 -ㅁ-

git clone -b raon-1-mini \
    https://github.com/krafton-ai/llama.cpp
cd llama.cpp

# Omit -DGGML_CUDA=ON on Apple silicon.
# On Windows, run from a Developer Command Prompt and add -G Ninja.
cmake -B build -DGGML_CUDA=ON -DLLAMA_BUILD_BORINGSSL=ON
cmake --build build --config Release -j

Start a terminal chat. The model downloads automatically.

./build/bin/llama-cli \
    -hf KRAFTON/Raon-1-mini-gguf:Q4_K_M \
    --ctx-size 262144 \
    --n-predict 32768 \
    --temp 1.0 \
    --top-p 0.95 \
    --top-k 20 \
    --min-p 0.0 \
    --repeat-penalty 1.0 \
    --frequency-penalty 0.0 \
    --presence-penalty 1.5 \
    --reasoning on \
    --chat-template-kwargs '{
      "enable_thinking": true,
      "truncate_history_thinking": false
    }'

'모종의 음모 > ai 프로그램' 카테고리의 다른 글

codex 결제 끝나감  (0) 2026.11.28
chatGPT 약았네~!  (0) 2026.11.26
ai 사용량 끝 ㅠㅠ  (0) 2026.11.22
openAI GPT-6.2 Astra 출시  (0) 2026.11.18
codex 5시간 한도의 양이 줄었나? 그대로인가?  (0) 2026.11.18
Posted by 구차니
embeded/rpi pico2026. 11. 25. 14:50

 

jtag.pio

;/*
; * The MIT License (MIT)
; *
; * Copyright (c) 2020-2025 Patrick Dussud
; *
; * Permission is hereby granted, free of charge, to any person obtaining a copy
; * of this software and associated documentation files (the "Software"), to deal
; * in the Software without restriction, including without limitation the rights
; * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
; * copies of the Software, and to permit persons to whom the Software is
; * furnished to do so, subject to the following conditions:
; *
; * The above copyright notice and this permission notice shall be included in
; * all copies or substantial portions of the Software.
; *
; * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
; * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
; * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
; * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
; * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
; * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
; * THE SOFTWARE.
; *
; */

;JTAG implementation

.pio_version 0 // only requires PIO version 0
.program djtag_tdo
.side_set 1 opt

; Pin assignments:
; - TCK is side-set pin 0
; - TDI is OUT pin 0
; - TDO is IN pin 0
;
; Autopush and autopull must be enabled, and the serial frame size is set by
; configuring the push/pull threshold (32 bits). Shift should be left

; data is captured on the leading edge of each TCK pulse, and
; transitions on the trailing edge, or some time before the first leading edge.
    pull                        ; get length-1 and disregard previous OSR state 
    out x, 32       side 0      ; this moves the first 32 bits into X
loop:
    out pins, 1     side 0      ; Stall here on empty (sideset proceeds even if instruction stalls, so we stall with TCK low
    nop             side 1      ; raise TCK
    in pins, 1      side 1      ; sample TDO
    jmp x-- loop    side 0
    push            side 0      ; Force the last ISR bits to be pushed to the tx fifo
% c-sdk {
#include "hardware/gpio.h"
static inline void pio_jtag_init(PIO pio, uint sm,
        uint16_t clkdiv, uint pin_tck, uint pin_tdi, uint pin_tdo) {
    uint prog_offs = pio_add_program(pio, &djtag_tdo_program);
    pio_sm_config c = djtag_tdo_program_get_default_config(prog_offs);
    sm_config_set_out_pins(&c, pin_tdi, 1);
    sm_config_set_in_pins(&c, pin_tdo);
    sm_config_set_in_pin_count(&c 1);
    sm_config_set_sideset_pins(&c, pin_tck);
    //(shift to left, auto push/pull, threshold=nbits)
    sm_config_set_out_shift(&c, false, true, 8);
    sm_config_set_in_shift(&c, false, true, 8);
    sm_config_set_clkdiv_int_frac(&c, clkdiv, 0);

    // TDI, TCK output are low, TDO is input
    pio_sm_set_pins_with_mask(pio, sm, 0, (1u << pin_tck) | (1u << pin_tdi));
    pio_sm_set_pindirs_with_mask(pio, sm, (1u << pin_tck) | (1u << pin_tdi), (1u << pin_tck) | (1u << pin_tdi) | (1u << pin_tdo));
    pio_gpio_init(pio, pin_tdi);
    //pio_gpio_init(pio, pin_tdo);
    pio_gpio_init(pio, pin_tck);

    // jtag is synchronous, so bypass input synchroniser to reduce input delay.
    hw_set_bits(&pio->input_sync_bypass, 1u << pin_tdo);
    gpio_set_pulls(pin_tdo, false, true); //TDO is pulled down
    pio_sm_init(pio, sm, prog_offs, &c);
    pio_sm_set_enabled(pio, sm, true);
}
%}

 

pio_jtag.c

void init_jtag(pio_jtag_inst_t* jtag, uint freq, uint pin_tck, uint pin_tdi, uint pin_tdo, uint pin_tms, uint pin_rst, uint pin_trst)
{
    init_pins(pin_tck, pin_tdi, pin_tdo, pin_tms, pin_rst, pin_trst);
    jtag->pin_tdi = pin_tdi;
    jtag->pin_tdo = pin_tdo;
    jtag->pin_tck = pin_tck;
    jtag->pin_tms = pin_tms;
    #if !( BOARD_TYPE == BOARD_QMTECH_RP2040_DAUGHTERBOARD )
    jtag->pin_rst = pin_rst;
    jtag->pin_trst = pin_trst;
    #endif
    uint16_t clkdiv = 31;  // around 1 MHz @ 125MHz clk_sys
    pio_jtag_init(jtag->pio, jtag->sm,
                    clkdiv,
                    pin_tck,
                    pin_tdi,
                    pin_tdo
                 );

    jtag_set_clk_freq(jtag, freq);
}

 

[링크 : https://github.com/phdussud/pico-dirtyJtag.git]

Posted by 구차니
embeded/FPGA - XILINX2026. 11. 25. 10:16

rpi pico 와 rpi pico W를 지원한다고 하는데, 둘 다 있으니 해봐야겠다

W에 대해서 별다른 언급이 없는데 와이파이까지 되서 xilinx vivado에서 target ip만 지정해주면 platform cable로

별도 프로그램없이 붙으면 좋겠는데.. 그렇게 까지 구현이 되있으려나?

 

virtual cable 추가하기로 되는거 보면 될 것 같기도..

 

[링크 : https://github.com/kholia/xvc-pico]

  [링크 : https://github.com/phdussud/pico-dirtyJtag/] << pio로 구현되었다고

  [링크 : https://github.com/dirtyjtag/DirtyJTAG]

 

'embeded > FPGA - XILINX' 카테고리의 다른 글

microblaze v  (0) 2026.11.23
microzed + 정체불명 캐리어  (0) 2026.11.21
xilinx jtag using rpi pico  (0) 2026.11.14
amd(xilinx) vitis 설치  (1) 2026.11.12
picozed 데이터 조사중  (0) 2026.11.12
Posted by 구차니

gpt 였나 claude 였나.. cyd에 맞는 핀을 찾아달라고 했더니

클램프랑 사기 귀찮아서 비싸도 그냥 구매!

두개 사도 택배비가 미묘한 가격대로 라즈베리 파이도 구매했는데

원래는 12월 2일 예정이었던게 너무 일찍 와버렸다 -ㅁ-

 

[링크 : https://www.devicemart.co.kr/goods/view?no=15531020]

 

아무튼 이렇게 셋트로 해서 2개 주문한게 도착을 했고

 

저 커넥터에 똭! 잘 맞는다.

그나저나 홈이 아래로 고정되도록 되어있어서 케이블 없이 꽂았던걸 뽑으려다가 쑈해서

cn1 부러먹고 난리네 ㅠㅠ

이제 전원만 적당히 해주고 서보 2개 달아주면 끝!

Posted by 구차니