vista에서 quartus 그 15
개요
vista에서 quartus 해 보았다.
polyphony로 serial 해 보았다.
환경
windows vista 32bit
quartus ii v13.0
polyphony v0.3.6
ep2c5t144 보드
사진

샘플 코드
from polyphony import testbench, module, is_worker_running
from polyphony.timing import clksleep
from polyphony.io import Port
from polyphony.typing import bit, uint8
@module
class a2z:
def __init__(self):
self.send = Port(bit, 'out', init=0)
self.data = Port(uint8, 'out', init=0)
self.append_worker(self.worker)
def _wait(self):
for i in range(100000):
pass
def worker(self):
i = 97
while is_worker_running():
if (i < 122):
self.data(i)
self.send(1)
clksleep(1)
self.send(0)
i = i + 1
self._wait()
m = a2z()
verilog 코드
module test2(input clk, input rst, output tx);
wire [7:0] data;
wire send;
tx2 tx2(.clk(clk), .rst(rst), .start(send), .data(data), .tx(tx), .busy(busy), .get(get));
a2z_m m(.clk(clk), .rst(rst), .data(data), .send(send));
endmodule
이상.
Reference
이 문제에 관하여(vista에서 quartus 그 15), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
https://qiita.com/ohisama@github/items/57d656552a3526c932b0
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)
windows vista 32bit
quartus ii v13.0
polyphony v0.3.6
ep2c5t144 보드
사진

샘플 코드
from polyphony import testbench, module, is_worker_running
from polyphony.timing import clksleep
from polyphony.io import Port
from polyphony.typing import bit, uint8
@module
class a2z:
def __init__(self):
self.send = Port(bit, 'out', init=0)
self.data = Port(uint8, 'out', init=0)
self.append_worker(self.worker)
def _wait(self):
for i in range(100000):
pass
def worker(self):
i = 97
while is_worker_running():
if (i < 122):
self.data(i)
self.send(1)
clksleep(1)
self.send(0)
i = i + 1
self._wait()
m = a2z()
verilog 코드
module test2(input clk, input rst, output tx);
wire [7:0] data;
wire send;
tx2 tx2(.clk(clk), .rst(rst), .start(send), .data(data), .tx(tx), .busy(busy), .get(get));
a2z_m m(.clk(clk), .rst(rst), .data(data), .send(send));
endmodule
이상.
Reference
이 문제에 관하여(vista에서 quartus 그 15), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
https://qiita.com/ohisama@github/items/57d656552a3526c932b0
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)
from polyphony import testbench, module, is_worker_running
from polyphony.timing import clksleep
from polyphony.io import Port
from polyphony.typing import bit, uint8
@module
class a2z:
def __init__(self):
self.send = Port(bit, 'out', init=0)
self.data = Port(uint8, 'out', init=0)
self.append_worker(self.worker)
def _wait(self):
for i in range(100000):
pass
def worker(self):
i = 97
while is_worker_running():
if (i < 122):
self.data(i)
self.send(1)
clksleep(1)
self.send(0)
i = i + 1
self._wait()
m = a2z()
verilog 코드
module test2(input clk, input rst, output tx);
wire [7:0] data;
wire send;
tx2 tx2(.clk(clk), .rst(rst), .start(send), .data(data), .tx(tx), .busy(busy), .get(get));
a2z_m m(.clk(clk), .rst(rst), .data(data), .send(send));
endmodule
이상.
Reference
이 문제에 관하여(vista에서 quartus 그 15), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
https://qiita.com/ohisama@github/items/57d656552a3526c932b0
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)
module test2(input clk, input rst, output tx);
wire [7:0] data;
wire send;
tx2 tx2(.clk(clk), .rst(rst), .start(send), .data(data), .tx(tx), .busy(busy), .get(get));
a2z_m m(.clk(clk), .rst(rst), .data(data), .send(send));
endmodule
Reference
이 문제에 관하여(vista에서 quartus 그 15), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/ohisama@github/items/57d656552a3526c932b0텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)