embeded/FPGA - ALTERA2026. 11. 17. 21:07

nios ii 정의 파일은 뭔가 많다.

AS 라고 하던게 이 ASDO 인가?

module nios_ii_uclinux(
 input wire CLOCK_50, input wire [1:0] KEY,
 input wire EPCS_DATA0, output wire EPCS_DCLK,EPCS_NCSO,EPCS_ASDO,
 output wire [12:0] DRAM_ADDR, output wire [1:0] DRAM_BA,DRAM_DQM,
 output wire DRAM_CAS_N,DRAM_CKE,DRAM_CLK,DRAM_CS_N,DRAM_RAS_N,DRAM_WE_N,
 inout wire [15:0] DRAM_DQ,
 input wire UART_RX, output wire UART_TX, output wire [7:0] DEBUG
);
 wire [4:0] pll_clk;
 wire pll_locked;
 wire [2:0] debug_control;
 wire reset_n=KEY[0] & pll_locked;
 assign DRAM_CLK=pll_clk[1];
 altpll pll(.inclk({1'b0,CLOCK_50}),.areset(~KEY[0]),.clk(pll_clk),.locked(pll_locked));
 defparam pll.intended_device_family="Cyclone IV E",
   pll.inclk0_input_frequency=20000, pll.operation_mode="NORMAL",
   pll.compensate_clock="CLK0", pll.width_clock=5,
   pll.clk0_multiply_by=1, pll.clk0_divide_by=1,
   pll.clk1_multiply_by=1, pll.clk1_divide_by=1, pll.clk1_phase_shift="-3000";
 linux_system u0(.clk_clk(pll_clk[0]),.reset_reset_n(reset_n),
   .epcs_external_data0(EPCS_DATA0),.epcs_external_dclk(EPCS_DCLK),
   .epcs_external_sce(EPCS_NCSO),.epcs_external_sdo(EPCS_ASDO),
   .sdram_wire_addr(DRAM_ADDR),.sdram_wire_ba(DRAM_BA),.sdram_wire_cas_n(DRAM_CAS_N),
   .sdram_wire_cke(DRAM_CKE),.sdram_wire_cs_n(DRAM_CS_N),.sdram_wire_dq(DRAM_DQ),
   .sdram_wire_dqm(DRAM_DQM),.sdram_wire_ras_n(DRAM_RAS_N),.sdram_wire_we_n(DRAM_WE_N),
   .serial_rxd(UART_RX),.serial_txd(UART_TX),.debug_pio_export(debug_control));
 assign DEBUG={debug_control[2:1],debug_control[0],reset_n,EPCS_DATA0,EPCS_ASDO,EPCS_NCSO,EPCS_DCLK};
endmodule

 

주소맵을 보면 먼가 정의 되어있긴한데.. 먼 소리인지 ㅋㅋㅋ

data_master만 있고 instruction_master가 없는건 또 멀까

 

cpu의 리셋벡터가 epcs로 되어있다.

그래야지 epcs 로 접근하게 되는건가?

다시보니 reset vector / reset vector offset 인데

그럼 reset vector + offset 으로 합해서 점프하나?

 

epcs 쪽은 크게 설정된게 없어 보이긴 한데..

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

uclinux on nios ii/e with codex  (0) 2026.11.17
de0-nano 와 codex로 flash 통합하기  (0) 2026.11.16
epcs controller / as?  (0) 2026.11.16
quartus_sh  (0) 2026.10.31
tcl, tk, tcl/tk  (0) 2026.10.31
Posted by 구차니
embeded/FPGA - ALTERA2026. 11. 17. 08:46

50Mhz 로 밖에 합성이 안되다니.. 클럭을 올릴방법이 없나? ㅠㅠ

bogomips는 그래도 1Mhz 당 1 정도 나오는것 같던데 고작 1.67 이라니.. 너무 하네

ii/f 하면 좀 나으려나?

/root # cat /proc/cpuinfo
free -h
CPU:            Nios II/e
MMU:            none
FPU:            none
Clocking:       50.00 MHz
BogoMips:       1.67
Calibration:    838400 loops
HW:
 MUL:           no
 MULX:          no
 DIV:           no
Icache:         0kB, line length: 4
Dcache:         0kB, line length: 4
/root # free -h
/root # uname -a
uClinux de0-nano 3.5.0-rc4 #20 Tue Nov 17 08:09:52 KST 2026 nios2 GNU/Linux
/root # mount
rootfs on / type rootfs (rw)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
tmpfs on /tmp type tmpfs (rw,relatime)

 

16초에 있던 저게 먼진 모르겠는데 왜이렇게 오래 멈춰있다가 진행할까

램은 32MB 플래시 8M 였던것 같은데

[    0.000000] Linux version 3.5.0-rc4 (root@DESKTOP-F62EJAR) (gc[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line: console=ttyJ0,115200 loglevel=8 rdinit=/init
[    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Memory available: 29796k/2644k RAM (1658k kernel code, 986k data)
[    0.000000] NR_IRQS:64
[    0.170000] Calibrating delay loop... 1.67 BogoMIPS (lpj=8384)
[    0.180000] pid_max: default: 32768 minimum: 301
[    0.260000] Mount-cache hash table entries: 512
[    0.670000] devtmpfs: initialized
[    0.850000] NET: Registered protocol family 16
[    1.290000] bio: create slab <bio-0> at 0
[    1.500000] Switching to clocksource timer
[    1.740000] NET: Registered protocol family 2
[    1.800000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    1.900000] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
[    1.920000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    1.940000] TCP: Hash tables configured (established 1024 bind 1024)
[    1.950000] TCP: reno registered
[    1.950000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    1.960000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    2.000000] NET: Registered protocol family 1
[   16.200000] msgmni has been set to 58
[   16.240000] io scheduler noop registered (default)
[   16.290000] ttyAL0 at MMIO 0x10040 (irq = 3) is a Altera UART
[   16.330000] ttyJ0 at MMIO 0x10000 (irq = 0) is a Altera JTAG UART
[   16.340000] console [ttyJ0] enabled, bootconsole disabled
[   16.340000] console [ttyJ0] enabled, bootconsole disabled
[   16.540000] PPP generic driver version 2.4.2
[   16.580000] SLIP: version 0.8.4-NET3.019-NEWTTY (dynamic channels, max=256).
[   16.650000] TCP: cubic registered
[   16.650000] NET: Registered protocol family 17
[   16.950000] Freeing unused kernel memory: 624k freed (0x219f000 - 0x223b000)

DE0-Nano root filesystem ready; login as root (no password).
init started: BusyBox v1.18.4 (2026-11-17 08:09:33 KST)
starting pid 19, tty '/dev/ttyJ0': '/sbin/getty -L ttyJ0 115200 vt100'

DE0-Nano Nios II uClinux - local development console
de0-nano login:

 

요건 테스트로 led 깜박이는 예제 올린거

fx2lp 와 아두이노용 spi 이더넷을 연결하면 ifconfig 와 ssh 정도 가능하려나?

 

+

2026.11.17

50Mhz 에서 75Mhz로 올리니 1.6에서 2.6으로 상승!

그래봤자 응답이 엄청  느리다 ㅜㅠ

root # cat /proc/cpuinfo
CPU:            Nios II/e
MMU:            none
FPU:            none
Clocking:       75.00 MHz
BogoMips:       2.63
Calibration:    1318400 loops
HW:
 MUL:           no
 MULX:          no
 DIV:           no
Icache:         0kB, line length: 4
Dcache:         0kB, line length: 4

 

top 했다고 cpu 98% 찍는 위엄 ㅋㅋ

Mem: 3468K used, 26952K free, 0K shrd, 0K buff, 1028K cached
CPU:  17% usr  82% sys   0% nic   0% idle   0% io   0% irq   0% sirq
Load average: 0.32 0.21 0.14 1/17 48
  PID  PPID USER     STAT   VSZ %MEM %CPU COMMAND
   48    19 root     R      580   2%  98% top
   15     2 root     SW       0   0%   2% [kworker/0:1]
   19     1 root     S      596   2%   0% -sh
    1     0 root     S      592   2%   0% init
    8     2 root     SW       0   0%   0% [sync_supers]
    7     2 root     SW       0   0%   0% [kdevtmpfs]
    5     2 root     SW       0   0%   0% [kworker/u:0]
    2     0 root     SW       0   0%   0% [kthreadd]
    3     2 root     SW       0   0%   0% [ksoftirqd/0]
    9     2 root     SW       0   0%   0% [bdi-default]
   14     2 root     SW       0   0%   0% [kworker/u:1]
    4     2 root     SW       0   0%   0% [kworker/0:0]
    6     2 root     SW<      0   0%   0% [khelper]
   10     2 root     SW<      0   0%   0% [kblockd]
   11     2 root     SW       0   0%   0% [kswapd0]
   12     2 root     SW       0   0%   0% [fsnotify_mark]
   13     2 root     SW<      0   0%   0% [deferwq]

 

100Mhz 시도 성공 1.6 -> 3.55 딱 두배 오르긴 했는데 여전히 느리네

# cat /proc/cpuinfo
CPU:            Nios II/e
MMU:            none
FPU:            none
Clocking:       100.00 MHz
BogoMips:       3.55
Calibration:    1779200 loops
HW:
 MUL:           no
 MULX:          no
 DIV:           no
Icache:         0kB, line length: 4
Dcache:         0kB, line length: 4

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

nios ii/e uclinux boot on epcs  (0) 2026.11.17
de0-nano 와 codex로 flash 통합하기  (0) 2026.11.16
epcs controller / as?  (0) 2026.11.16
quartus_sh  (0) 2026.10.31
tcl, tk, tcl/tk  (0) 2026.10.31
Posted by 구차니
embeded/FPGA - ALTERA2026. 11. 16. 23:52

8년전에 실패한거 그냥 딸각으로 되어버리네 와...

 

quartus 25.1 에서 하려니 먼가 많이 달라진듯.. ㅠㅠ

qpf로 프로젝트 열고

nios_hello.v 확인. 특별한건 없다.

module nios_hello(input wire CLOCK_50, input wire [1:0] KEY);
  hello_system u0(.clk_clk(CLOCK_50), .reset_reset_n(KEY[0]));
endmodule

 

tools - platform designer

 

에러가 나고 막 난리인데.. 어떻게 빌드한거야?

그리고 epcs 없이 플래시에서 부팅하도록 한 구성이라고 하는데 무슨 말이지.. 

 

ram or rom 부분을 눌러서 보는데 램 초기화 파일로 app.hex라..

 

nios_v는 quartus lite 25.1 에서

nios_ii는 quartus lite 18.1  에서 하란다.

 

다시 18.1로 실행해서 qpf 열고

tools - platform designer와 nios ii software build tools for eclipse 를 실행한다.

 

platform designer 에서는 hello_system.qsys를 열었고 아래처럼 설정되어있다.

리셋벡터 0x0000 0000 이면 플래시려나?

 

별로 안그리운 eclipse 화면 흐음..

 

프로젝트에서 nios 2  - bsp editor?

 

리셋벡터가 메모리의 0x0000 0000 으로 되어있다.

그럼 결국은 app.hex가 알아서 복사해서 메모리로 올려주기 때문에 가능한건가?

 

jtag의 시리얼 포트 여는 명령이라고 한다. 위에꺼랑 상관없이 이미 빌드되서 들어간거라 잘 뜬다 -ㅁ-

C:\>C:\intelFPGA_lite\18.1\quartus\bin64\nios2-terminal.exe
nios2-terminal: The selected JTAG cable is either not connected to a board, or
nios2-terminal: the board is not switched on.

C:\>C:\intelFPGA_lite\18.1\quartus\bin64\nios2-terminal.exe
nios2-terminal: connected to hardware target using JTAG UART on cable
nios2-terminal: "USB-Blaster [USB-0]", device 1, instance 0
nios2-terminal: (Use the IDE stop button or Ctrl-C to terminate)

    0 hello world
    1 hello world
    2 hello world
    3 hello world
    4 hello world


nios2-terminal: exiting due to ^C on host

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

nios ii/e uclinux boot on epcs  (0) 2026.11.17
uclinux on nios ii/e with codex  (0) 2026.11.17
epcs controller / as?  (0) 2026.11.16
quartus_sh  (0) 2026.10.31
tcl, tk, tcl/tk  (0) 2026.10.31
Posted by 구차니
embeded/FPGA - ALTERA2026. 11. 16. 23:23

ai 도움을 받아 8년 만에 다시 시도 -_ㅠ

Configuration 에 "Automatically select dedicated active serial interface" 라는게 체크되어있고

하단에 info로 "Dedicated AS interface is not supported, signals are exported to top level design" 라고 되어있는데

지금 다시 보려니 먼소리인지 모르겠다.

 

아무튼 ai 답변을 따라가보면 epcs ip 를 추가되었지만 정상적으로 연결되지 않았고

ram 으로는 되는데 flash로 안되면 리셋벡터 문제일 가능성이 높아 보이긴한다.

그리고 ram 실행용 초기화와 epcs 부트용 이미지를 혼용해버렸다는데, 이래저래 은근히 손이 많이 가는건가 보네..

 

원인 단서가 나왔습니다. 원문의 EPCS 설정 화면에는 “전용 AS 인터페이스를 지원하지 않아 신호를 외부 포트로 내보낸다”는 안내가 있고, 후속 글에서는 EPCS ID를 0x000000으로 읽습니다. 즉 CPU는 동작하지만 EPCS 컨트롤러와 실제 플래시의 배선이 빠졌을 가능성이 큽니다. 별도로 리셋 벡터와 소프트웨어 이미지 배치도 맞춰야 합니다.

가장 유력한 원인은 EPCS 컨트롤러와 실제 플래시의 신호 연결 누락입니다. 여기에 리셋 벡터와 부트 이미지 배치 문제도 겹친 것으로 보입니다.
  1. EPCS IP를 추가했지만 실제 칩까지 연결하지 않은 정황후속 글에서는 컨트롤러 레지스터는 찾지만 **플래시 ID가 0x000000**으로 나옵니다. 작성자도 마지막에 EPCS net 미연결을 의심합니다. 이는 실제 칩과 통신하지 못한다는 강한 단서입니다. 다만 프로젝트가 없어 정확한 누락 지점까지 단정할 수는 없습니다. 후속 글
  2. 원문 설정 화면에 전용 AS 인터페이스를 지원하지 않아 신호를 외부 포트로 내보낸다는 안내가 있습니다. 이 경우 Qsys export → 최상위 HDL 연결 → 실제 플래시 핀 할당이 필요합니다. 원문
  3. RAM 실행 성공은 플래시 부팅 성공을 보장하지 않음
  4. Eclipse는 ELF를 RAM에 다운로드하고 실행 주소를 지정해 줍니다. 반면 전원 투입 시에는 CPU가 설정된 리셋 벡터에서 시작합니다. EPCS에서 프로그램을 RAM으로 복사하는 방식이라면 리셋 벡터가 EPCS 부트 ROM을 가리켜야 합니다. 초기화되지 않은 SDRAM을 가리키면 부팅할 코드가 없습니다. 공식 부팅 안내
  5. RAM 초기화 HEX와 EPCS 부트 이미지를 혼용
  6. RAM용 HEX를 플래시에 추가하는 것만으로 RAM에 자동 복사되지는 않습니다. 글 후반에서 다룬 sof2flash와 elf2flash --epcs --after=...처럼 부트로더가 기대하는 형식·위치로 저장해야 합니다. 원문

 

 

2018.01.31 - [embeded/FPGA - ALTERA] - EPCS Controller 추가 및 jic 통합하기.. 실패중

2018.02.01 - [embeded/FPGA - ALTERA] - Nios II Flash Programmer

 

 

 

 

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

uclinux on nios ii/e with codex  (0) 2026.11.17
de0-nano 와 codex로 flash 통합하기  (0) 2026.11.16
quartus_sh  (0) 2026.10.31
tcl, tk, tcl/tk  (0) 2026.10.31
chisel (Constructing Hardware in a Scala Embedded Language)  (0) 2026.10.16
Posted by 구차니
embeded/FPGA - XILINX2026. 11. 12. 23:36

vitis 깔면 vivado도 깔린다고 한다.

[링크 : https://wikidocs.net/307450]

 

여기서 읽다가 멘붕 ㅋㅋ

 

vitis 하니까 알아서 선택되어 있으니 추가로 더 하면될듯.

 

와우.. zynq-7000 시리즈 추가했더니 10기가 추가요~

 

 

+

라이센스 추가하라고 하는데 일단은 connect now 눌러 웹에서 진행하면 된다.

 

막 헤매다가 vivado basic tier license, vitis HLS license를 일단 구걸!

no-charge 좋아좋아

 

일단은 윈도우라서 윈도우 호스트 이름과 맥을 넣어준다.

 

메일 뒤져보면 lic 파일이 날아온다.

 

이걸 copy licnese 누르고 선택해주면 끝

 

네 잘했어요~

 

그나저나 모든 free built in license 보도록 설정하니 많이 나오는데

version limit에 2010.08 이라고 된거는 구버전 vivadof를 써야 활성화 되는걸까?

 

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

picozed 데이터 조사중  (0) 2026.11.12
picozed carrier 도착  (0) 2026.11.12
avnet picozed 구매  (0) 2026.11.10
pynq 와 arty  (0) 2025.06.27
zynq vitis openCL  (0) 2025.06.27
Posted by 구차니
embeded/FPGA - XILINX2026. 11. 12. 23:28

AVNET 이라고 쓰여져 있는거 보면 7015/7030 rev.E 인 듯

[링크 : https://www.tria-technologies.com/product/picozed/]

 

아니 왜 실크에 리비전이 없어?!?!?

그 와중에 avnet이 아니라 왜 다른 사이트에서 검색이 되지?

 

[링크 : https://www.avnet.com/wcm/connect/be2ba4f8-e6f8-4292-8b8f-0a0dcd2c413a/PicoZed_7015_7030_PCB_Plots_Rev_C.PDF]

PRJ-PZ2SOM,E-01-01,Assembly+Drawings.pdf
5.83MB

[링크 : https://www.avnet.com/wcm/connect/643f7b3c-3773-43e0-8961-02b330136f33/PRJ-PZ2SOM%2CE-01-01%2CAssembly+Drawings.PDF]

 

PRJ-PZ2SOM,E-01-01,Schematic+Prints.pdf
6.97MB

[링크 : https://www.avnet.com/wcm/connect/b9badb99-5569-4da4-967a-30ff6bf5908e/PRJ-PZ2SOM%2CE-01-01%2CSchematic+Prints.PDF]

 

5279-UG-PicoZed-7015-7030-V2_0.pdf
1.67MB

[링크 : https://www.avnet.com/fsp/opasdata/d120001/medias/docus/126/$v2/5279-UG-PicoZed-7015-7030-V2_0.pdf]

[링크 : https://architechboards-picozed.readthedocs.io/en/latest/quick.html]

 

boot.bin 은 FSBL + BItstram + UBoot 파일이고

image.ub는 kernel + rootfs 라고 한다.

그냥 fat32로 포맷해서 부팅되게 설정해주고(fdisk) 두개 파일만 넣고 sd 부팅 하도록 설정하면 끝인듯.

그러면 시리얼로 115200bps로 연결하면 된다고

 

04_MZPZ_FSBL_Boot_2016_4_01.pdf
0.65MB

[링크 : https://www.avnet.com/wcm/connect/9583e264-aa22-4ac4-bd4f-4c0cf97ce039/04_MicroZed_FSBL_Boot_2016_4_01.zip?MOD=AJPERES&CVID=picp3Dr]

 

Should you need to format an SD card for the PicoZed, it should be a single FAT32 partition.

[링크 : https://opencpi.gitlab.io/projects/osp/avnet/hdl/platforms/picozed_30_cc/picozed_30_cc-gsg.html]

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

amd(xilinx) vitis 설치  (0) 2026.11.12
picozed carrier 도착  (0) 2026.11.12
avnet picozed 구매  (0) 2026.11.10
pynq 와 arty  (0) 2025.06.27
zynq vitis openCL  (0) 2025.06.27
Posted by 구차니
embeded/FPGA - XILINX2026. 11. 12. 22:53

정품은.아니고 판매자가 속한 업체에서 만든거. 그래서 pcie 는 없다

 

져긴 커넥터 하나가 8천원.. 어우

 

회로도 까진 안바랬지만 너무 성의없이 받아버렸네 쳇

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

amd(xilinx) vitis 설치  (0) 2026.11.12
picozed 데이터 조사중  (0) 2026.11.12
avnet picozed 구매  (0) 2026.11.10
pynq 와 arty  (0) 2025.06.27
zynq vitis openCL  (0) 2025.06.27
Posted by 구차니
embeded/FPGA - XILINX2026. 11. 10. 22:44

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

picozed 데이터 조사중  (0) 2026.11.12
picozed carrier 도착  (0) 2026.11.12
pynq 와 arty  (0) 2025.06.27
zynq vitis openCL  (0) 2025.06.27
EBAZ4205 zynq  (0) 2025.03.25
Posted by 구차니
embeded/FPGA - ALTERA2026. 10. 31. 18:23

dump.tcl

set fp [open "commands.txt" w]

foreach cmd [lsort [info commands]] {
    puts $fp $cmd
}

close $fp

 

~/altera_lite/25.1std/quartus/bin$ ./quartus_sh
Quartus Prime Shell
Version 25.1std.0 Build 1129 10/21/2025 SC Lite Edition
Copyright (C) 2025  Altera Corporation. All rights reserved.

Usage:
------

quartus_sh [-h | --help[=<option|topic>] | -v]
quartus_sh -g | --gui [<project_name>]
quartus_sh <other options>
quartus_sh -t <script file> [<script args>]
quartus_sh -s
quartus_sh --tcl_eval <tcl command>

 

$ ./quartus_sh -t dump.tcl
Info: *******************************************************************
Info: Running Quartus Prime Shell
    Info: Version 25.1std.0 Build 1129 10/21/2025 SC Lite Edition
    Info: Copyright (C) 2025  Altera Corporation. All rights reserved.
    Info: Your use of Altera Corporation's design tools, logic functions
    Info: and other software and tools, and any partner logic
    Info: functions, and any output files from any of the foregoing
    Info: (including device programming or simulation files), and any
    Info: associated documentation or information are expressly subject
    Info: to the terms and conditions of the Altera Program License
    Info: Subscription Agreement, the Altera Quartus Prime License Agreement,
    Info: the Altera IP License Agreement, or other applicable license
    Info: agreement, including, without limitation, that your use is for
    Info: the sole purpose of programming logic devices manufactured by
    Info: Altera and sold by Altera or its authorized distributors.  Please
    Info: refer to the Altera Software License Subscription Agreements
    Info: on the Quartus Prime software download page.
    Info: Processing started: Sat Oct 31 18:21:07 2026
Info: Command: quartus_sh -t dump.tcl
Info (23030): Evaluation of Tcl script dump.tcl was successful
Info: Quartus Prime Shell was successful. 0 errors, 0 warnings
    Info: Peak virtual memory: 449 megabytes
    Info: Processing ended: Sat Oct 31 18:21:07 2026
    Info: Elapsed time: 00:00:00
    Info: Total CPU time (on all processors): 00:00:00

 

막상 돌려서 나오는데 위에서 있다고 한 것들이 보이지 않는다. 머냐?

$ cat commands.txt
add_to_recent_projects
after
append
apply
array
assignment_group
atcl_test_generate_debug_messages
atcl_test_issue_internal_error
atcl_test_issue_tcl_error
atcl_test_issue_tcl_result_error
auto_execok
auto_import
auto_load
auto_load_index
auto_qualify
available_in_sw_edition
binary
break
case
catch
cd
cfg_is_on
chan
check_device_family_equivalence
checksum
clock
close
close_side_revision
concat
continue
copy_project
copy_project_for_hardcopy
coroutine
create_base_clock
create_relative_clock
create_revision
create_test_collection
delete_revision
deploy_platform
dict
disable_msg_box
disable_natural_bus_naming
disable_natural_bus_naming_internal
enable_msg_box
enable_natural_bus_naming
enable_natural_bus_naming_internal
encoding
enumerate_family_traits
enumerate_traits
eof
error
escape_brackets
escape_brackets_internal
eval
exec
execute_assignment_batch
exit
export_assignment_files
export_assignments
expr
fblocked
fconfigure
fcopy
file
fileevent
flush
for
foreach
foreach_in_collection
format
get_acf_info
get_acf_manager
get_all_assignment_names
get_all_assignments
get_all_global_assignments
get_all_instance_assignments
get_all_parameters
get_all_quartus_defaults
get_all_sw_editions
get_all_user_option_names
get_assignment_info
get_assignment_name_info
get_assignments_for_name_id
get_auto_default_part_of
get_base_device_of
get_clocks
get_collection_size
get_current_project
get_current_revision
get_database_version
get_device_install_path_of
get_device_list
get_dstr_string
get_environment_info
get_family_info
get_family_list
get_file_info
get_files
get_global_assignment
get_ini_file
get_ini_var
get_install_path_of
get_instance_assignment
get_libraries
get_license_xml
get_location
get_location_assignment
get_name_info
get_names
get_parameter
get_part_info
get_part_list
get_platform_list
get_project_directory
get_project_license_status
get_project_revisions
get_project_settings
get_quartus_legal_string
get_revision_database_files
get_revision_description
get_temperature_option
get_top_level_entity
get_user_option
get_voltage_info
gets
glob
global
help
if
import_assignments
incr
info
init_tk
interp
ipc_sh_mode_output_to_stdout
is_database_version_compatible
is_fitter_in_qhd_mode
is_project_open
join
lappend
lassign
lindex
linsert
list
llength
lmap
load
load_database
load_package
lrange
lrepeat
lreplace
lreverse
lsearch
lset
lsort
msg_tcl_disable_msg_box
msg_tcl_enable_eda_socket
msg_tcl_enable_msg_box
msg_tcl_flush_stdout
msg_tcl_internal_error
msg_tcl_internal_error_display
msg_tcl_post_display
msg_tcl_post_display_and_delete
msg_tcl_post_message
msg_tcl_post_message_handle
msg_tcl_prompt_display
msg_tcl_puts
msg_vdebug
namespace
native_puts
open
open_side_revision
package
pb_eval
pid
postMessage
post_message
proc
project_archive
project_clean
project_close
project_exists
project_new
project_open
project_restore
project_settings_exist
puts
pwd
qerror
qeval
qexec
qexit
qputs
qshm_connect_to_quartus
qshm_create_server
qshm_disconnect_from_quartus
qshm_dispose_client
qshm_dispose_server
qshm_get_hub_key_prefix
qshm_get_parent_hub_key
qshm_get_server_state
qshm_obtain_client
qshm_send_request
qshm_send_server_state_query
qshm_set_context
qshm_set_server_state
qshm_start_server
qshm_stop_server
read
read_large_file
regexp
regsub
remove_all_global_assignments
remove_all_instance_assignments
remove_all_parameters
rename
report_device_info
report_family_info
report_part_info
report_platform_info
resolve_file_path
return
revision_exists
revision_exists_internal
scan
seek
set
set_acf_manager
set_best_effort_fmax_optimization_assignments
set_clock_latency
set_clock_uncertainty
set_current_revision
set_dll_loading
set_file_lock
set_global_assignment
set_hc_assignments
set_high_effort_fmax_optimization_assignments
set_ini_var
set_input_delay
set_instance_assignment
set_io_assignment
set_location
set_location_assignment
set_multicycle_assignment
set_output_delay
set_parameter
set_power_file_assignment
set_process_log_suffix
set_project_mode
set_project_settings
set_qsf_mode
set_quartus_array
set_revision_description
set_timing_cut_assignment
set_user_option
socket
source
split
stopwatch
string
subst
sw_edition_is
switch
tailcall
tclLog
tell
test_assignment_trait
test_device_trait_of
test_family_trait_of
test_part_trait_of
throw
time
timegroup
trace
try
unknown
unknown_original
unload
unload_database
unset
update
uplevel
upvar
variable
vwait
webhelp_display_topic
while
yield
yieldto
zlib

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

de0-nano 와 codex로 flash 통합하기  (0) 2026.11.16
epcs controller / as?  (0) 2026.11.16
tcl, tk, tcl/tk  (0) 2026.10.31
chisel (Constructing Hardware in a Scala Embedded Language)  (0) 2026.10.16
ghdl 사용해봄  (0) 2026.05.08
Posted by 구차니
embeded/FPGA - ALTERA2026. 10. 31. 18:09

vivado에만 있는 줄 알았는데,  altera에서도 있다고 해서 일단은 호기심에 조사중

2. FPGA 프로젝트 관리 — 서로 다름
기능 Vivado Quartus
프로젝트 생성 create_project project_new
프로젝트 열기 open_project project_open
프로젝트 닫기 close_project project_close
프로젝트 저장 save_project_as 등 export_assignments
디바이스 선택 set_part set_global_assignment -name DEVICE
최상위 모듈 설정 set_property top set_global_assignment -name TOP_LEVEL_ENTITY
Verilog 추가 add_files set_global_assignment -name VERILOG_FILE
VHDL 추가 add_files set_global_assignment -name VHDL_FILE
SystemVerilog 추가 add_files set_global_assignment -name SYSTEMVERILOG_FILE
제약 파일 등록 add_files -fileset constrs_1 set_global_assignment -name SDC_FILE
소스 목록 조회 get_files get_all_global_assignments 등
프로젝트 설정 조회 get_property get_global_assignment
프로젝트 설정 변경 set_property set_global_assignment
동일한 작업을 수행하는 대표 명령어이며, 반드시 1:1로 대응하는 것은 아닙니다. 

3. FPGA 핀 및 속성 설정 — 서로 다름
기능 Vivado Quartus
외부 핀 위치 set_property PACKAGE_PIN set_location_assignment
I/O 표준 set_property IOSTANDARD set_instance_assignment -name IO_STANDARD
풀업 설정 set_property PULLUP set_instance_assignment -name WEAK_PULL_UP_RESISTOR
구동 강도 set_property DRIVE set_instance_assignment -name CURRENT_STRENGTH_NEW 등
내부 셀 속성 set_property set_instance_assignment 등
최적화 보존 DONT_TOUCH, KEEP 속성 PRESERVE_REGISTER, KEEP 등
디바이스 정보 조회 get_parts, get_property get_part_info 등

4. 타이밍 제약 — 대부분 유사
SDC 기반 명령은 공통으로 사용할 수 있는 부분이 많습니다.
기능 Vivado Quartus 호환성
기본 클록 생성 create_clock create_clock 높음
파생 클록 create_generated_clock 동일 높음
입력 지연 set_input_delay 동일 높음
출력 지연 set_output_delay 동일 높음
False Path set_false_path 동일 높음
Multicycle Path set_multicycle_path 동일 높음
최대 지연 set_max_delay 동일 높음
최소 지연 set_min_delay 동일 높음
클록 그룹 set_clock_groups 동일 높음
클록 불확실성 set_clock_uncertainty 동일 높음
포트 검색 get_ports get_ports 높음
클록 검색 get_clocks get_clocks 높음
내부 핀 검색 get_pins get_pins 부분 호환
내부 셀 검색 get_cells get_cells 부분 호환

5. 합성 및 배치·배선 — 상당히 다름
기능 Vivado Quartus
합성 실행 launch_runs synth_1 또는 synth_design execute_module -tool map
배치·배선 place_design, route_design execute_module -tool fit
전체 컴파일 launch_runs impl_1 등 execute_flow -compile
비트스트림 생성 write_bitstream execute_module -tool asm
합성 결과 열기 open_run synth_1 도구별 데이터베이스/리포트 API
타이밍 분석 report_timing Timing Analyzer의 report_timing
자원 사용량 report_utilization Fitter/Analysis & Synthesis 리포트
소비 전력 report_power Power Analyzer
실행 완료 대기 wait_on_run execute_flow 등은 동기 실행

6. Tk GUI 명령어 — 기본 문법 동일, 실행 환경 차이
Tk는 Tcl GUI 툴킷이므로, Tk를 사용할 수 있는 인터프리터라면 위젯 명령 자체는 동일합니다.
GUI 기능 Vivado의 Tk 환경 Quartus의 Tk 환경
창 제목 wm title 동일
창 크기 wm geometry 동일
버튼 button 동일
텍스트 label 동일
입력창 entry 동일
여러 줄 편집 text 동일
체크박스 checkbutton 동일
라디오 버튼 radiobutton 동일
프레임 frame 동일
자동 배치 pack 동일
격자 배치 grid 동일
좌표 배치 place 동일
이벤트 처리 bind 동일
주기적 실행 after 동일
파일 선택창 tk_getOpenFile 동일
메시지 박스 tk_messageBox 동일

7. IP 및 시스템 통합 명령 — 거의 별개
기능 Vivado Quartus
IP 생성 create_ip qsys-script/IP 관련 Tcl API
IP 파라미터 설정 set_property CONFIG.* set_instance_parameter_value 등
블록 디자인 생성 create_bd_design create_system
IP 인스턴스 추가 create_bd_cell add_instance
IP 연결 connect_bd_net, connect_bd_intf_net add_connection
주소 할당 assign_bd_address set_connection_parameter_value 등
시스템 검증 validate_bd_design validate_system
시스템 생성 generate_target save_system, qsys-generate 등

[링크 : https://chatgpt.com/share/6ae5b255-64bc-83e8-8e86-148906633033]

 

존 오스터하우트 라는 사람이 혼자서 북치고 장구치고 해버렸네 -ㅁ-

설계자 존 오스터하우트
개발자 Tcl 코어 팀
발표일 1988년(38년 전)
최근 버전 9.1.0[1] 위키데이터에서 편집하기
최근 버전 출시일 2026년 9월 29일(32일 전)

[링크 : https://ko.wikipedia.org/wiki/Tcl]

 

원저자 John Ousterhout
개발자 Tcl Core Team[1]
발표일 1991년(35년 전)
안정화 버전
9.1.0[2] 위키데이터에서 편집하기 / 2026년 9월 29일

[링크 : https://en.wikipedia.org/wiki/Tk_(software)]

 

우분투에서 설치는 다음과 같고

$ sudo apt install tcl tk

 

실행 명령어는 아래와 같다.

$ whereis tclsh
tclsh: /usr/bin/tclsh /usr/share/man/man1/tclsh.1.gz

$ whereis wish
wish: /usr/bin/wish /usr/share/man/man1/wish.1.gz

 

아무튼.. tcl이 엄청 오래된건줄 알았는데 python이 예상외로 오래 되었다는것에 놀라는 중 

$ tclsh
% set a 20
20
% puts "$a"
20
% [expr $a+$a]
invalid command name "40"

 

리눅스에서는 아래처럼 실행하면 프롬프트가 뜨고 창이 뜨면서 바로 gui를 만들수 있다.

$ wish


% wm title . "Tk Example"



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

epcs controller / as?  (0) 2026.11.16
quartus_sh  (0) 2026.10.31
chisel (Constructing Hardware in a Scala Embedded Language)  (0) 2026.10.16
ghdl 사용해봄  (0) 2026.05.08
DE1-SOC LXDE 부팅 완료  (0) 2026.05.02
Posted by 구차니