ぱたへね

はてなダイアリーはrustの色分けができないのでこっちに来た

cadrのVerilogソースのコンパイル その1

http://www.unlambda.com/cadrから入手できるVerilogファイル(CADDR Revised CADR Verilog)からcadr.vと関連ファイルのみで論理合成をしてみました。ターゲットはCycloe3です。論理合成でエラーが出るので、iram(part_16kx49ram)のみ外付けメモリを使う前提で回路から減らしてます。論理合成の時間は私の非力なノートPCで2時間くらいです。

そのまま合成すると必要なLEが255,357なので、このままではCyclone3に入りません。(Cyclone3の一番大きな物でもLEが199,464です。)

FPGAで動かそうとすると、最低でもHDDとPERLの入出力がいるので、もうちょっと削らないと駄目ですね。残りのメモリも外に出せば一気に減る可能性もあります。

以下、合成結果です。

Copyright (C) 1991-2010 Altera Corporation
Your use of Altera Corporation's design tools, logic functions 
and other software and tools, and its AMPP partner logic 
functions, and any output files from any of the foregoing 
(including device programming or simulation files), and any 
associated documentation or information are expressly subject 
to the terms and conditions of the Altera Program License 
Subscription Agreement, Altera MegaCore Function License 
Agreement, or other applicable license agreement, including, 
without limitation, that your use is for the sole purpose of 
programming logic devices manufactured by Altera and sold by 
 Altera or its authorized distributors.  Please refer to the 
applicable agreement for further details.

caddr Analysis & Synthesis Resource Usage Summary

Resource	Usage
Estimated Total logic elements	255,397
	
Total combinational functions	118985
Logic element usage by number of LUT inputs	
-- 4 input functions	116360
-- 3 input functions	1130
-- <=2 input functions	1495
	
Logic elements by mode	
-- normal mode	118933
-- arithmetic mode	52
	
Total registers	136791
-- Dedicated logic registers	136791
-- I/O registers	0
	
I/O pins	140
Total memory bits	608
Maximum fan-out node	dwe_n
Maximum fan-out	34816
Total fan-out	882838
Average fan-out	3.45