/* HCC File * File: num.c * Purpose: Reads value from transputer and send it back * Author: Andrew Bailey, Hardware Compilation Group, OUCL * Date: 6 June 1996 * Documentation: * Related Files: num.occ, harpnum.occ, num.pgm */ const spec harp2 = { fpga_type = "Xilinx3000", fpga_chip = "3195APQ160-3", clock_pad = "P160", not_error_pad = "P55", finish_pad = "P44", clock_divider = "1", carry_weight = "50", critical_weight = "100" }; const dw = 8; const forever = 1; void main(target = harp2, chan (in) cin : dw, chan (out) cout : dw) { int num : dw; while (forever){ cin ? num; cout ! num; } }